Re: Hide a DoModal
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Sat, 27 Sep 2008 23:28:32 -0400
That doesn't make sense. A modal dialog disables your main window, but if succeed in
making the dialog invisible, you can't dismiss it. The main window just gets disabled,
and if you are calling OnOK or OnCancel from within your dialog to make it disappear, the
entire app gets disabled for no apparent reason, which is exceptionally poor user
interface design.
Why do you think you want to do this? It sounds like you have not properly factored your
code to separate functionality from the dialog class, and that sounds like a design error.
joe
On Fri, 26 Sep 2008 15:07:46 -0700, "Michael Tissington" <michael@xxxxxxxxxxxxxxxxxxxxx>
wrote:
during call to my dlg.DoModal() before the dialog is shown for the firstJoseph M. Newcomer [MVP]
time I'd like to hide it.
I have tried a ShowWindow(SW_HIDE) in the OnInitDialog but that did not
work.
How do I tell the DoModal to do everything except show the window ?
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- Follow-Ups:
- Re: Hide a DoModal
- From: Michael Tissington
- Re: Hide a DoModal
- References:
- Hide a DoModal
- From: Michael Tissington
- Hide a DoModal
- Prev by Date: Re: MessageBox Function
- Next by Date: Re: min / max
- Previous by thread: Re: Hide a DoModal
- Next by thread: Re: Hide a DoModal
- Index(es):
Relevant Pages
|