How to create a popup child window
Patricio Burbano -- pburbano@cra11.cambridge.com
Tuesday, October 01, 1996
Environment: MSVC++ 4.2, NT 4.0
I want to create a floating popup window from my application.
I would like this window to be like an SDI frame window, being able
to use dockable toolbars and a status bar, and hold a view window.
Any help would be appreciated.
Patricio Burbano
pburbano@cambridge.com
Wu Zhengyu -- wu5@CS.UWindsor.Ca
Sunday, October 06, 1996
Patricio,
Have you tried either,
WS_POPUP style window
or,
a modeless dialog.
Leo
> From owner-mfc-l@majordomo.netcom.com Thu Oct 3 00:59:25 1996
> Date: Tue, 1 Oct 96 10:37:47 EDT
> From: pburbano@cra11.cambridge.com (Patricio Burbano)
> To: mfc-l@netcom.com
> Subject: How to create a popup child window
> X-Status:
>
> Environment: MSVC++ 4.2, NT 4.0
>
> I want to create a floating popup window from my application.
> I would like this window to be like an SDI frame window, being able
> to use dockable toolbars and a status bar, and hold a view window.
>
> Any help would be appreciated.
>
> Patricio Burbano
> pburbano@cambridge.com
>
DFPav@aol.com
Wednesday, October 09, 1996
Re: How to create a popup child window
Override the LoadFrame memeber of CMainFrame (your CFrameWnd derivative)
and do something like this:
dwStyle |= WS_POPUP;
return CFrameWnd::LoadFrame(..., ...);
You may also have to remove some styles, to prevent an illegal combination of
styles
Dan
| Вернуться в корень Архива
|