//以下内容摘自 WinUser.h,仅为个人使用方便整理摘录至此。by:AsionTang
介绍:下面的是在窗体消息(Window Messages)中,比较常用的SYSTEMCOMMAND消息的,wParam值定义。
定义了如常见的窗体Close,MAXIMIZE,MINIMIZE,MOVE,SIZE等消息。//条件编译:if no define NO…,没定义则执行。
#ifndef NOSYSCOMMANDS/*
* System Menu Command Values */#define SC_SIZE 0xF000#define SC_MOVE 0xF010#define SC_MINIMIZE 0xF020#define SC_MAXIMIZE 0xF030#define SC_NEXTWINDOW 0xF040#define SC_PREVWINDOW 0xF050#define SC_CLOSE 0xF060#define SC_VSCROLL 0xF070#define SC_HSCROLL 0xF080#define SC_MOUSEMENU 0xF090#define SC_KEYMENU 0xF100#define SC_ARRANGE 0xF110#define SC_RESTORE 0xF120#define SC_TASKLIST 0xF130#define SC_SCREENSAVE 0xF140#define SC_HOTKEY 0xF150#if(WINVER >= 0x0400)#define SC_DEFAULT 0xF160#define SC_MONITORPOWER 0xF170#define SC_CONTEXTHELP 0xF180#define SC_SEPARATOR 0xF00F#endif /* WINVER >= 0x0400 */#if(WINVER >= 0x0600)
#define SCF_ISSECURE 0x00000001#endif /* WINVER >= 0x0600 */#define GET_SC_WPARAM(wParam) ((int)wParam & 0xFFF0)
/*
* Obsolete names */#define SC_ICON SC_MINIMIZE#define SC_ZOOM SC_MAXIMIZE#endif /* !NOSYSCOMMANDS */