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. CPropertySheet

CPropertySheet

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
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.
  • G Offline
    G Offline
    g3e
    wrote on last edited by
    #1

    I have a wizard derived from propertysheet. It is a modal dialog which is invoked using DoModal(). Immediately after the wizard is displayed, I want to popup a dialog. But i'm not able to track the exact point after the wizard is shown. In which method of the wizard can i do this ??? Thanx for ur help.

    B D A 3 Replies Last reply
    0
    • G g3e

      I have a wizard derived from propertysheet. It is a modal dialog which is invoked using DoModal(). Immediately after the wizard is displayed, I want to popup a dialog. But i'm not able to track the exact point after the wizard is shown. In which method of the wizard can i do this ??? Thanx for ur help.

      B Offline
      B Offline
      bcemick
      wrote on last edited by
      #2

      Try doing in the OnInitDialog of your wizard.

      1 Reply Last reply
      0
      • G g3e

        I have a wizard derived from propertysheet. It is a modal dialog which is invoked using DoModal(). Immediately after the wizard is displayed, I want to popup a dialog. But i'm not able to track the exact point after the wizard is shown. In which method of the wizard can i do this ??? Thanx for ur help.

        D Offline
        D Offline
        David Crow
        wrote on last edited by
        #3

        At the end of the sheet's OnInitDialog() method, you'll need to post a user-defined message. In the handler of that message, instantiate the other dialog and call its DoModal() method. You cannot do the latter directly from the sheet's OnInitDialog() method.


        "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

        1 Reply Last reply
        0
        • G g3e

          I have a wizard derived from propertysheet. It is a modal dialog which is invoked using DoModal(). Immediately after the wizard is displayed, I want to popup a dialog. But i'm not able to track the exact point after the wizard is shown. In which method of the wizard can i do this ??? Thanx for ur help.

          A Offline
          A Offline
          Antony M Kancidrowski
          wrote on last edited by
          #4

          If you use a modeless dialog box you can create it and show it within the OnInitDialog method of the wizard. Basic idea 1) Create dialog 2) Call ShowWindow for the wizard (Ensures that the wizard is shown) 3) Call ShowWindow for the dialog (Shows the modeless dialog) before returning from the OnInitDialog of the wizard. Ant. I'm hard, yet soft.
          I'm coloured, yet clear.
          I'm fruity and sweet.
          I'm jelly, what am I? Muse on it further, I shall return!
          - David Walliams (Little Britain)

          G 1 Reply Last reply
          0
          • A Antony M Kancidrowski

            If you use a modeless dialog box you can create it and show it within the OnInitDialog method of the wizard. Basic idea 1) Create dialog 2) Call ShowWindow for the wizard (Ensures that the wizard is shown) 3) Call ShowWindow for the dialog (Shows the modeless dialog) before returning from the OnInitDialog of the wizard. Ant. I'm hard, yet soft.
            I'm coloured, yet clear.
            I'm fruity and sweet.
            I'm jelly, what am I? Muse on it further, I shall return!
            - David Walliams (Little Britain)

            G Offline
            G Offline
            g3e
            wrote on last edited by
            #5

            Thanx for all ur responses. Its working now !!! I tried first to post a user defined message from the sheet's InitDialog. But that did not work as expected. Then i tried the same from the InitDialog of the property page. And it worked just as required. Thanx again.

            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