WNDCLASSEX (Structures)
Last changed: Doron Guttman-155.188.247.25

.
Summary
The WNDCLASSEX structure contains window class information. It is used with the RegisterClassEx and GetClassInfoEx functions. The WNDCLASSEX structure is similar to the WNDCLASS structure. There are two differences. WNDCLASSEX includes the cbSize member, which specifies the size of the structure, and the hIconSm member, which contains a handle to a small icon associated with the window class.

C# Definition:

[StructLayout(LayoutKind.Sequential)]
struct WNDCLASSEX
{
   public uint cbSize;
   public uint style;
   [MarshalAs(UnmanagedType.FunctionPtr)]
   public WndProc lpfnWndProc;
   public int cbClsExtra;
   public int cbWndExtra;
   public IntPtr hInstance;
   public IntPtr hIcon;
   public IntPtr hCursor;
   public IntPtr hbrBackground;
   [MarshalAs(UnmanagedType.LPTStr)]
   public string lpszMenuName;
   [MarshalAs(UnmanagedType.LPTStr)]
   public string lpszClassName;
   public IntPtr hIconSm;
}

VB Definition:

<StructLayout(LayoutKind.Sequential)> _
Structure WNDCLASSEX
   Public cbSize As UInt32
   Public style As UInt32
   <MarshalAs(UnmanagedType.FunctionPtr)>
   Public lpfnWndProc As WndProc
   Public cbClsExtra As Integer
   Public cbWndExtra As Integer
   Public hInstance As IntPtr
   Public hIcon As IntPtr
   Public hCursor As IntPtr
   Public hbrBackground As IntPtr
   <MarshalAs(UnmanagedType.LPTStr)>
   Public lpszMenuName As String
   <MarshalAs(UnmanagedType.LPTStr)>
   Public lpszClassName As String
   Public hIconSm As IntPtr
End Structure

User-Defined Field Types:

None.

Notes:

Documentation
WNDCLASSEX on MSDN