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

#include <window.h>

Data Fields

DWORD dwStyle
 
DWORD dwExStyle
 
int x
 
const char * caption
 
HICON hIcon
 
HMENU hMenu
 
int controlnr
 
PCTRLDATA controls
 
DWORD dwAddData
 

Detailed Description

Structure which defines a dialogbox.

Example:

static DLGTEMPLATE DlgInitProgress =
{
120, 150, 400, 130,
"VAM-CNC is initializing",
0, 0,
3, NULL,
0
};
static CTRLDATA CtrlInitProgress [] =
{
{
"static",
10, 10, 380, 16,
IDC_PROMPTINFO,
"Initialize...",
0
},
{
"progressbar",
10, 40, 380, 20,
IDC_PROGRESS,
0
},
{
"button",
170, 70, 60, 25,
IDOK,
"OK",
0
}
};

Definition at line 11559 of file window.h.

Field Documentation

◆ caption

const char* caption

Dialog box caption

Definition at line 11568 of file window.h.

◆ controlnr

int controlnr

Number of controls

Definition at line 11574 of file window.h.

◆ controls

PCTRLDATA controls

Poiter to control array

Definition at line 11576 of file window.h.

◆ dwAddData

DWORD dwAddData

Addtional data, must be zero

Definition at line 11578 of file window.h.

◆ dwExStyle

DWORD dwExStyle

Dialog box extended style

Definition at line 11564 of file window.h.

◆ dwStyle

DWORD dwStyle

Dialog box style

Definition at line 11562 of file window.h.

◆ hIcon

HICON hIcon

Dialog box icon

Definition at line 11570 of file window.h.

◆ hMenu

HMENU hMenu

Dialog box menu

Definition at line 11572 of file window.h.

◆ x

int x

Dialog box position

Definition at line 11566 of file window.h.


The documentation for this struct was generated from the following file:
SS_SIMPLE
#define SS_SIMPLE
Designates a simple rectangle and displays a single line of text flush-left in the rectangle.
Definition: static.h:96
WS_VISIBLE
#define WS_VISIBLE
Creates a window initially visible.
Definition: window.h:4292
NULL
#define NULL
A value indicates null pointer.
Definition: common.h:369
_CTRLDATA
Definition: window.h:11525
_DLGTEMPLATE
Definition: window.h:11559
WS_BORDER
#define WS_BORDER
Creates a window with border.
Definition: window.h:4338
BS_DEFPUSHBUTTON
#define BS_DEFPUSHBUTTON
Creates a push button that behaves like a BS_PUSHBUTTON style button.
Definition: button.h:116
WS_CAPTION
#define WS_CAPTION
Creates a main window with caption.
Definition: window.h:4277
WS_EX_NONE
#define WS_EX_NONE
No any extended window style.
Definition: window.h:4388
WS_TABSTOP
#define WS_TABSTOP
Indicates the user can set the input focus to the control by using Tab key.
Definition: window.h:4363