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
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. dialog question

dialog question

Scheduled Pinned Locked Moved C / C++ / MFC
question
4 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.
  • J Offline
    J Offline
    jafrazee
    wrote on last edited by
    #1

    is there a notification message that will tell me when a dialog has finished initializing for the first time? thank you

    R 1 Reply Last reply
    0
    • J jafrazee

      is there a notification message that will tell me when a dialog has finished initializing for the first time? thank you

      R Offline
      R Offline
      Renjith Ramachandran
      wrote on last edited by
      #2

      hi friend wut u want?? for y u specify at first time???? WM_INITDIALOG is a message will post when a dialog initiates.. i think u aimed to do some trick with single instance...am i right?? Renjith:laugh: Hai Friends me from Pandalam..and i think there is a sofware behind everything... so enjoy with the codes...

      J 1 Reply Last reply
      0
      • R Renjith Ramachandran

        hi friend wut u want?? for y u specify at first time???? WM_INITDIALOG is a message will post when a dialog initiates.. i think u aimed to do some trick with single instance...am i right?? Renjith:laugh: Hai Friends me from Pandalam..and i think there is a sofware behind everything... so enjoy with the codes...

        J Offline
        J Offline
        jafrazee
        wrote on last edited by
        #3

        WM_INITDIALOG happens when the dialog is about to inialize. i have a function that i want to run after the dialog is inialized.

        A 1 Reply Last reply
        0
        • J jafrazee

          WM_INITDIALOG happens when the dialog is about to inialize. i have a function that i want to run after the dialog is inialized.

          A Offline
          A Offline
          alex barylski
          wrote on last edited by
          #4

          I"m not sure about this, but

          BOOL m_bFirstPass;

          CDialog:CDialog()
          {
          m_bFirstPass = FALSE;
          }

          CDialog::OnInitDialog()
          {
          m_bFirstPass = TRUE;
          }

          CDialog::OnActivate()
          {
          if(m_bFirstPass == TRUE)
          //Execute code only on first call
          m_bFirstPass = FALSE; //Prevent from code being executed again
          }

          This might work! :) "An expert is someone who has made all the mistakes in his or her field" - Niels Bohr

          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