📄 commctrl.h
字号:
#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 */#define CBEM_INSERTITEMA (WM_USER + 1)#define CBEM_SETIMAGELIST (WM_USER + 2)#define CBEM_GETIMAGELIST (WM_USER + 3)#define CBEM_GETITEMA (WM_USER + 4)#define CBEM_SETITEMA (WM_USER + 5)#define CBEM_DELETEITEM CB_DELETESTRING#define CBEM_GETCOMBOCONTROL (WM_USER + 6)#define CBEM_GETEDITCONTROL (WM_USER + 7)#define CBEM_SETEXSTYLE (WM_USER + 8)#define CBEM_GETEXSTYLE (WM_USER + 9)#if (_WIN32_IE >= 0x0400)#define CBEM_SETEXTENDEDSTYLE (WM_USER + 14)#define CBEM_GETEXTENDEDSTYLE (WM_USER + 9)#define CBEM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT#define CBEM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT#endif /* _WIN32_IE >= 0x0400 */#define CBEM_HASEDITCHANGED (WM_USER + 10)#define CBEM_INSERTITEMW (WM_USER + 11)#define CBEM_SETITEMW (WM_USER + 12)#define CBEM_GETITEMW (WM_USER + 13)#define DA_LAST 0x7fffffff#define DPA_APPEND 0x7fffffff#define DPA_ERR -1#define DSA_APPEND 0x7fffffff#define DSA_ERR -1#define DPAS_SORTED 1#define DPAS_INSERTBEFORE 2#define DPAS_INSERTAFTER 4#if (_WIN32_IE >= 0x400)#define WSB_PROP_CYVSCROLL 1#define WSB_PROP_CXHSCROLL 2#define WSB_PROP_CYHSCROLL 4#define WSB_PROP_CXVSCROLL 8#define WSB_PROP_CXHTHUMB 16#define WSB_PROP_CYVTHUMB 32#define WSB_PROP_VBKGCOLOR 64#define WSB_PROP_HBKGCOLOR 128#define WSB_PROP_VSTYLE 256#define WSB_PROP_HSTYLE 512#define WSB_PROP_WINSTYLE 1024#define WSB_PROP_PALETTE 2048#define WSB_PROP_MASK 0xfff#define FSB_FLAT_MODE 2#define FSB_ENCARTA_MODE 1#define FSB_REGULAR_MODE 0#endif /* _WIN32_IE >= 0x400 */#if (_WIN32_WINNT >= 0x0501)#define LIF_ITEMINDEX 0x00000001#define LIF_STATE 0x00000002#define LIF_ITEMID 0x00000004#define LIF_URL 0x00000008#define LIS_FOCUSED 0x00000001#define LIS_ENABLED 0x00000002#define LIS_VISITED 0x00000004#define LM_HITTEST (WM_USER + 768)#define LM_GETIDEALHEIGHT (WM_USER + 769)#define LM_SETITEM (WM_USER + 770)#define LM_GETITEM (WM_USER + 771)#define MAX_LINKID_TEXT 48#define L_MAX_URL_LENGTH 2084#endif#ifndef RC_INVOKEDtypedef struct tagCOMBOBOXEXITEMA{ UINT mask; int iItem; LPSTR pszText; int cchTextMax; int iImage; int iSelectedImage; int iOverlay; int iIndent; LPARAM lParam;} COMBOBOXEXITEMA, *PCOMBOBOXEXITEMA;typedef COMBOBOXEXITEMA CONST *PCCOMBOEXITEMA;typedef struct tagCOMBOBOXEXITEMW{ UINT mask; int iItem; LPWSTR pszText; int cchTextMax; int iImage; int iSelectedImage; int iOverlay; int iIndent; LPARAM lParam;} COMBOBOXEXITEMW, *PCOMBOBOXEXITEMW;typedef COMBOBOXEXITEMW CONST *PCCOMBOEXITEMW;#if (_WIN32_IE >= 0x0400)typedef struct { NMHDR hdr; COMBOBOXEXITEMA ceItem;} NMCOMBOBOXEXA, *PNMCOMBOBOXEXA;typedef struct { NMHDR hdr; COMBOBOXEXITEMW ceItem;} NMCOMBOBOXEXW, *PNMCOMBOBOXEXW;typedef struct { NMHDR hdr; int iItemid; WCHAR szText[CBEMAXSTRLEN];}NMCBEDRAGBEGINW, *LPNMCBEDRAGBEGINW, *PNMCBEDRAGBEGINW;typedef struct { NMHDR hdr; int iItemid; char szText[CBEMAXSTRLEN];}NMCBEDRAGBEGINA, *LPNMCBEDRAGBEGINA, *PNMCBEDRAGBEGINA;typedef struct tagNMIPADDRESS{ NMHDR hdr; int iField; int iValue;} NMIPADDRESS, *LPNMIPADDRESS;typedef struct tagLVKEYDOWN { NMHDR hdr; WORD wVKey; UINT flags;} NMLVKEYDOWN, *LPNMLVKEYDOWN;typedef struct { NMHDR hdr; DWORD dwFlag; int iWidth; int iHeight;} NMPGCALCSIZE, *LPNMPGCALCSIZE;typedef struct { NMHDR hdr; BOOL fwKeys; RECT rcParent; int iDir; int iXpos; int iYpos; int iScroll;} NMPGSCROLL, *LPNMPGSCROLL;typedef struct tagNMSELCHANGE { NMHDR nmhdr; SYSTEMTIME stSelStart; SYSTEMTIME stSelEnd;} NMSELCHANGE, *LPNMSELCHANGE;typedef struct tagNMTBHOTITEM { NMHDR hdr; int idOld; int idNew; DWORD dwFlags;} NMTBHOTITEM, *LPNMTBHOTITEM;typedef struct { NMHDR hdr; DWORD dwMask; int idCommand; DWORD_PTR lParam; int iImage; LPSTR pszText; int cchText;} NMTBDISPINFOA, *LPNMTBDISPINFOA;typedef struct { NMHDR hdr; DWORD dwMask; int idCommand; DWORD_PTR lParam; int iImage; LPWSTR pszText; int cchText;} NMTBDISPINFOW, *LPNMTBDISPINFOW;typedef struct tagNMTBGETINFOTIPA{ NMHDR hdr; LPSTR pszText; int cchTextMax; int iItem; LPARAM lParam;} NMTBGETINFOTIPA, *LPNMTBGETINFOTIPA;typedef struct tagNMTBGETINFOTIPW{ NMHDR hdr; LPWSTR pszText; int cchTextMax; int iItem; LPARAM lParam;} NMTBGETINFOTIPW, *LPNMTBGETINFOTIPW;typedef struct tagNMMOUSE { NMHDR hdr; DWORD_PTR dwItemSpec; DWORD_PTR dwItemData; POINT pt; LPARAM dwHitInfo;} NMMOUSE, *LPNMMOUSE;#endif /*_WIN32_IE >= 0x0400 */#if (_WIN32_IE >= 0x0401)typedef struct tagNMTOOLTIPSCREATED{ NMHDR hdr; HWND hwndToolTips;} NMTOOLTIPSCREATED, *LPNMTOOLTIPSCREATED;#endiftypedef struct tagNMDATETIMECHANGE{ NMHDR nmhdr; DWORD dwFlags; SYSTEMTIME st;} NMDATETIMECHANGE, *LPNMDATETIMECHANGE;typedef struct { NMHDR hdr; BOOL fChanged; int iNewSelection; WCHAR szText[CBEMAXSTRLEN]; int iWhy;} NMCBEENDEDITW, *LPNMCBEENDEDITW, *PNMCBEENDEDITW;typedef struct { NMHDR hdr; BOOL fChanged; int iNewSelection; char szText[CBEMAXSTRLEN]; int iWhy;} NMCBEENDEDITA, *LPNMCBEENDEDITA,*PNMCBEENDEDITA;typedef 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;#if _WIN32_IE >= 0x400typedef struct { UINT cbSize; DWORD dwMask; int idCommand; int iImage; BYTE fsState; BYTE fsStyle; WORD cx; DWORD lParam; LPSTR pszText; int cchText;} TBBUTTONINFOA, *LPTBBUTTONINFOA;typedef struct { UINT cbSize; DWORD dwMask; int idCommand; int iImage; BYTE fsState; BYTE fsStyle; WORD cx; DWORD lParam; LPWSTR pszText; int cchText;} TBBUTTONINFOW, *LPTBBUTTONINFOW;typedef struct { int iButton; DWORD dwFlags;} TBINSERTMARK, *LPTBINSERTMARK;typedef struct tagLVBKIMAGEA { ULONG ulFlags; HBITMAP hbm; LPSTR pszImage; UINT cchImageMax; int xOffsetPercent; int yOffsetPercent;} LVBKIMAGEA, *LPLVBKIMAGEA;typedef struct tagLVBKIMAGEW { ULONG ulFlags; HBITMAP hbm; LPWSTR pszImage; UINT cchImageMax; int xOffsetPercent; int yOffsetPercent;} LVBKIMAGEW, *LPLVBKIMAGEW;#endif /* _WIN32_IE >= 0x400 */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, *LPIMAGEINFO;typedef struct _IMAGELIST *HIMAGELIST;typedef struct _HDITEMA { UINT mask; int cxy; LPSTR pszText; HBITMAP hbm; int cchTextMax; int fmt; LPARAM lParam;#if (_WIN32_IE >= 0x0300) int iImage; int iOrder;#endif#if (_WIN32_IE >= 0x0500) UINT type; LPVOID pvFilter;#endif} HDITEMA, * LPHDITEMA;typedef struct _HDITEMW { UINT mask; int cxy; LPWSTR pszText; HBITMAP hbm; int cchTextMax; int fmt; LPARAM lParam;#if (_WIN32_IE >= 0x0300) int iImage; int iOrder;#endif#if (_WIN32_IE >= 0x0500) UINT type; LPVOID pvFilter;#endif} HDITEMW, * LPHDITEMW;/* for backward compatibility */#define HD_ITEMA HDITEMA#define HD_ITEMW HDITEMW#define HD_ITEM HDITEMtypedef struct _HD_LAYOUT { RECT *prc; WINDOWPOS *pwpos;} HDLAYOUT, *LPHDLAYOUT;#define HD_LAYOUT HDLAYOUT /* backward compatibility */typedef struct _HD_HITTESTINFO { POINT pt; UINT flags; int iItem;} HD_HITTESTINFO, *LPHDHITTESTINFO;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 tagNMHDDISPINFOA { NMHDR hdr; int iItem; UINT mask; LPSTR pszText; int cchTextMax; int iImage; LPARAM lParam;} NMHDDISPINFOA, *LPNMHDDISPINFOA;typedef struct tagNMHDDISPINFOW { NMHDR hdr; int iItem; UINT mask; LPWSTR pszText; int cchTextMax; int iImage; LPARAM lParam;} NMHDDISPINFOW, *LPNMHDDISPINFOW;typedef struct tagNMCUSTOMDRAWINFO { NMHDR hdr; DWORD dwDrawStage; HDC hdc; RECT rc; DWORD dwItemSpec; UINT uItemState; LPARAM lItemlParam;} NMCUSTOMDRAW, *LPNMCUSTOMDRAW;typedef struct tagNMLVCUSTOMDRAW { NMCUSTOMDRAW nmcd; COLORREF clrText; COLORREF clrTextBk;#if _WIN32_IE >= 0x0400 int iSubItem;#endif} NMLVCUSTOMDRAW, *LPNMLVCUSTOMDRAW;#if (_WIN32_IE >= 0x0400)typedef struct tagNMLVGETINFOTIPA{ NMHDR hdr; DWORD dwFlags; LPSTR pszText; int cchTextMax; int iItem; int iSubItem; LPARAM lParam;} NMLVGETINFOTIPA, *LPNMLVGETINFOTIPA;typedef struct tagNMLVGETINFOTIPW{ NMHDR hdr; DWORD dwFlags; LPWSTR pszText; int cchTextMax; int iItem; int iSubItem; LPARAM lParam;} NMLVGETINFOTIPW, *LPNMLVGETINFOTIPW;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -