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. Mobile Development
  3. Mobile
  4. DoModal to call other Dialog

DoModal to call other Dialog

Scheduled Pinned Locked Moved Mobile
question
5 Posts 2 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.
  • I Offline
    I Offline
    illidan99
    wrote on last edited by
    #1

    Hi, I use DoModal() to open a Dialog in a Dialog-Based project. In the main OnInitDialog I hide the SIP button, and when I use DoModal() to open a second Dialog, the SIP continues hide, but when I close the second Dialog, the SIP button and the bar appears in the Main Dialog. Is it possible to execute OnInitDialog again to hide the bar? Or exists another way for doing it? Thanks in advance. Regards, Javier

    J 1 Reply Last reply
    0
    • I illidan99

      Hi, I use DoModal() to open a Dialog in a Dialog-Based project. In the main OnInitDialog I hide the SIP button, and when I use DoModal() to open a second Dialog, the SIP continues hide, but when I close the second Dialog, the SIP button and the bar appears in the Main Dialog. Is it possible to execute OnInitDialog again to hide the bar? Or exists another way for doing it? Thanks in advance. Regards, Javier

      J Offline
      J Offline
      Joao Paulo Figueira
      wrote on last edited by
      #2

      Your dialog window receives a WM_ACTIVATE message when it is shown. Regards, João Paulo Figueira Embedded MVP

      I 1 Reply Last reply
      0
      • J Joao Paulo Figueira

        Your dialog window receives a WM_ACTIVATE message when it is shown. Regards, João Paulo Figueira Embedded MVP

        I Offline
        I Offline
        illidan99
        wrote on last edited by
        #3

        Ok, initially for a dialog this message doesn't appear in the ClassWizard. I put a message handler in the *.cpp. Is this the way?: void CFullScreen2Dlg::OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized) { CDialog::OnActivate(nState, pWndOther, bMinimized); // HERE I PUT ANY CODE WHICH IS EXECUTED WHEN THIS MESSAGE IS SENT... } I test in this way and it's not right. Can you help me? Thanks. Regards, Javier

        J I 2 Replies Last reply
        0
        • I illidan99

          Ok, initially for a dialog this message doesn't appear in the ClassWizard. I put a message handler in the *.cpp. Is this the way?: void CFullScreen2Dlg::OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized) { CDialog::OnActivate(nState, pWndOther, bMinimized); // HERE I PUT ANY CODE WHICH IS EXECUTED WHEN THIS MESSAGE IS SENT... } I test in this way and it's not right. Can you help me? Thanks. Regards, Javier

          J Offline
          J Offline
          Joao Paulo Figueira
          wrote on last edited by
          #4

          Did you write an entry on the message map? Regards, João Paulo Figueira Embedded MVP

          1 Reply Last reply
          0
          • I illidan99

            Ok, initially for a dialog this message doesn't appear in the ClassWizard. I put a message handler in the *.cpp. Is this the way?: void CFullScreen2Dlg::OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized) { CDialog::OnActivate(nState, pWndOther, bMinimized); // HERE I PUT ANY CODE WHICH IS EXECUTED WHEN THIS MESSAGE IS SENT... } I test in this way and it's not right. Can you help me? Thanks. Regards, Javier

            I Offline
            I Offline
            illidan99
            wrote on last edited by
            #5

            I repass it and it's works, thanks!. Is there a easy way to hide the below bar (where the SIP button is) in all the application? I suppose at the beginning...I try it in many ways and wrong... It's better than I hide this bar in each "Activate Message"... Regards, Javier

            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