Click here to Skip to main content
15,886,258 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need to enable and disable after certain criteria...for initial stage one of the controls should be hide and after calling another dialogueBox (through DoModal()) and performing some functions the hided dialogue should get enable..

I used:
C++
GetItem(IDD_)->EnableWindow(TRUE/FALSE);

..Not working for the later condition
Posted
Updated 29-Mar-15 19:41pm
v2

1 solution

If you want to hide the dialog when calling DoModal on another dialog from it, you can call ShowWindow on the dialog before and after the DoModal call. Something like:


C++
this->ShowWindow(SW_HIDE);

// Call DoModal here.

this->ShowWindow(SW_SHOW);
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900