📄 commctrl.h
字号:
#define TCN_SELCHANGING (TCN_FIRST-2)#define NM_OUTOFMEMORY (NM_FIRST-1)#define NM_CLICK (NM_FIRST-2)#define NM_DBLCLK (NM_FIRST-3)#define NM_RETURN (NM_FIRST-4)#define NM_RCLICK (NM_FIRST-5)#define NM_RDBLCLK (NM_FIRST-6)#define NM_SETFOCUS (NM_FIRST-7)#define NM_KILLFOCUS (NM_FIRST-8)#define NM_CUSTOMDRAW (NM_FIRST-12)#define NM_HOVER (NM_FIRST-13)#define NM_NCHITTEST (NM_FIRST-14)#define NM_KEYDOWN (NM_FIRST-15)#define NM_RELEASEDCAPTURE (NM_FIRST-16)#define NM_SETCURSOR (NM_FIRST-17)#define NM_CHAR (NM_FIRST-18)#define SBARS_SIZEGRIP 256#define CCM_SETBKCOLOR 8193#define CCM_SETCOLORSCHEME 8194#define CCM_GETCOLORSCHEME 8195#define CCM_GETDROPTARGET 8196#define CCM_SETUNICODEFORMAT 8197#define CCM_GETUNICODEFORMAT 8198#define ICC_LISTVIEW_CLASSES 1#define ICC_TREEVIEW_CLASSES 2#define ICC_TAB_CLASSES 8#define ICC_UPDOWN_CLASS 16#define ICC_PROGRESS_CLASS 32#define ICC_HOTKEY_CLASS 64#define ICC_ANIMATE_CLASS 128#define ICC_WIN95_CLASSES 255#define ICC_DATE_CLASSES 256#define ICC_USEREX_CLASSES 512#define ICC_COOL_CLASSES 1024#if (_WIN32_IE >= 0x0400)#define ICC_INTERNET_CLASSES 2048#define ICC_PAGESCROLLER_CLASS 4096#define ICC_NATIVEFNTCTL_CLASS 8192#define INFOTIPSIZE#endif#define GDTR_MIN 1#define GDTR_MAX 2#define GMR_VISIBLE 0#define GMR_DAYSTATE 1#define GDT_ERROR -1#define GDT_VALID 0#define GDT_NONE 1#define DTS_UPDOWN 1#define DTS_SHOWNONE 2#define DTS_SHORTDATEFORMAT 0#define DTS_LONGDATEFORMAT 4#define DTS_TIMEFORMAT 9#define DTS_APPCANPARSE 16#define DTS_RIGHTALIGN 32#define MCS_DAYSTATE 1#define MCS_MULTISELECT 2#define MCS_WEEKNUMBERS 4#define MCS_NOTODAY 8#define DTM_GETSYSTEMTIME 0x1001#define DTM_SETSYSTEMTIME 0x1002#define DTM_GETRANGE 0x1003#define DTM_SETRANGE 0x1004#define DTM_SETFORMATA 0x1005#define DTM_SETFORMATW 0x1050#define DTM_SETMCCOLOR 0x1006#define DTM_GETMCCOLOR 0x1007#define DTM_GETMONTHCAL 0x1008#define DTM_SETMCFONT 0x1009#define DTM_GETMCFONT 0x100a#define DTN_USERSTRINGA (-758)#define DTN_USERSTRINGW (-745)#define DTN_WMKEYDOWNA (-757)#define DTN_WMKEYDOWNW (-744)#define DTN_FORMATA (-756) #define DTN_FORMATW (-743)#define DTN_FORMATQUERYA (-755) #define DTN_FORMATQUERYW (-742)#define DTN_DROPDOWN (-754) #define DTN_CLOSEUP (-753) #define DTN_DATETIMECHANGE (-759) #define MCM_GETCURSEL 0x1001#define MCM_SETCURSEL 0x1002#define MCM_GETMAXSELCOUNT 0x1003#define MCM_SETMAXSELCOUNT 0x1004#define MCM_GETSELRANGE 0x1005#define MCM_SETSELRANGE 0x1006#define MCM_GETMONTHRANGE 0x1007#define MCM_SETDAYSTATE 0x1008#define MCM_GETMINREQRECT 0x1009#define MCM_SETCOLOR 0x100a#define MCM_GETCOLOR 0x100b#define MCM_SETTODAY 0x100c#define MCM_GETTODAY 0x100d#define MCM_HITTEST 0x100e#define MCM_SETFIRSTDAYOFWEEK 0x100f#define MCM_GETFIRSTDAYOFWEEK 0x1010#define MCM_GETRANGE 0x1011#define MCM_SETRANGE 0x1012#define MCM_GETMONTHDELTA 0x1013#define MCM_SETMONTHDELTA 0x1014#define MCN_SELCHANGE (-749)#define MCN_GETDAYSTATE (-747)#define MCN_SELECT (-746)#define ODT_HEADER 100#define ODT_TAB 101#define ODT_LISTVIEW#define SB_SETBKCOLOR 0x2001#if (_WIN32_IE >= 0x0300)#define SB_ISSIMPLE 1038#endif#define RBS_TOOLTIPS 256#define RBS_VARHEIGHT 512#define RBS_BANDBORDERS 1024#define RBS_FIXEDORDER 2048#define RBIM_IMAGELIST 1#define RB_SETCOLORSCHEME CCM_SETCOLORSCHEME#define RB_GETCOLORSCHEME CCM_GETCOLORSCHEME#define RBBS_BREAK 1#define RBBS_FIXEDSIZE 2#define RBBS_CHILDEDGE 4#define RBBS_HIDDEN 8#define RBBS_NOVERT 16#define RBBS_FIXEDBMP 32#define RBBIM_STYLE 1#define RBBIM_COLORS 2#define RBBIM_TEXT 4#define RBBIM_IMAGE 8#define RBBIM_CHILD 16#define RBBIM_CHILDSIZE 32#define RBBIM_SIZE 64#define RBBIM_BACKGROUND 128#define RBBIM_ID 256#define RB_INSERTBANDA (WM_USER+1)#define RB_INSERTBANDW (WM_USER+10)#define RB_DELETEBAND (WM_USER+2)#define RB_GETBARINFO (WM_USER+3)#define RB_SETBARINFO (WM_USER+4)#define RB_GETBANDCOUNT (WM_USER+12)#define RB_GETROWCOUNT (WM_USER+13)#define RB_GETROWHEIGHT (WM_USER+14)#define RB_SETBANDINFOA (WM_USER+6)#define RB_SETBANDINFOW (WM_USER+11)#define RB_SETPARENT (WM_USER+7)#define RBN_HEIGHTCHANGE RBN_FIRST#if (_WIN32_IE >= 0x0300)#define LVN_ODCACHEHINT (LVN_FIRST-13)#define LVN_ODFINDITEMA (LVN_FIRST-52)#define LVN_ODFINDITEMW (LVN_FIRST-79)#define LVN_ITEMACTIVATE (LVN_FIRST-14)#define LVN_ODSTATECHANGED (LVN_FIRST-15)#ifdef UNICODE#define LVN_ODFINDITEM LVN_ODFINDITEMW#else#define LVN_ODFINDITEM LVN_ODFINDITEMA#endif#endif#if (_WIN32_IE >= 0x0400)#define UDM_SETRANGE32 1135#define UDM_GETRANGE32 1136#define SB_SETICON 1039#define SB_SETTIPTEXTA 1040#define SB_SETTIPTEXTW 1041#define SB_GETTIPTEXTA 1042#define SB_GETTIPTEXTW 1043#define SB_GETICON 1044#define SB_SETUNICODEFORMAT 0x2005#define SB_GETUNICODEFORMAT 0x2006#define RBS_REGISTERDROP 4096#define RBS_AUTOSIZE 8192#define RBS_VERTICALGRIPPER 16384#define RBS_DBLCLKTOGGLE 32768#define RBBS_VARIABLEHEIGHT 64#define RBBS_GRIPPERALWAYS 128#define RBBS_NOGRIPPER 256#define RBBIM_IDEALSIZE 512#define RBBIM_LPARAM 1024#define RBBIM_HEADERSIZE 2048#define RB_HITTEST (WM_USER+8)#define RB_GETRECT (WM_USER+9)#define RB_IDTOINDEX (WM_USER+16)#define RB_GETTOOLTIPS (WM_USER+17)#define RB_SETTOOLTIPS (WM_USER+18)#define RB_SETBKCOLOR (WM_USER+19)#define RB_GETBKCOLOR (WM_USER+20)#define RB_SETTEXTCOLOR (WM_USER+21)#define RB_GETTEXTCOLOR (WM_USER+22)#define RB_SIZETORECT (WM_USER+23)#define RB_BEGINDRAG (WM_USER+24)#define RB_ENDDRAG (WM_USER+25)#define RB_DRAGMOVE (WM_USER+26)#define RB_GETBARHEIGHT (WM_USER+27)#define RB_GETBANDINFOW (WM_USER+28)#define RB_GETBANDINFOA (WM_USER+29)#define RB_MINIMIZEBAND (WM_USER+30)#define RB_MAXIMIZEBAND (WM_USER+31)#define RB_GETDROPTARGET CCM_GETDROPTARGET#define RB_GETBANDBORDERS (WM_USER+34)#define RB_SHOWBAND (WM_USER+35)#define RB_SETPALETTE (WM_USER+37)#define RB_GETPALETTE (WM_USER+38)#define RB_MOVEBAND (WM_USER+39)#define RB_SETUNICODEFORMAT CCM_SETUNICODEFORMAT#define RB_GETUNICODEFORMAT CCM_GETUNICODEFORMAT#define RBN_GETOBJECT (RBN_FIRST-1)#define RBN_LAYOUTCHANGED (RBN_FIRST-2)#define RBN_AUTOSIZE (RBN_FIRST-3)#define RBN_BEGINDRAG (RBN_FIRST-4)#define RBN_ENDDRAG (RBN_FIRST-5)#define RBN_DELETINGBAND (RBN_FIRST-6)#define RBN_DELETEDBAND (RBN_FIRST-7)#define RBN_CHILDSIZE (RBN_FIRST-8)#define RBNM_ID 1#define RBNM_STYLE 2#define RBNM_LPARAM 4#define RBHT_NOWHERE 1#define RBHT_CAPTION 2#define RBHT_CLIENT 3#define RBHT_GRABBER 4#ifdef UNICODE#define SB_SETTIPTEXT SB_SETTIPTEXTW#define SB_GETTIPTEXT SB_GETTIPTEXTW#define RB_GETBANDINFO RB_GETBANDINFOW#else#define SB_SETTIPTEXT SB_SETTIPTEXTA#define SB_GETTIPTEXT SB_GETTIPTEXTA#define RB_GETBANDINFO RB_GETBANDINFOA#endif#else#define RB_GETBANDINFO (WM_USER+5)#endif /* _WIN32_IE >= 0x0400 */#ifndef RC_INVOKEDtypedef struct _COLORMAP { COLORREF from; COLORREF to;} COLORMAP,*LPCOLORMAP;typedef struct { UINT uNotification; HWND hWnd; POINT ptCursor;} DRAGLISTINFO,*LPDRAGLISTINFO;typedef struct _TBBUTTON { int iBitmap; int idCommand; BYTE fsState; BYTE fsStyle; BYTE bReserved[2]; DWORD dwData; int iString;} TBBUTTON,*PTBBUTTON,*LPTBBUTTON;typedef const TBBUTTON *LPCTBBUTTON;typedef struct { NMHDR hdr; int iItem; TBBUTTON tbButton; int cchText; LPTSTR pszText;} TBNOTIFY,*LPTBNOTIFY;typedef struct { HKEY hkr; LPCTSTR pszSubKey; LPCTSTR pszValueName;} TBSAVEPARAMS;typedef struct _IMAGEINFO { HBITMAP hbmImage; HBITMAP hbmMask; int Unused1; int Unused2; RECT rcImage;} IMAGEINFO;DECLARE_HANDLE(HIMAGELIST);typedef struct _HD_ITEMA { UINT mask; int cxy; LPSTR pszText; HBITMAP hbm; int cchTextMax; int fmt; LPARAM lParam;} HD_ITEMA;typedef struct _HD_ITEMW { UINT mask; int cxy; LPWSTR pszText; HBITMAP hbm; int cchTextMax; int fmt; LPARAM lParam;} HD_ITEMW;typedef struct _HD_LAYOUT { RECT *prc; WINDOWPOS *pwpos;} HD_LAYOUT;typedef struct _HD_HITTESTINFO { POINT pt; UINT flags; int iItem;} HD_HITTESTINFO;typedef struct _HD_NOTIFYA { NMHDR hdr; int iItem; int iButton; HD_ITEMA *pitem;} HD_NOTIFYA;typedef struct _HD_NOTIFYW { NMHDR hdr; int iItem; int iButton; HD_ITEMW *pitem;} HD_NOTIFYW;/* FIXME: NMHEADER structure (base for all events of the comctl controls) is the same as HD_NOTIFY depending on the value of _WIN32_IE macro. I'm defining both for now. */typedef struct _NMHEADERA { NMHDR hdr; int iItem; int iButton; HD_ITEMA* pitem;} NMHEADERA, *LPNMHEADERA;typedef struct _NMHEADERW { NMHDR hdr; int iItem; int iButton; HD_ITEMW* pitem;} NMHEADERW, *LPNMHEADERW;#ifdef UNICODE#define NMHEADER NMHEADERW#define LPNMHEADER LPNMHEADERW#else#define NMHEADER NMHEADERA#define LPNMHEADER LPNMHEADERA#endif/* End FIXME. */typedef struct tagTBADDBITMAP { HINSTANCE hInst; UINT nID;} TBADDBITMAP,*LPTBADDBITMAP;typedef struct tagTBSAVEPARAMSA { HKEY hkr; LPCSTR pszSubKey; LPCSTR pszValueName;} TBSAVEPARAMSA;typedef struct tagTBSAVEPARAMSW { HKEY hkr; LPCWSTR pszSubKey; LPCWSTR pszValueName;} TBSAVEPARAMSW;typedef struct { HINSTANCE hInstOld; UINT nIDOld; HINSTANCE hInstNew; UINT nIDNew; int nButtons;} TBREPLACEBITMAP,*LPTBREPLACEBITMAP;typedef struct tagTBNOTIFYA { NMHDR hdr; int iItem; TBBUTTON tbButton; int cchText; LPSTR pszText;} TBNOTIFYA,*LPTBNOTIFYA;typedef struct tagTBNOTIFYW { NMHDR hdr; int iItem; TBBUTTON tbButton; int cchText; LPWSTR pszText;} TBNOTIFYW,*LPTBNOTIFYW;typedef struct tagTOOLINFOA { UINT cbSize; UINT uFlags; HWND hwnd; UINT uId; RECT rect; HINSTANCE hinst; LPSTR lpszText;} TOOLINFOA,*PTOOLINFOA,*LPTOOLINFOA;typedef struct tagTOOLINFOW { UINT cbSize; UINT uFlags; HWND hwnd; UINT uId; RECT rect; HINSTANCE hinst; LPWSTR lpszText;} TOOLINFOW,*PTOOLINFOW,*LPTOOLINFOW;typedef struct _TT_HITTESTINFOA { HWND hwnd; POINT pt; TOOLINFOA ti;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -