MiniGUI API Reference (MiniGUI-Threads)  v3.2.0
A mature and proven cross-platform GUI system for embedded and smart IoT devices
ctrlhelper.h
Go to the documentation of this file.
1 
43 /*
44  * $Id: ctrlhelper.h 10829 2008-08-26 07:47:17Z weiym $
45  *
46  * MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
47  * pSOS, ThreadX, NuCleus, OSE, and Win32.
48  */
49 
50 #ifndef _MGUI_CTRL_CTRLHELPER_H
51 #define _MGUI_CTRL_CTRLHELPER_H
52 
53 
54 #ifdef __cplusplus
55 extern "C" {
56 #endif /* __cplusplus */
57 
77 typedef enum
78 {
90 } SBPolicyType;
91 
92 #define DF_3DBOX_NORMAL 0x0000
93 #define DF_3DBOX_PRESSED 0x0001
94 #define DF_3DBOX_STATEMASK 0x000F
95 #define DF_3DBOX_NOTFILL 0x0000
96 #define DF_3DBOX_FILL 0x0010
97 
112 MG_EXPORT void GUIAPI DisabledTextOutEx (HDC hdc, HWND hwnd, int x, int y, const char* szText);
113 
137 MG_EXPORT HWND CreateToolTipWin (HWND hParentWnd, int x, int y,
138  int timeout_ms, const char* text, ...);
139 
158 MG_EXPORT void ResetToolTipWin (HWND hwnd, int x, int y,
159  const char* text, ...);
160 
172 MG_EXPORT void DestroyToolTipWin (HWND hwnd);
173 
202 MG_EXPORT void GUIAPI NotifyParentEx (HWND hwnd, LINT id, int code, DWORD add_data);
203 
218 #define NotifyParent(hwnd, id, code) \
219  NotifyParentEx(hwnd, id, code, 0)
220 
231 typedef int (*STRCMP) (const char* s1, const char* s2, size_t n);
232 
233 MG_EXPORT LRESULT GUIAPI DefaultPageProc (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
234 
241 #ifdef __cplusplus
242 }
243 #endif /* __cplusplus */
244 
245 #endif /* _MGUI_CTRL_CTRLHELPER_H */
246 
SBPolicyType
Scroll bar display policies in scrolled window.
Definition: ctrlhelper.h:77
GHANDLE HDC
Handle to device context.
Definition: common.h:363
GHANDLE HWND
Handle to main window or control.
Definition: common.h:358
MG_EXPORT void GUIAPI DisabledTextOutEx(HDC hdc, HWND hwnd, int x, int y, const char *szText)
Outputs disabled (grayed) text.
int(* STRCMP)(const char *s1, const char *s2, size_t n)
Type of general strncmp function.
Definition: ctrlhelper.h:231
LONG_PTR LINT
Signed integer which has pointer precision.
Definition: common.h:528
UINT_PTR LPARAM
A type definition for the second message paramter.
Definition: common.h:642
MG_EXPORT HWND CreateToolTipWin(HWND hParentWnd, int x, int y, int timeout_ms, const char *text,...)
Creates a tool tip window.
UINT_PTR WPARAM
A type definition for the first message paramter.
Definition: common.h:636
DWORD_PTR DWORD
A unsigned long type definition for pointer precision.
Definition: common.h:555
LONG_PTR LRESULT
Signed result of message processing.
Definition: common.h:534
MG_EXPORT void ResetToolTipWin(HWND hwnd, int x, int y, const char *text,...)
Resets a tool tip window.
unsigned int UINT
A type definition for unsigned integer.
Definition: common.h:594
MG_EXPORT void DestroyToolTipWin(HWND hwnd)
Destroies a tool tip window.
MG_EXPORT void GUIAPI NotifyParentEx(HWND hwnd, LINT id, int code, DWORD add_data)
Sends a notification message to the parent.