Re: child window copies from parent "under" it

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

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