MiniGUI API Reference (MiniGUI-Threads)  v5.0.6
A mature and proven cross-platform GUI system for embedded and smart IoT devices
Data Fields
_WNDCLASS Struct Reference

#include <window.h>

Data Fields

const char * spClassName
 
DWORD opMask
 
DWORD dwStyle
 
DWORD dwExStyle
 
HCURSOR hCursor
 
gal_pixel iBkColor
 
LRESULT(* WinProc )(HWND, UINT, WPARAM, LPARAM)
 
DWORD dwAddData
 

Detailed Description

Structure defines a window class

Definition at line 9677 of file window.h.

Field Documentation

◆ dwAddData

DWORD dwAddData

The private additional data associated with this window class

Definition at line 9741 of file window.h.

◆ dwExStyle

DWORD dwExStyle

Extended window style for all instances of this window class

Definition at line 9699 of file window.h.

◆ dwStyle

DWORD dwStyle

Window style for all instances of this window class

Definition at line 9696 of file window.h.

◆ hCursor

HCURSOR hCursor

Cursor handle to all instances of this window class

Definition at line 9702 of file window.h.

◆ iBkColor

gal_pixel iBkColor

The background pixel value for all instances of this window class.

Note that this field only available for shared frame buffer schema. Under compositing schema, you must use dwBkColor field to specify the background color for a control. This introduces a source code incompatibility, you should change you code with a conditional compilation statement block:

#ifdef _MGSCHEMA_COMPOSITING
MyClass.dwBkColor = RGBA_lightwhite;
#else
MyClass.iBkColor = PIXEL_lightwhite;
#endif

Definition at line 9722 of file window.h.

◆ opMask

DWORD opMask

The mask of class information, can be OR'd with the following values:

  • COP_STYLE
    Retrieve the style of the window class.
  • COP_HCURSOR
    Retrieve the cursor of the window class.
  • COP_BKCOLOR
    Retrieve the background pixel value of the window class.
  • COP_WINPROC Retrieve the window procedure of the window class.
  • COP_ADDDATA
    Retrieve the additional data of the window class.

Definition at line 9693 of file window.h.

◆ spClassName

const char* spClassName

The class name

Definition at line 9679 of file window.h.

◆ WinProc

LRESULT(* WinProc(HWND, UINT, WPARAM, LPARAM)

Window callback procedure of all instances of this window class

Definition at line 9738 of file window.h.


The documentation for this struct was generated from the following file:
RGBA_lightwhite
#define RGBA_lightwhite
Definition: gdi.h:540
PIXEL_lightwhite
#define PIXEL_lightwhite
Light white.
Definition: gdi.h:299