mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-09-26 12:27:58 +08:00
add MG_IS_MAIN_VIRT_WINDOW
This commit is contained in:
@@ -631,12 +631,18 @@ extern pthread_mutex_t __mg_gdilock, __mg_mouselock;
|
||||
(MG_IS_WINDOW(hWnd) && \
|
||||
((PMAINWIN)hWnd)->WinType == TYPE_VIRTWIN)
|
||||
|
||||
/* Whether hWnd is a main window or virtual window */
|
||||
/* Whether hWnd is a main window or a virtual window */
|
||||
#define MG_IS_MAIN_VIRT_WINDOW(hWnd) \
|
||||
(MG_IS_WINDOW(hWnd) && \
|
||||
(((PMAINWIN)hWnd)->WinType == TYPE_MAINWIN || \
|
||||
(((PMAINWIN)hWnd)->WinType == TYPE_MAINWIN || \
|
||||
((PMAINWIN)hWnd)->WinType == TYPE_VIRTWIN))
|
||||
|
||||
/* Whether hWnd is a main window or a control */
|
||||
#define MG_IS_NOT_VIRT_WINDOW(hWnd) \
|
||||
(MG_IS_WINDOW(hWnd) && \
|
||||
(((PMAINWIN)hWnd)->WinType == TYPE_MAINWIN || \
|
||||
((PMAINWIN)hWnd)->WinType == TYPE_CONTROL))
|
||||
|
||||
#define MG_IS_NORMAL_MAIN_WINDOW(hWnd) \
|
||||
(hWnd != HWND_DESKTOP && MG_IS_MAIN_WINDOW(hWnd))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user