Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- M E W E L - <b>the wndclass structure has been redefined</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
The WNDCLASS structure has been redefined

Version  3.1 Adds more MS Windows compatiblity to the WNDCLASS structure.

  The WNDCLASS structure is now defined like this :

typedef struct wndClass
{
  struct wndClass *next;
  DWORD  style;                     /* style bits                     */
  long (PASCAL *lpfnWndProc)();     /* pointer to window proc         */
  long (PASCAL *lpfnDefWndProc)();
  int    cbClsExtra;                /* # of extra bytes for the class */
  int    cbWndExtra;                /* # of extra bytes per window    */
  char   *lpszClassName;            /* the class name                 */
  char   *lpszBaseClass;            /* the name of the base class     */
  WORD   idClass;
  WORD   idBaseClass;               /* the id of the derived class    */
  WORD   idLowestClass;
  /* Windows compatibility */
  HANDLE  hInstance;
  HICON   hIcon;
  HCURSOR hCursor;
  HBRUSH  hbrBackground;
  LPSTR   lpszMenuName;
} WNDCLASS, *PWNDCLASS, *LPWNDCLASS;

We changed the names of some of the fields to the same names as Windows.
We also added several other fields which Windows uses. Of these new fields,
the use the hbrBackground and lpszMenuName are supported.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson