RE: WS_CHILD

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

Jon Snyder wrote:
> I tried using setFocus right after creating it with no luck.  I'm using 
> version 0.55.1 of Win32Lib.  What is weird though is that if i maximize 
> the child window the top bar will flash the blue color of an active 
> window but then go back to gray.  Is this an error in win32lib?
> 
> Jon 
Jon,

Now looking back, from your example you had the create routines coded as 
:
WIN = create( Window, "Parent", 0,0,300,300,0),
CHILD = create( Window, "Child", 10,10,100,100, WS_CHILD)

In reality the create routine is defined as:

create( Window, "Title", parent, x, y, width, height, flags)

Is your example an exact quote from your program?  I am assuming not. 
Any way, you might try the following change to your parent/child 
relationship (not I added the parent parm to your example):

WIN = create( Window, "Parent", 0, 0,0,300,300,0),
CHILD = create( Window, "Child", WIN, 10,10,100,100, {WS_THICKFRAME} )

The WS_THICKFRAME gives the child window a nice raised window 
appearance.

Jonas

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

Search



Quick Links

User menu

Not signed in.

Misc Menu