📄 winuser.h
字号:
UINT fMask; UINT fType; UINT fState; UINT wID; HMENU hSubMenu; HBITMAP hbmpChecked; HBITMAP hbmpUnchecked; DWORD dwItemData; LPSTR dwTypeData; UINT cch; HBITMAP hbmpItem;} MENUITEMINFOA, *LPMENUITEMINFOA;typedef struct { UINT cbSize; UINT fMask; UINT fType; UINT fState; UINT wID; HMENU hSubMenu; HBITMAP hbmpChecked; HBITMAP hbmpUnchecked; DWORD dwItemData; LPWSTR dwTypeData; UINT cch; HBITMAP hbmpItem;} MENUITEMINFOW, *LPMENUITEMINFOW;DECL_WINELIB_TYPE_AW(MENUITEMINFO)DECL_WINELIB_TYPE_AW(LPMENUITEMINFO)typedef struct { DWORD cbSize; DWORD fMask; DWORD dwStyle; UINT cyMax; HBRUSH hbrBack; DWORD dwContextHelpID; DWORD dwMenuData;} MENUINFO, *LPMENUINFO;typedef MENUINFO const * LPCMENUINFO;#define MIM_MAXHEIGHT 0x00000001#define MIM_BACKGROUND 0x00000002#define MIM_HELPID 0x00000004#define MIM_MENUDATA 0x00000008#define MIM_STYLE 0x00000010#define MIM_APPLYTOSUBMENUS 0x80000000typedef struct { WORD versionNumber; WORD offset;} MENUITEMTEMPLATEHEADER, *PMENUITEMTEMPLATEHEADER;typedef struct { WORD mtOption; WORD mtID; WCHAR mtString[1];} MENUITEMTEMPLATE, *PMENUITEMTEMPLATE;typedef VOID MENUTEMPLATE;typedef PVOID *LPMENUTEMPLATE;/* Field specifiers for MENUITEMINFO[AW] type. */#define MIIM_STATE 0x00000001#define MIIM_ID 0x00000002#define MIIM_SUBMENU 0x00000004#define MIIM_CHECKMARKS 0x00000008#define MIIM_TYPE 0x00000010#define MIIM_DATA 0x00000020#define MIIM_STRING 0x00000040#define MIIM_BITMAP 0x00000080#define MIIM_FTYPE 0x00000100#define HBMMENU_CALLBACK ((HBITMAP) -1)#define HBMMENU_SYSTEM ((HBITMAP) 1)#define HBMMENU_MBAR_RESTORE ((HBITMAP) 2)#define HBMMENU_MBAR_MINIMIZE ((HBITMAP) 3)#define HBMMENU_MBAR_CLOSE ((HBITMAP) 5)#define HBMMENU_MBAR_CLOSE_D ((HBITMAP) 6)#define HBMMENU_MBAR_MINIMIZE_D ((HBITMAP) 7)#define HBMMENU_POPUP_CLOSE ((HBITMAP) 8)#define HBMMENU_POPUP_RESTORE ((HBITMAP) 9)#define HBMMENU_POPUP_MAXIMIZE ((HBITMAP) 10)#define HBMMENU_POPUP_MINIMIZE ((HBITMAP) 11)/* DrawState defines ... */typedef WIN_BOOL CALLBACK (*DRAWSTATEPROC)(HDC,LPARAM,WPARAM,INT,INT);/* WM_H/VSCROLL commands */#define SB_LINEUP 0#define SB_LINELEFT 0#define SB_LINEDOWN 1#define SB_LINERIGHT 1#define SB_PAGEUP 2#define SB_PAGELEFT 2#define SB_PAGEDOWN 3#define SB_PAGERIGHT 3#define SB_THUMBPOSITION 4#define SB_THUMBTRACK 5#define SB_TOP 6#define SB_LEFT 6#define SB_BOTTOM 7#define SB_RIGHT 7#define SB_ENDSCROLL 8/* Scroll bar selection constants */#define SB_HORZ 0#define SB_VERT 1#define SB_CTL 2#define SB_BOTH 3/* Scrollbar styles */#define SBS_HORZ 0x0000L#define SBS_VERT 0x0001L#define SBS_TOPALIGN 0x0002L#define SBS_LEFTALIGN 0x0002L#define SBS_BOTTOMALIGN 0x0004L#define SBS_RIGHTALIGN 0x0004L#define SBS_SIZEBOXTOPLEFTALIGN 0x0002L#define SBS_SIZEBOXBOTTOMRIGHTALIGN 0x0004L#define SBS_SIZEBOX 0x0008L#define SBS_SIZEGRIP 0x0010L/* EnableScrollBar() flags */#define ESB_ENABLE_BOTH 0x0000#define ESB_DISABLE_BOTH 0x0003#define ESB_DISABLE_LEFT 0x0001#define ESB_DISABLE_RIGHT 0x0002#define ESB_DISABLE_UP 0x0001#define ESB_DISABLE_DOWN 0x0002#define ESB_DISABLE_LTUP ESB_DISABLE_LEFT#define ESB_DISABLE_RTDN ESB_DISABLE_RIGHT/* Win32 button control messages */#define BM_GETCHECK 0x00f0#define BM_SETCHECK 0x00f1#define BM_GETSTATE 0x00f2#define BM_SETSTATE 0x00f3#define BM_SETSTYLE 0x00f4#define BM_CLICK 0x00f5#define BM_GETIMAGE 0x00f6#define BM_SETIMAGE 0x00f7/* Winelib button control messages *//* Button notification codes */#define BN_CLICKED 0#define BN_PAINT 1#define BN_HILITE 2#define BN_UNHILITE 3#define BN_DISABLE 4#define BN_DOUBLECLICKED 5/* Button states */#define BST_UNCHECKED 0x0000#define BST_CHECKED 0x0001#define BST_INDETERMINATE 0x0002#define BST_PUSHED 0x0004#define BST_FOCUS 0x0008 /* Static Control Styles */#define SS_LEFT 0x00000000L#define SS_CENTER 0x00000001L#define SS_RIGHT 0x00000002L#define SS_ICON 0x00000003L#define SS_BLACKRECT 0x00000004L#define SS_GRAYRECT 0x00000005L#define SS_WHITERECT 0x00000006L#define SS_BLACKFRAME 0x00000007L#define SS_GRAYFRAME 0x00000008L#define SS_WHITEFRAME 0x00000009L#define SS_SIMPLE 0x0000000BL#define SS_LEFTNOWORDWRAP 0x0000000CL#define SS_OWNERDRAW 0x0000000DL#define SS_BITMAP 0x0000000EL#define SS_ENHMETAFILE 0x0000000FL#define SS_ETCHEDHORZ 0x00000010L#define SS_ETCHEDVERT 0x00000011L#define SS_ETCHEDFRAME 0x00000012L#define SS_TYPEMASK 0x0000001FL#define SS_NOPREFIX 0x00000080L#define SS_NOTIFY 0x00000100L#define SS_CENTERIMAGE 0x00000200L#define SS_RIGHTJUST 0x00000400L#define SS_REALSIZEIMAGE 0x00000800L#define SS_SUNKEN 0x00001000L/* Static Control Messages */#define STM_SETICON 0x0170#define STM_GETICON 0x0171#define STM_SETIMAGE 0x0172#define STM_GETIMAGE 0x0173/* Scrollbar messages */#define SBM_SETPOS 0x00e0#define SBM_GETPOS 0x00e1#define SBM_SETRANGE 0x00e2#define SBM_GETRANGE 0x00e3#define SBM_ENABLE_ARROWS 0x00e4#define SBM_SETRANGEREDRAW 0x00e6#define SBM_SETSCROLLINFO 0x00e9#define SBM_GETSCROLLINFO 0x00ea/* Scrollbar info */typedef struct{ UINT cbSize; UINT fMask; INT nMin; INT nMax; UINT nPage; INT nPos; INT nTrackPos;} SCROLLINFO, *LPSCROLLINFO; /* GetScrollInfo() flags */ #define SIF_RANGE 0x0001#define SIF_PAGE 0x0002#define SIF_POS 0x0004#define SIF_DISABLENOSCROLL 0x0008#define SIF_TRACKPOS 0x0010#define SIF_ALL (SIF_RANGE | SIF_PAGE | SIF_POS | SIF_TRACKPOS)/* Listbox styles */#define LBS_NOTIFY 0x0001#define LBS_SORT 0x0002#define LBS_NOREDRAW 0x0004#define LBS_MULTIPLESEL 0x0008#define LBS_OWNERDRAWFIXED 0x0010#define LBS_OWNERDRAWVARIABLE 0x0020#define LBS_HASSTRINGS 0x0040#define LBS_USETABSTOPS 0x0080#define LBS_NOINTEGRALHEIGHT 0x0100#define LBS_MULTICOLUMN 0x0200#define LBS_WANTKEYBOARDINPUT 0x0400#define LBS_EXTENDEDSEL 0x0800#define LBS_DISABLENOSCROLL 0x1000#define LBS_NODATA 0x2000#define LBS_NOSEL 0x4000#define LBS_STANDARD (LBS_NOTIFY | LBS_SORT | WS_VSCROLL | WS_BORDER)/* Listbox messages */#define LB_ADDSTRING 0x0180#define LB_INSERTSTRING 0x0181#define LB_DELETESTRING 0x0182#define LB_SELITEMRANGEEX 0x0183#define LB_RESETCONTENT 0x0184#define LB_SETSEL 0x0185#define LB_SETCURSEL 0x0186#define LB_GETSEL 0x0187#define LB_GETCURSEL 0x0188#define LB_GETTEXT 0x0189#define LB_GETTEXTLEN 0x018a#define LB_GETCOUNT 0x018b#define LB_SELECTSTRING 0x018c#define LB_DIR 0x018d#define LB_GETTOPINDEX 0x018e#define LB_FINDSTRING 0x018f#define LB_GETSELCOUNT 0x0190#define LB_GETSELITEMS 0x0191#define LB_SETTABSTOPS 0x0192#define LB_GETHORIZONTALEXTENT 0x0193#define LB_SETHORIZONTALEXTENT 0x0194#define LB_SETCOLUMNWIDTH 0x0195#define LB_ADDFILE 0x0196#define LB_SETTOPINDEX 0x0197#define LB_GETITEMRECT 0x0198#define LB_GETITEMDATA 0x0199#define LB_SETITEMDATA 0x019a#define LB_SELITEMRANGE 0x019b#define LB_SETANCHORINDEX 0x019c#define LB_GETANCHORINDEX 0x019d#define LB_SETCARETINDEX 0x019e#define LB_GETCARETINDEX 0x019f#define LB_SETITEMHEIGHT 0x01a0#define LB_GETITEMHEIGHT 0x01a1#define LB_FINDSTRINGEXACT 0x01a2#define LB_CARETON 0x01a3#define LB_CARETOFF 0x01a4#define LB_SETLOCALE 0x01a5#define LB_GETLOCALE 0x01a6#define LB_SETCOUNT 0x01a7#define LB_INITSTORAGE 0x01a8#define LB_ITEMFROMPOINT 0x01a9/* Listbox notification codes */#define LBN_ERRSPACE (-2)#define LBN_SELCHANGE 1#define LBN_DBLCLK 2#define LBN_SELCANCEL 3#define LBN_SETFOCUS 4#define LBN_KILLFOCUS 5/* Listbox message return values */#define LB_OKAY 0#define LB_ERR (-1)#define LB_ERRSPACE (-2)#define LB_CTLCODE 0L/* Combo box styles */#define CBS_SIMPLE 0x0001L#define CBS_DROPDOWN 0x0002L#define CBS_DROPDOWNLIST 0x0003L#define CBS_OWNERDRAWFIXED 0x0010L#define CBS_OWNERDRAWVARIABLE 0x0020L#define CBS_AUTOHSCROLL 0x0040L#define CBS_OEMCONVERT 0x0080L#define CBS_SORT 0x0100L#define CBS_HASSTRINGS 0x0200L#define CBS_NOINTEGRALHEIGHT 0x0400L#define CBS_DISABLENOSCROLL 0x0800L#define CBS_UPPERCASE 0x2000L#define CBS_LOWERCASE 0x4000L/* Combo box messages */#define CB_GETEDITSEL 0x0140#define CB_LIMITTEXT 0x0141#define CB_SETEDITSEL 0x0142#define CB_ADDSTRING 0x0143#define CB_DELETESTRING 0x0144#define CB_DIR 0x0145#define CB_GETCOUNT 0x0146#define CB_GETCURSEL 0x0147#define CB_GETLBTEXT 0x0148#define CB_GETLBTEXTLEN 0x0149#define CB_INSERTSTRING 0x014a#define CB_RESETCONTENT 0x014b#define CB_FINDSTRING 0x014c#define CB_SELECTSTRING 0x014d#define CB_SETCURSEL 0x014e#define CB_SHOWDROPDOWN 0x014f#define CB_GETITEMDATA 0x0150#define CB_SETITEMDATA 0x0151#define CB_GETDROPPEDCONTROLRECT 0x0152#define CB_SETITEMHEIGHT 0x0153#define CB_GETITEMHEIGHT 0x0154#define CB_SETEXTENDEDUI 0x0155#define CB_GETEXTENDEDUI 0x0156#define CB_GETDROPPEDSTATE 0x0157#define CB_FINDSTRINGEXACT 0x0158#define CB_SETLOCALE 0x0159#define CB_GETLOCALE 0x015a#define CB_GETTOPINDEX 0x015b#define CB_SETTOPINDEX 0x015c#define CB_GETHORIZONTALEXTENT 0x015d#define CB_SETHORIZONTALEXTENT 0x015e#define CB_GETDROPPEDWIDTH 0x015f#define CB_SETDROPPEDWIDTH 0x0160#define CB_INITSTORAGE 0x0161/* Combo box notification codes */#define CBN_ERRSPACE (-1)#define CBN_SELCHANGE 1#define CBN_DBLCLK 2#define CBN_SETFOCUS 3#define CBN_KILLFOCUS 4#define CBN_EDITCHANGE 5#define CBN_EDITUPDATE 6#define CBN_DROPDOWN 7#define CBN_CLOSEUP 8#define CBN_SELENDOK 9#define CBN_SELENDCANCEL 10/* Combo box message return values */#define CB_OKAY 0#define CB_ERR (-1)#define CB_ERRSPACE (-2)#define MB_OK 0x00000000#define MB_OKCANCEL 0x00000001#define MB_ABORTRETRYIGNORE 0x00000002#define MB_YESNOCANCEL 0x00000003#define MB_YESNO 0x00000004#define MB_RETRYCANCEL 0x00000005#define MB_TYPEMASK 0x0000000F#define MB_ICONHAND 0x00000010#define MB_ICONQUESTION 0x00000020#define MB_ICONEXCLAMATION 0x00000030#define MB_ICONASTERISK 0x00000040#define MB_USERICON 0x00000080#define MB_ICONMASK 0x000000F0#define MB_ICONINFORMATION MB_ICONASTERISK#define MB_ICONSTOP MB_ICONHAND#define MB_ICONWARNING MB_ICONEXCLAMATION#define MB_ICONERROR MB_ICONHAND#define MB_DEFBUTTON1 0x00000000#define MB_DEFBUTTON2 0x00000100#define MB_DEFBUTTON3 0x00000200#define MB_DEFBUTTON4 0x00000300#define MB_DEFMASK 0x00000F00#define MB_APPLMODAL 0x00000000#define MB_SYSTEMMODAL 0x00001000#define MB_TASKMODAL 0x00002000#define MB_MODEMASK 0x00003000#define MB_HELP 0x00004000#define MB_NOFOCUS 0x00008000#define MB_MISCMASK 0x0000C000#define MB_SETFOREGROUND 0x00010000#define MB_DEFAULT_DESKTOP_ONLY 0x00020000#define MB_SERVICE_NOTIFICATION 0x00040000#define MB_TOPMOST 0x00040000#define MB_RIGHT 0x00080000#define MB_RTLREADING 0x00100000#define HELPINFO_WINDOW 0x0001#define HELPINFO_MENUITEM 0x0002/* Structure pointed to by lParam of WM_HELP */typedef struct { UINT cbSize; /* Size in bytes of this struct */ INT iContextType; /* Either HELPINFO_WINDOW or HELPINFO_MENUITEM */ INT iCtrlId; /* Control Id or a Menu item Id. */ HANDLE hItemHandle; /* hWnd of control or hMenu. */ DWORD dwContextId; /* Context Id associated with this item */ POINT MousePos; /* Mouse Position in screen co-ordinates */} HELPINFO,*LPHELPINFO;typedef void CALLBACK (*MSGBOXCALLBACK)(LPHELPINFO lpHelpInfo);typedef struct{ UINT cbSize; HWND hwndOwner; HINSTANCE hInstance; LPCSTR lpszText; LPCSTR lpszCaption; DWORD dwStyle; LPCSTR lpszIcon; DWORD dwContextHelpId; MSGBOXCALLBACK lpfnMsgBoxCallback; DWORD dwLanguageId;} MSGBOXPARAMSA,*LPMSGBOXPARAMSA;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -