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