MiniGUI API Reference (MiniGUI-Threads)  v5.0.0
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 9612 of file window.h.

Field Documentation

◆ dwAddData

DWORD dwAddData

The private additional data associated with this window class

Definition at line 9676 of file window.h.

◆ dwExStyle

DWORD dwExStyle

Extended window style for all instances of this window class

Definition at line 9634 of file window.h.

◆ dwStyle

DWORD dwStyle

Window style for all instances of this window class

Definition at line 9631 of file window.h.

◆ hCursor

HCURSOR hCursor

Cursor handle to all instances of this window class

Definition at line 9637 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 9657 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 9628 of file window.h.

◆ spClassName

const char* spClassName

The class name

Definition at line 9614 of file window.h.

◆ WinProc

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

Window callback procedure of all instances of this window class

Definition at line 9673 of file window.h.


The documentation for this struct was generated from the following file: