For Ver 2.2 and the later versions:
The frame window will receive a WM_FRAME_BUTTON message when user do the above operaitons. The define of WM_FRAME_BUTTON exists in appface.h .
#define WM_FRAME_BUTTON WM_USER + 0x364
The WPARAM value can be the below:
#define FRAME_BUTTON_MAX 1
#define FRAME_BUTTON_RESTORE 2
#define FRAME_BUTTON_MIN 3
it corresponding : maximize ,restore ,minimize
The LPARAM value is not used
It will do the default operation if the return value of this message is zero ; and return immediately(skip the default operation) if the return value is non-zero . |