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. Call a function after showing the dialog.

Call a function after showing the dialog.

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

    I want a function to be called after dialog box has been shown. I can't write it in OnInitDialog(). From where should I call that funtion? Is there any CDialog method which is called immediately after showing the dialog . Ayesha

    _ H _ 3 Replies Last reply
    0
    • A Ayesha Farheen

      I want a function to be called after dialog box has been shown. I can't write it in OnInitDialog(). From where should I call that funtion? Is there any CDialog method which is called immediately after showing the dialog . Ayesha

      _ Offline
      _ Offline
      _AnsHUMAN_
      wrote on last edited by
      #2

      You can create a user message. Use PostMessage from InitDialog() to call the function. (WM_USER+1 and so on) Somethings seem HARD to do, until we know how to do them. ;-) _AnShUmAn_

      1 Reply Last reply
      0
      • A Ayesha Farheen

        I want a function to be called after dialog box has been shown. I can't write it in OnInitDialog(). From where should I call that funtion? Is there any CDialog method which is called immediately after showing the dialog . Ayesha

        H Offline
        H Offline
        Hamid Taebi
        wrote on last edited by
        #3

        Can you be more specific_**


        **_

        whitesky


        1 Reply Last reply
        0
        • A Ayesha Farheen

          I want a function to be called after dialog box has been shown. I can't write it in OnInitDialog(). From where should I call that funtion? Is there any CDialog method which is called immediately after showing the dialog . Ayesha

          _ Offline
          _ Offline
          _anil_
          wrote on last edited by
          #4

          See here http://www.codeproject.com/script/comments/forums.asp?msg=1510539&forumid=1647&Page=1&userid=790667&mode=all#xx1510539xx[^] Regards Anil

          A 1 Reply Last reply
          0
          • _ _anil_

            See here http://www.codeproject.com/script/comments/forums.asp?msg=1510539&forumid=1647&Page=1&userid=790667&mode=all#xx1510539xx[^] Regards Anil

            A Offline
            A Offline
            Ayesha Farheen
            wrote on last edited by
            #5

            Thank you Anil and thank you every one. Ayesha

            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