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

Search Results for "WNDCLASSEX" in [All]

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.
.

struct WNDCLASSEX

.

Structure WNDCLASSEX

.

   'Dim WndClss As WNDCLASSEX = WNDCLASSEX.GetNew()

.

      Dim nw as New WNDCLASSEX

.

      nw.cbSize=Marshal.SizeOf(GetType(WNDCLASSEX))

.
    • Specifies the size, in bytes, of this structure. Set this member to sizeof(WNDCLASSEX). Be sure to set this member before calling the GetClassInfoEx function.
.
    • Specifies the number of extra bytes to allocate following the window instance. The system initializes the bytes to zero. If an application uses WNDCLASSEX to register a dialog box created by using the CLASS directive in the resource file, it must set this member to DLGWINDOWEXTRA.
.
Documentation
[WNDCLASSEX] on MSDN
.
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.
.

public struct WNDCLASSEX

.

    //var WndClss = WNDCLASSEX.Build()

.

    public static WNDCLASSEX Build()

.

    var nw = new WNDCLASSEX();

.

    nw.cbSize = Marshal.SizeOf(typeof (WNDCLASSEX));

.

Structure WNDCLASSEX

.

   'Dim WndClss As WNDCLASSEX = WNDCLASSEX.GetNew()

.

      Dim nw as New WNDCLASSEX

.

      nw.cbSize=Marshal.SizeOf(GetType(WNDCLASSEX))

.
    • Specifies the size, in bytes, of this structure. Set this member to sizeof(WNDCLASSEX). Be sure to set this member before calling the GetClassInfoEx function.
.
    • Specifies the number of extra bytes to allocate following the window instance. The system initializes the bytes to zero. If an application uses WNDCLASSEX to register a dialog box created by using the CLASS directive in the resource file, it must set this member to DLGWINDOWEXTRA.
.
Documentation
[WNDCLASSEX] on MSDN

Enums

.
Summary

user32

.

static extern Boolean GetClassInfoEx(IntPtr hInstance, String lpClassName, ref WNDCLASSEX lpWndClass);

.

Private Shared Function GetClassInfoEx(hInstance As IntPtr, lpClassName As String, ByRef lpWndClass As WNDCLASSEX) As Boolean

.

Be sure to set cbSize member of WNDCLASSEX structure before calling the GetClassInfoEx function.

.

WNDCLASSEX wndClass = new WNDCLASSEX { cbSize = (uint)Marshal.SizeOf(typeof(WNDCLASSEX)) };

.

static extern Boolean GetClassInfoEx(IntPtr hInstance, String lpClassName, ref WNDCLASSEX lpWndClass);

.

Private Shared Function GetClassInfoEx(hInstance As IntPtr, lpClassName As String, ByRef lpWndClass As WNDCLASSEX) As Boolean

.

Be sure to set cbSize member of WNDCLASSEX structure before calling the GetClassInfoEx function.

.

WNDCLASSEX wndClass = new WNDCLASSEX { cbSize = (uint)Marshal.SizeOf(typeof(WNDCLASSEX)) };

.

static extern short RegisterClassEx([In] ref WNDCLASSEX lpwcx);

.

Public Shared Function RegisterClassEx(ByRef lpwcx As WNDCLASSEX) As Short

.

WNDCLASSEX

.

    Private Structure WNDCLASSEX

.

        Dim nw As New WNDCLASSEX

.

        nw.cbSize = Marshal.SizeOf(GetType(WNDCLASSEX))

.

    Private Shared Function RegisterClassEx(ByRef lpwcx As WNDCLASSEX) As Short

.

    Dim WndClass As WNDCLASSEX = WNDCLASSEX.MakeNew()

.

See WNDCLASSEX for more details.

.

static extern short RegisterClassEx([In] ref WNDCLASSEX lpwcx);

.

Public Shared Function RegisterClassEx(ByRef lpwcx As WNDCLASSEX) As Short

.

WNDCLASSEX

.

See WNDCLASSEX for more details.

.

    Private Structure WNDCLASSEX

.

    Dim nw As New WNDCLASSEX

.

    nw.cbSize = Marshal.SizeOf(GetType(WNDCLASSEX))

.

    Private Shared Function RegisterClassEx(ByRef lpwcx As WNDCLASSEX) As Short

.

    Dim WndClass As WNDCLASSEX = WNDCLASSEX.MakeNew()


 
Access PInvoke.net directly from VS: