[Win] ...two rules.

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

The current definition for WS_OVERLAPPEDWINDOW in win32lib is wrong, and
should actually just be:

or_all({ WS_CAPTION,
  WS_SYSMENU,
  WS_THICKFRAME,
  WS_MINIMIZEBOX,
  WS_MAXIMIZEBOX})

So why does it work now....
... simply because it  now includes WS_BORDER *and* WS_DLGFRAME,
which...  or_all()'s  to  #C00000, which is,
you guessed it,
actually equivalent to WS_CAPTION.

Here's why it's wrong. ( my *emphasis* )

<from win32.hlp>
WS_DLGFRAME     Creates a window with a double border, a style typically used
with dialog boxes. A window with this style *cannot* have a title bar.

WS_SYSMENU      Creates a window that has a window-menu in its title bar. The
WS_CAPTION style *must* also be specified.

Which leads to a question someone might be able to answer.
The above style is #CF0000 in any case.
So why does:
printf(1,"style %x\n",
{ w32Func(xGetWindowLong,{getHandle(myMain),GWL_STYLE})})
.. always seem to return #4CF0000 ?
Is WS_CLIPSIBLINGS ( I guess ) always a parent window default ?

Wolf

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

Search



Quick Links

User menu

Not signed in.

Misc Menu