Страницы

Страницы

вторник, 26 декабря 2017 г.

EmWin CreateDialogBox CreateWindow

Creates a dialog box.

WM_HWIN GUI_CreateDialogBox(const GUI_WIDGET_CREATE_INFO * paWidget,
int NumWidgets,
WM_CALLBACK * cb,
WM_HWIN hParent,
int x0,
int y0);

paWidget             Pointer to resource table defining the widgets to be included in the dialog.
NumWidgets       Total number of widgets included in the dialog.
cb                         Pointer to an application-specific callback function (dialog procedure).
hParent                 Handle of parent window (0 = no parent window).
x0                         X-position of the dialog relative to parent window.
y0                         Y-position of the dialog relative to parent window.


Creates a window of a specified size at a specified location.

WM_HWIN WM_CreateWindow(
int x0,
int y0,
int width,
int height,
U32 Style,
WM_CALLBACK * cb,
int NumExtraBytes);

x0                             Upper left X-position in desktop coordinates.
y0                             Upper left Y-position in desktop coordinates.
width                        X-size of window.
height                       Y-size of window.
Style                         Window create flags, listed below.
cb                             Pointer to callback routine, or NULL if no callback used.
NumExtraBytes       Number of extra bytes to be allocated, normally 0.