Painting Icons
David Little -- dlittle@equinoxcorp.com
Monday, October 28, 1996
Environment: Win95, VC4.1
I have an MDI app and I want to hide the main frame and display a =
dialog. This works fine, but I noticed that the icon that is normally =
on the task bar is missing until I make the main frame visible. Here is =
where I hide and display the dialog:
BOOL CHideApp::InitInstance()
{
.
.
.
// The main window has been initialized, so show and update it.
//pMainFrame->ShowWindow(m_nCmdShow);
pMainFrame->ShowWindow(SW_HIDE);
pMainFrame->UpdateWindow();
pMainFrame->PostMessage(WM_COMMAND, ID_INPUT_AUXINPUT);
return TRUE;
}
Anybody know how I can paint the icon? As far as I can tell, a hidden =
window doesn't get any WM_PAINTs...
Thanks!
David
SachinX Keskar -- SachinX_Keskar@ccm.jf.intel.com
Tuesday, October 29, 1996
Text item:
Environment: Win95, VC4.1
I have an MDI app and I want to hide the main frame and display a =
dialog. This works fine, but I noticed that the icon that is normally =
on the task bar is missing until I make the main frame visible. Here is =
where I hide and display the dialog:
BOOL CHideApp::InitInstance()
{
.
.
.
// The main window has been initialized, so show and update it.
//pMainFrame->ShowWindow(m_nCmdShow);
pMainFrame->ShowWindow(SW_HIDE);
pMainFrame->UpdateWindow();
pMainFrame->PostMessage(WM_COMMAND, ID_INPUT_AUXINPUT);
return TRUE;
}
Anybody know how I can paint the icon? As far as I can tell, a hidden =
window doesn't get any WM_PAINTs...
Thanks!
David
Text item: External Message Header
The following mail header is for administrative use
and may be ignored unless there are problems.
***IF THERE ARE PROBLEMS SAVE THESE HEADERS***.
Reply-To: mfc-l@netcom.com
Precedence: bulk
Errors-To: owner-mfc-l@majordomo.netcom.com
Sender: owner-mfc-l@majordomo.netcom.com
Wolfgang Loch -- Wolfgang.Loch@RZ.TU-Ilmenau.DE
Wednesday, October 30, 1996
>
> Environment: Win95, VC4.1
>
> I have an MDI app and I want to hide the main frame and display a =
> dialog. This works fine, but I noticed that the icon that is normally =
> on the task bar is missing until I make the main frame visible. Here is =
> where I hide and display the dialog:
>
> BOOL CHideApp::InitInstance()
> {
> .
> .
> .
> // The main window has been initialized, so show and update it.
> //pMainFrame->ShowWindow(m_nCmdShow);
> pMainFrame->ShowWindow(SW_HIDE);
> pMainFrame->UpdateWindow();
>
> pMainFrame->PostMessage(WM_COMMAND, ID_INPUT_AUXINPUT);
> return TRUE;
> }
>
> Anybody know how I can paint the icon? As far as I can tell, a hidden =
> window doesn't get any WM_PAINTs...
>
> Thanks!
> David
>
>
I guess, what you really want is to minimize the frame window
pMainFrame->ShowWindow(SW_MINIMIZE)
Maybe your dialog should have not the frame as it's parent, so
that will not be minimized too.
Wolfgang
| Вернуться в корень Архива
|