MiniGUI API Reference (MiniGUI-Threads)  v5.0.6
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 
219 MG_EXPORT void GUIAPI NotifyParentEx (HWND hwnd, LINT id, int code,
220  DWORD add_data);
221 
236 #define NotifyParent(hwnd, id, code) \
237  NotifyParentEx(hwnd, id, code, 0)
238 
248 typedef int (*STRCMP) (const char* s1, const char* s2, size_t n);
249 
250 MG_EXPORT LRESULT GUIAPI DefaultPageProc (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
251 
258 #ifdef __cplusplus
259 }
260 #endif /* __cplusplus */
261 
262 #endif /* _MGUI_CTRL_CTRLHELPER_H */
263 
DWORD
DWORD_PTR DWORD
A unsigned long type definition for pointer precision.
Definition: common.h:604
HWND
GHANDLE HWND
Handle to main window or control.
Definition: common.h:407
HDC
GHANDLE HDC
Handle to device context.
Definition: common.h:412
SB_POLICY_ALWAYS
@ SB_POLICY_ALWAYS
Definition: ctrlhelper.h:94
WPARAM
UINT_PTR WPARAM
A type definition for the first message paramter.
Definition: common.h:706
LRESULT
LONG_PTR LRESULT
Signed result of message processing.
Definition: common.h:583
UINT
unsigned int UINT
A type definition for unsigned integer.
Definition: common.h:664
CreateToolTipWin
MG_EXPORT HWND CreateToolTipWin(HWND hParentWnd, int x, int y, int timeout_ms, const char *text,...)
Creates a tool tip window.
LINT
LONG_PTR LINT
Signed integer which has pointer precision.
Definition: common.h:577
STRCMP
int(* STRCMP)(const char *s1, const char *s2, size_t n)
Type of general strncmp function.
Definition: ctrlhelper.h:248
NotifyParentEx
MG_EXPORT void GUIAPI NotifyParentEx(HWND hwnd, LINT id, int code, DWORD add_data)
Send a notification message to the parent.
SBPolicyType
SBPolicyType
Scroll bar display policies in scrolled window.
Definition: ctrlhelper.h:89
SB_POLICY_AUTOMATIC
@ SB_POLICY_AUTOMATIC
Definition: ctrlhelper.h:98
ResetToolTipWin
MG_EXPORT void ResetToolTipWin(HWND hwnd, int x, int y, const char *text,...)
Resets a tool tip window.
DisabledTextOutEx
MG_EXPORT void GUIAPI DisabledTextOutEx(HDC hdc, HWND hwnd, int x, int y, const char *szText)
Outputs disabled (grayed) text.
DestroyToolTipWin
MG_EXPORT void DestroyToolTipWin(HWND hwnd)
Destroy a tool tip window.
SB_POLICY_NEVER
@ SB_POLICY_NEVER
Definition: ctrlhelper.h:101
LPARAM
UINT_PTR LPARAM
A type definition for the second message paramter.
Definition: common.h:712