Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Order in which the SDI Class is called

Order in which the SDI Class is called

Scheduled Pinned Locked Moved C / C++ / MFC
question
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Chandrasekharan P
    wrote on last edited by
    #1

    This question sounds silly.. but i am confused. i wanted to know what is the order in which the classes are called in an SDI Application.

    L F 2 Replies Last reply
    0
    • C Chandrasekharan P

      This question sounds silly.. but i am confused. i wanted to know what is the order in which the classes are called in an SDI Application.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Broadly speaking I think it goes like this: the CApp() derived class is created first and that then creates the CMainFrame which creates the CView. The CDocument() is then created by the framework and connected to the view. You can use the debugger to step through your application to see exactly what is the sequence of events. Don't forget to put breakpoints in the proper places so you can quickly skip over all the framework code. [edit]spelling[/edit]

      1 Reply Last reply
      0
      • C Chandrasekharan P

        This question sounds silly.. but i am confused. i wanted to know what is the order in which the classes are called in an SDI Application.

        F Offline
        F Offline
        fkeujjpdc
        wrote on last edited by
        #3

        you can set MessageBox in your code and you will get the order,for example: you set a messagebox in your VIEW CLASS of LBUTTONDOWN function,set messagebox in your DOC CLASS of LBUTTONDOWN function,and set a messagebox in your APP CLASS of LBUTTONDOWN function,you click the program's client,the view box will display,then you remove the VIEW MESSAGEBOX ,then click the program's client,DOC MESSAGEBOX display........

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups