📄 commctrl.h
字号:
} 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 compatability */#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 compatability */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;#endif /* _WIN32_IE >= 0x0400 */typedef struct tagNMTVCUSTOMDRAW { NMCUSTOMDRAW nmcd; COLORREF clrText; COLORREF clrTextBk;#if _WIN32_IE >= 0x0400 int iLevel;#endif} NMTVCUSTOMDRAW, *LPNMTVCUSTOMDRAW;#if (_WIN32_IE >= 0x400)typedef struct _NMTBCUSTOMDRAW { NMCUSTOMDRAW nmcd; HBRUSH hbrMonoDither; HBRUSH hbrLines; HPEN hpenLines; COLORREF clrText; COLORREF clrMark; COLORREF clrTextHighlight; COLORREF clrBtnFace; COLORREF clrBtnHighlight; COLORREF clrHighlightHotTrack; RECT rcText; int nStringBkMode; int nHLStringBkMode;#if (_WIN32_WINNT >= 0x0501) int iListGap;#endif} NMTBCUSTOMDRAW, * LPNMTBCUSTOMDRAW;typedef struct tagNMITEMACTIVATE { NMHDR hdr; int iItem; int iSubItem; UINT uNewState; UINT uOldState; UINT uChanged; POINT ptAction; LPARAM lParam; UINT uKeyFlags;} NMITEMACTIVATE, *LPNMITEMACTIVATE;#endif /* _WIN32_IE >= 0x0400 */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 tagNMTOOLBARA { NMHDR hdr; int iItem; TBBUTTON tbButton; int cchText; LPSTR pszText;#if (_WIN32_IE >= 0x500) RECT rcButton;#endif} NMTOOLBARA, *LPNMTOOLBARA;#define TBNOTIFYA NMTOOLBARA#define LPTBNOTIFYA LPNMTOOLBARAtypedef struct tagNMTOOLBARW { NMHDR hdr; int iItem; TBBUTTON tbButton; int cchText; LPWSTR pszText;#if (_WIN32_IE >= 0x500) RECT rcButton;#endif} NMTOOLBARW, *LPNMTOOLBARW;#define TBNOTIFYW NMTOOLBARW#define LPTBNOTIFYW LPNMTOOLBARWtypedef struct tagTOOLINFOA { UINT cbSize; UINT uFlags; HWND hwnd; UINT uId; RECT rect; HINSTANCE hinst; LPSTR lpszText;#if (_WIN32_IE >= 0x0300) LPARAM lParam;#endif} TTTOOLINFOA,*LPTTTOOLINFOA,*PTOOLINFOA;#define TOOLINFOA TTTOOLINFOA#define LPTOOLINFOA LPTTTOOLINFOA#define TTTOOLINFOA_V1_SIZE CCSIZEOF_STRUCT(TTTOOLINFOA, lpszText)#define TTTOOLINFOA_V2_SIZE CCSIZEOF_STRUCT(TTTOOLINFOA, lParam)#define
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -