Re: child window copies from parent "under" it

new topic     » goto parent     » topic index » view thread      » older message » newer message

Brian,

An interesting, "outside the box" idea; but I think what I will probably do
is forget about trying to make a child with borders, and just make an
example using a child window the way it is apparently intended: for a
borderless but effectively sectioned off area of a main window's client area
which can receive stuff,(as Wolf has pointed out to me),  which also moves
with the main.

And I'll take a similar example of a "strange" child out of the "styles"
windows examples in my next version of "Win32Lib Examples Gateway", so as
not to confuse anyone else, :)

Dan






----- Original Message -----
From: "Brian Broker" <bkb at CNW.COM>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Monday, September 18, 2000 2:02 PM
Subject: Re: child window copies from parent "under" it


> On Sun, 17 Sep 2000 20:01:36 -0700, Dan B Moyer wrote:
>
> >...
> >
> >I've gotta assume that *someone* has at one time or another for one
reason
> >or another created a "child" window that *works* and isn't strange??
> >
> >All I'm trying to do is to create an *example* of how to create a child
> >window, to include with my "examples gateway" for Win32Lib, so if any one
> >has a better, functional example, please send it to me.
> >
> >Dan
>
> Try *not* using WS_CHILD:
>
> -- CHILD WINDOW, attached to Main ("parent")
> constant aChildWindow =
>     create( Window, "Child Window", MainWindow, 50, 80, 400, 200,
>             or_all({ WS_DLGFRAME, WS_SYSMENU }))
>
> If you want a nonsizeable window that you can minimize, try:
> or_all( { WS_DLGFRAME, WS_SYSMENU, WS_MINIMIZEBOX } ) )
>
> The fact that you are specifying "MainWindow" as the parent kinda
> makes 'aChildWindow' it's child.  WS_CHILD is just a window style...
>
> -- Brian

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu