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. Windows Event Messages

Windows Event Messages

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

    I'm having a small problem with my test program. I have a Dialogbased program that has a bunch of buttons. When I click on one of them, another Dialog appears. This new Dialog has only one button, called "Continue". Here's where my problem starts. This new dialog that appears should after a couple of seconds activate another Dialog. This is done by a timer or Sleep function. The thing is that I manage to get the third Dialog to appear automatically but I found that the Second Dialog with the button "Continue" didn't show the button. It's like the Dialog is drawn but not the button. Hope you understand my problem. Is there any event that is sent afte the whole Dialog is painted, including the button or other controls? I've tryed, WM_PAINT, WM_ACTIVATE, WM_SHOWWINDOW. Please help!

    T M 2 Replies Last reply
    0
    • H Hachaso

      I'm having a small problem with my test program. I have a Dialogbased program that has a bunch of buttons. When I click on one of them, another Dialog appears. This new Dialog has only one button, called "Continue". Here's where my problem starts. This new dialog that appears should after a couple of seconds activate another Dialog. This is done by a timer or Sleep function. The thing is that I manage to get the third Dialog to appear automatically but I found that the Second Dialog with the button "Continue" didn't show the button. It's like the Dialog is drawn but not the button. Hope you understand my problem. Is there any event that is sent afte the whole Dialog is painted, including the button or other controls? I've tryed, WM_PAINT, WM_ACTIVATE, WM_SHOWWINDOW. Please help!

      T Offline
      T Offline
      ThatsAlok
      wrote on last edited by
      #2

      Hachaso wrote: When I click on one of them, another Dialog appears. This new Dialog has only one button, called "Continue". Here's where my problem starts. This new dialog that appears should after a couple of seconds activate another Dialog. Is your third Dialog is Model or ModelLess i.e. is it created with CDialog::DoModal [Model] or CDialog::Create and CDialog::ShowWindow [Modelless].....

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

      cheers, Alok Gupta VC Forum Q&A :- I/ IV

      H 1 Reply Last reply
      0
      • T ThatsAlok

        Hachaso wrote: When I click on one of them, another Dialog appears. This new Dialog has only one button, called "Continue". Here's where my problem starts. This new dialog that appears should after a couple of seconds activate another Dialog. Is your third Dialog is Model or ModelLess i.e. is it created with CDialog::DoModal [Model] or CDialog::Create and CDialog::ShowWindow [Modelless].....

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

        cheers, Alok Gupta VC Forum Q&A :- I/ IV

        H Offline
        H Offline
        Hachaso
        wrote on last edited by
        #3

        My thir Dialog is ModelLess. Hope you have an answer to my problem.

        T 1 Reply Last reply
        0
        • H Hachaso

          My thir Dialog is ModelLess. Hope you have an answer to my problem.

          T Offline
          T Offline
          ThatsAlok
          wrote on last edited by
          #4

          Hachaso wrote: Hope you have an answer to my problem. I can help, But your problem seems to very unique!!.... can you show me little code snippet... so i can dig into you code.....

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

          cheers, Alok Gupta VC Forum Q&A :- I/ IV

          H 1 Reply Last reply
          0
          • H Hachaso

            I'm having a small problem with my test program. I have a Dialogbased program that has a bunch of buttons. When I click on one of them, another Dialog appears. This new Dialog has only one button, called "Continue". Here's where my problem starts. This new dialog that appears should after a couple of seconds activate another Dialog. This is done by a timer or Sleep function. The thing is that I manage to get the third Dialog to appear automatically but I found that the Second Dialog with the button "Continue" didn't show the button. It's like the Dialog is drawn but not the button. Hope you understand my problem. Is there any event that is sent afte the whole Dialog is painted, including the button or other controls? I've tryed, WM_PAINT, WM_ACTIVATE, WM_SHOWWINDOW. Please help!

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

            Are you able to move your second dialog (in your terms, new Dialog with one continue button) " Action without vision is only passing time, Vision without action is merely day dreaming, But vision with action can change the world " - Words from Nelson Mandela Thanks & Regards, Gopalakrishnan

            1 Reply Last reply
            0
            • T ThatsAlok

              Hachaso wrote: Hope you have an answer to my problem. I can help, But your problem seems to very unique!!.... can you show me little code snippet... so i can dig into you code.....

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

              cheers, Alok Gupta VC Forum Q&A :- I/ IV

              H Offline
              H Offline
              Hachaso
              wrote on last edited by
              #6

              If you want I can attach the whole project. I'm trying to do this unique things to learn. Where can I send you all my files? This way you can see my problem.

              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