Sebastian Gottschalk wrote: [Microsoft Windows]
This is something else - and I'm not sure about what you're meaning with "desktop context" or "windowstation context".
A window is not "in a device context" or something like that. A window is an object in a desktop object in a window-station object. Usually, for example the client area of a window can have a device context.
Or, to be specific: a window is nothing which is in GDI - it's in USER. Device contexts are objects in GDI.
Yours, VB.