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

CDialog

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

    Hi! I have a CDialog to validate the entrances into my application. But after pressing ok on my CDialog the application doesn´t "continue"... I have to enter the program again to continue...(on CWnd) What´s wrong...? Is it the CDialog?

    J 1 Reply Last reply
    0
    • M Mariz

      Hi! I have a CDialog to validate the entrances into my application. But after pressing ok on my CDialog the application doesn´t "continue"... I have to enter the program again to continue...(on CWnd) What´s wrong...? Is it the CDialog?

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

      :eek: I suppose your main window is not the dialog... Please show the code where you call the dialog.

      M 1 Reply Last reply
      0
      • J Joao Paulo Figueira

        :eek: I suppose your main window is not the dialog... Please show the code where you call the dialog.

        M Offline
        M Offline
        Mariz
        wrote on last edited by
        #3

        i am creating and calling the cdialog in the CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct) function and i am creating my CWnd in the int CClientView::OnCreate(LPCREATESTRUCT lpCreateStruct).

        J 1 Reply Last reply
        0
        • M Mariz

          i am creating and calling the cdialog in the CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct) function and i am creating my CWnd in the int CClientView::OnCreate(LPCREATESTRUCT lpCreateStruct).

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

          Try to remove the dialog invocation from the CMainFrame::OnCreate. Move it to the Application's InitInstance. If the user fails at entering the application, you can immediately exit it (will not create the main frame).

          M 1 Reply Last reply
          0
          • J Joao Paulo Figueira

            Try to remove the dialog invocation from the CMainFrame::OnCreate. Move it to the Application's InitInstance. If the user fails at entering the application, you can immediately exit it (will not create the main frame).

            M Offline
            M Offline
            Mariz
            wrote on last edited by
            #5

            It works... Thanks! :):)

            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