Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

WNDCLASSEX (Structures)
 
.
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:

None.

Documentation
WNDCLASSEX on MSDN

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • alternate definitions?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing any supporting types needed.

 
Access PInvoke.net directly from VS:
Terms of Use
Find References
Show Printable Version
Revisions