From 734debce34528cd7d5c14d667cb36e9728a58de0 Mon Sep 17 00:00:00 2001 From: Vincent Wei Date: Sat, 29 Feb 2020 16:02:00 +0800 Subject: [PATCH] add MSG_MOVEWINDOW which will be sent as a notification after calling MoveWindow; add new internal message MSG_DUMPZORDER --- include/window.h | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/include/window.h b/include/window.h index 373560e7..2089322e 100644 --- a/include/window.h +++ b/include/window.h @@ -2035,8 +2035,8 @@ extern DWORD __mg_interval_time; * \def MSG_SHOWWINDOW * \brief Indicates that the window has been shown or hidden. * - * This message is sent to the window when the window has been shown - * or hidden (due to the calling of the function ShowWindow). + * This message is sent to the window as a notification after the window + * has been shown or hidden (due to the calling of the function ShowWindow). * * \code * MSG_SHOWWINDOW @@ -2057,6 +2057,29 @@ extern DWORD __mg_interval_time; */ #define MSG_SHOWWINDOW 0x00A0 +/** + * \def MSG_MOVEWINDOW + * \brief Indicates that the window has been moved. + * + * This message is sent to the window as a notification after the window + * has been moved (due to the calling of the function MoveWindow). + * + * \code + * MSG_MOVEWINDOW + * int lx = LOSWORD(wParam); + * int ty = HISWORD(wParam); + * int rx = LOSWORD(lParam); + * int by = HISWORD(lParam); + * \endcode + * + * \param lx, ty, rx, by The new rectangle coordinates of the window. + * + * \sa MoveWindow + * + * Since 5.0.0 + */ +#define MSG_MOVEWINDOW 0x00A1 + /** * \def MSG_ERASEBKGND * \brief Sent to the window to erase the background. @@ -2432,6 +2455,7 @@ typedef struct _COMPOSITINGINFO { /* Since 5.0.0 */ #define MSG_SETCOMPOSITING 0x0105 +#define MSG_DUMPZORDER 0x0106 #define MSG_SHOWGLOBALCTRL 0x010A #define MSG_HIDEGLOBALCTRL 0x010B