The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: xandaz on July 24, 2011, 08:09:05 PM

Title: MDI child with dwStyle POPUP?
Post by: xandaz on July 24, 2011, 08:09:05 PM
    Is this possible? it must be right? I think that paint works like this. At least the back brush is equal to an MDIClient. Can someone show me how to use an MDI child with popup style? it always creates with overlapped style.
   Thanks
Title: Re: MDI child with dwStyle POPUP?
Post by: qWord on July 24, 2011, 08:54:18 PM
Quote from: xandaz on July 24, 2011, 08:09:05 PMI think that paint works like this. At least the back brush is equal to an MDIClient.
Are you referring to Microsoft's mspaint.exe? AFAIKS ms-paint doesn't use MDI windows. Also: what do you mean with the back brush?
Title: Re: MDI child with dwStyle POPUP?
Post by: xandaz on July 24, 2011, 09:02:00 PM
   I gave some misleading information. I just wanted to know how to make an MDI child with POPUP style.

if i do this:
mov wc.lpszClassName,offset MdiChildClass
mov wc.blah blah blah...
RegisterClassEx,addr wc
CreateWindowEx,NULL,addr MdiChildClass,addr MdiName,WS_POPUP,....


it just creates a window with overlapped looking style....
how do i do it then?
Title: Re: MDI child with dwStyle POPUP?
Post by: qWord on July 24, 2011, 09:14:41 PM
I don't think that this is possible.
What are yo trying to do? - Why not simply use a normal popup window?
Title: Re: MDI child with dwStyle POPUP?
Post by: xandaz on July 24, 2011, 09:19:22 PM
   Qword... I thought that word for example and other application that use sheet looking stuff ( i thought that these we're MDI children ) did it like this. I'm trying to make an example for GDI drawing and thought of making the canvas like this. Too bad its impossible....
Thanks Q
Title: Re: MDI child with dwStyle POPUP?
Post by: qWord on July 24, 2011, 09:29:10 PM
xandaz ,
If you want do use such things, it is highly recommended to switch to GDI+. The old GDI is to 'weak' for such effects/drawings.
Title: Re: MDI child with dwStyle POPUP?
Post by: dedndave on July 24, 2011, 10:17:18 PM
QuoteWS_POPUP The windows is a pop-up window. This style cannot be used with the WS_CHILD style