Mattias,
Yep, thats what I thought. I converted the CreateWindowEx API and the
(Extended)WindowStyles (made them enums of uint type) and got the
following
[DllImport("User32.dll", SetLastError=true)]
public static extern IntPtr CreateWindowEx(
WindowStylesExtended dwExStyle,
string lpClassName,
string lpWindowName,
WindowStyles dwStyle,
int x,
int y,
int nWidth,
int nHeight,
int hWndParent,
IntPtr hMenu,
IntPtr hInstance,
IntPtr lpParam);
Then I found myself wondering what ClassName to use, or if I perhaps should
use the RegisterClassEx method to setup a class. In the PSDK I found a class
called "Message", but the PSDK states (for the table I found it in)
"The following table describes the system classes that are available
only for
use by the system. They are listed here for completeness sake."
I tried passing "Message" and it worked, but I'm not sure I should be using
this since it was intended to be used by the system, and might be subjected
to changes in the future?
I found it at PSDK (Feb.2003)
ms-help://MS.PSDK.1033/winui/winui/windowsuserinterface/windowing/
windowclasses/aboutwindow.htm
Cheers,
Andreas