MiniGUI API Reference (MiniGUI-Standalone)  v4.0.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 //
3 // IMPORTANT NOTICE
4 //
5 // The following open source license statement does not apply to any
6 // entity in the Exception List published by FMSoft.
7 //
8 // For more information, please visit:
9 //
10 // https://www.fmsoft.cn/exception-list
11 //
13 
55 /*
56  * $Id: ctrlhelper.h 10829 2008-08-26 07:47:17Z weiym $
57  *
58  * MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
59  * pSOS, ThreadX, NuCleus, OSE, and Win32.
60  */
61 
62 #ifndef _MGUI_CTRL_CTRLHELPER_H
63 #define _MGUI_CTRL_CTRLHELPER_H
64 
65 
66 #ifdef __cplusplus
67 extern "C" {
68 #endif /* __cplusplus */
69 
89 typedef enum
90 {
102 } SBPolicyType;
103 
104 #define DF_3DBOX_NORMAL 0x0000
105 #define DF_3DBOX_PRESSED 0x0001
106 #define DF_3DBOX_STATEMASK 0x000F
107 #define DF_3DBOX_NOTFILL 0x0000
108 #define DF_3DBOX_FILL 0x0010
109 
124 MG_EXPORT void GUIAPI DisabledTextOutEx (HDC hdc, HWND hwnd, int x, int y, const char* szText);
125 
149 MG_EXPORT HWND CreateToolTipWin (HWND hParentWnd, int x, int y,
150  int timeout_ms, const char* text, ...);
151 
170 MG_EXPORT void ResetToolTipWin (HWND hwnd, int x, int y,
171  const char* text, ...);
172 
184 MG_EXPORT void DestroyToolTipWin (HWND hwnd);
185 
214 MG_EXPORT void GUIAPI NotifyParentEx (HWND hwnd, LINT id, int code, DWORD add_data);
215 
230 #define NotifyParent(hwnd, id, code) \
231  NotifyParentEx(hwnd, id, code, 0)
232 
243 typedef int (*STRCMP) (const char* s1, const char* s2, size_t n);
244 
245 MG_EXPORT LRESULT GUIAPI DefaultPageProc (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
246 
253 #ifdef __cplusplus
254 }
255 #endif /* __cplusplus */
256 
257 #endif /* _MGUI_CTRL_CTRLHELPER_H */
258 
SBPolicyType
Scroll bar display policies in scrolled window.
Definition: ctrlhelper.h:89
GHANDLE HDC
Handle to device context.
Definition: common.h:407
GHANDLE HWND
Handle to main window or control.
Definition: common.h:402
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:243
LONG_PTR LINT
Signed integer which has pointer precision.
Definition: common.h:572
UINT_PTR LPARAM
A type definition for the second message paramter.
Definition: common.h:707
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:701
DWORD_PTR DWORD
A unsigned long type definition for pointer precision.
Definition: common.h:599
LONG_PTR LRESULT
Signed result of message processing.
Definition: common.h:578
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:659
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.