Encyclopedia > Windows class

  Article Content

Window class

Redirected from Windows class

In computer programming, window class is a class in the sense of object-oriented programming specifying the icon, the background color and some other attributes of windows in Microsoft Windows operating systems.

People are often confused but it is not the class of C++ but mere binary data structure in essence.

It is defined using C programming language's struct[?] as WNDCLASS or WNDCLASSEX:

typedef struct {
    UINT style;
    WNDPROC lpfnWndProc;
    int cbClsExtra;
    int cbWndExtra;
    HINSTANCE hInstance;
    HICON hIcon;
    HCURSOR hCursor;
    HBRUSH hbrBackground;
    LPCTSTR lpszMenuName;
    LPCTSTR lpszClassName;
} WNDCLASS, *PWNDCLASS;

or

typedef struct {
    UINT cbSize;
    UINT style;
    WNDPROC lpfnWndProc;
    int cbClsExtra;
    int cbWndExtra;
    HINSTANCE hInstance;
    HICON hIcon;
    HCURSOR hCursor;
    HBRUSH hbrBackground;
    LPCTSTR lpszMenuName;
    LPCTSTR lpszClassName;
    HICON hIconSm;
} WNDCLASSEX, *PWNDCLASSEX;



All Wikipedia text is available under the terms of the GNU Free Documentation License

 
  Search Encyclopedia

Search over one million articles, find something about almost anything!
 
 
  
  Featured Article
Islip Terrace, New York

... any race. There are 1,755 households out of which 43.6% have children under the age of 18 living with them, 67.6% are married couples living together, 11.5% have a female ...

 
 
 
This page was created in 23.4 ms