[DllImport("user32.dll")]
static extern bool GetClassInfo(IntPtr hInstance, string lpClassName,
out WNDCLASS lpWndClass);
Declare Function GetClassInfo Lib "user32.dll" (hInstance As IntPtr, _
lpClassName As String, <Out> ByRef lpWndClass As WNDCLASS) As Boolean
public struct WNDCLASS
{
public int style;
public int lpfnwndproc;
public int cbClsextra;
public int cbWndExtra2;
public IntPtr hInstance;
public IntPtr hIcon;
public IntPtr hCursor;
public IntPtr hbrBackground;
public string lpszMenuName;
public string lpszClassName;
}
07/30/2008 - The last parameter should be ref instead of out. The function expects an instance.
Please add some!
Please add some!
System.Windows.Forms.Form.CreateParams.ClassStyle and misc. properties of Form (BackColor, Icon, Menu), Control (Cursor, Name), and Component (Events).
