This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
RE: rootless mode
- From: "Robert Collins" <robert dot collins at itdomain dot com dot au>
- To: "Schaible, Jorg" <Joerg dot Schaible at gft dot com>,<cygwin-xfree at cygwin dot com>
- Date: Tue, 9 Apr 2002 19:02:23 +1000
- Subject: RE: rootless mode
> -----Original Message-----
> From: Schaible, Jorg [mailto:Joerg.Schaible@gft.com]
> Sent: Tuesday, April 09, 2002 6:02 PM
> please keep also in mind, that the decoration of a window in
> X is coming from the X Window Manager. Windows always counts
> the border as part ot the Window itself. If you try to use
> native Windows controls for the X controls you may run here
> in major sizing prtoblems. Even for the top-level windows
> you may always keep the inner window size of the Windows
> based window in sync with the X size.
Of course. That's a problem whenever a decorator may work on your
window.
> I've developed and maintained for some years a cross-platform
> C++-GUI lib (Win16/Win32/OS2/Motif), so I know what I am
> talking about. Please don't get me wrong. I don't wanna tell
> you, what you should prove with your concept. I just want to
> give you a hint where some major problems will arise ;-)
I've actually run into this before.
CreateWindowEx (WS_EX_TOOLWINDOW,
someclass,
sometitle,
WS_POPUP,
x1,
y1,
width,
height,
(HWND) NULL,
(HMENU) NULL,
GetModuleHandle (NULL),
pPrivateData);
creates a completely borderless window that is not visible in the task
list but sits behind everying - so it needs a parent. WS_CHILD also
creates a borderless window IIRC - and that's used for controls.
Changing the WS_EX_TOOLWINDOW to 0 creates a completely borderless
window that is visible in the task list and participates in the
Z-order...
Thanks for taking the time to point out a possible problem though, I do
appreciate the input.
Rob