?? control.h
字號:
#define PBM_SETPOS 0xF0A2#define PBM_DELTAPOS 0xF0A3#define PBM_STEPIT 0xF0A4/* Progress Bar notification code */#define PBN_REACHMAX 1#define PBN_REACHMIN 2#endif /* _CTRL_PROGRESSBAR *//****** List Box Control *****************************************************/#ifdef _CTRL_LISTBOX#define CTRL_LISTBOX ("listbox")/* Listbox styles */#define LBS_NOTIFY 0x0001L#define LBS_SORT 0x0002L#define LBS_MULTIPLESEL 0x0008L#define LBS_CHECKBOX 0x1000L#define LBS_USEICON 0x2000L#define LBS_AUTOCHECK 0x4000L#define LBS_AUTOCHECKBOX 0x5000L#define LBS_OWNERDRAWFIXED 0x0010L // not supported currently#define LBS_OWNERDRAWVARIABLE 0x0020L // not supported currently#define LBS_USETABSTOPS 0x0080L // not supported currently#define LBS_MULTICOLUMN 0x0200L // not supported currently#define LBS_WANTKEYBOARDINPUT 0x0400L // not intend to support#define LBS_NOREDRAW 0x0004L // not intend to support#define LBS_HASSTRINGS 0x0040L // not intend to support#define LBS_NOINTEGRALHEIGHT 0x0100L // not intend to support#define LBS_EXTENDEDSEL 0x0800L // not intend to support// Listbox messages#define LB_ADDSTRING 0xF180#define LB_INSERTSTRING 0xF181#define LB_DELETESTRING 0xF182#define LB_SELITEMRANGEEX 0xF183#define LB_RESETCONTENT 0xF184#define LB_SETSEL 0xF185#define LB_SETCURSEL 0xF186#define LB_GETSEL 0xF187#define LB_GETCURSEL 0xF188#define LB_GETTEXT 0xF189#define LB_GETTEXTLEN 0xF18A#define LB_GETCOUNT 0xF18B#define LB_SELECTSTRING 0xF18C#define LB_DIR 0xF18D#define LB_GETTOPINDEX 0xF18E#define LB_FINDSTRING 0xF18F#define LB_GETSELCOUNT 0xF190#define LB_GETSELITEMS 0xF191#define LB_SETTABSTOPS 0xF192#define LB_GETHORIZONTALEXTENT 0xF193#define LB_SETHORIZONTALEXTENT 0xF194#define LB_SETCOLUMNWIDTH 0xF195#define LB_ADDFILE 0xF196#define LB_SETTOPINDEX 0xF197#define LB_GETITEMRECT 0xF198#define LB_GETITEMDATA 0xF199#define LB_SETITEMDATA 0xF19A#define LB_SELITEMRANGE 0xF19B#define LB_SETANCHORINDEX 0xF19C#define LB_GETANCHORINDEX 0xF19D#define LB_SETCARETINDEX 0xF19E#define LB_GETCARETINDEX 0xF19F#define LB_SETITEMHEIGHT 0xF1A0#define LB_GETITEMHEIGHT 0xF1A1#define LB_FINDSTRINGEXACT 0xF1A2#define LB_SETLOCALE 0xF1A5#define LB_GETLOCALE 0xF1A6#define LB_SETCOUNT 0xF1A7#define LB_INITSTORAGE 0xF1A8#define LB_ITEMFROMPOINT 0xF1A9#define LB_SETTEXT 0xF1AA#define LB_GETCHECKMARK 0xF1AB#define LB_SETCHECKMARK 0xF1AC#define LB_GETITEMADDDATA 0xF1AD#define LB_SETITEMADDDATA 0xF1AE#define LB_MSGMAX 0xF1B0/* 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#define LBN_CLICKCHECKMARK 6/* Listbox return value */#define LB_OKAY 0#define LB_ERR (-1)#define LB_ERRSPACE (-2)#define CMFLAG_BLANK 0#define CMFLAG_CHECKED 1#define CMFLAG_PARTCHECKED 2typedef struct _LISTBOXITEMINFO{ int insPos; // insert position char* string; // item string int cmFlag; // check mark flag HICON hIcon; // handle of icon} LISTBOXITEMINFO;typedef LISTBOXITEMINFO* PLISTBOXITEMINFO;#endif /* _CTRL_LISTBOX *//****** Combo Box Control *****************************************************/#ifdef _CTRL_COMBOBOX#define CTRL_COMBOBOX ("combobox")/* 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 0xF140#define CB_LIMITTEXT 0xF141#define CB_SETEDITSEL 0xF142#define CB_ADDSTRING 0xF143#define CB_DELETESTRING 0xF144#define CB_DIR 0xF145#define CB_GETCOUNT 0xF146#define CB_GETCURSEL 0xF147#define CB_GETLBTEXT 0xF148#define CB_GETLBTEXTLEN 0xF149#define CB_INSERTSTRING 0xF14A#define CB_RESETCONTENT 0xF14B#define CB_FINDSTRING 0xF14C#define CB_SELECTSTRING 0xF14D#define CB_SETCURSEL 0xF14E#define CB_SHOWDROPDOWN 0xF14F#define CB_GETITEMDATA 0xF150#define CB_SETITEMDATA 0xF151#define CB_GETDROPPEDCONTROLRECT 0xF152#define CB_SETITEMHEIGHT 0xF153#define CB_GETITEMHEIGHT 0xF154#define CB_SETEXTENDEDUI 0xF155#define CB_GETEXTENDEDUI 0xF156#define CB_GETDROPPEDSTATE 0xF157#define CB_FINDSTRINGEXACT 0xF158#define CB_SETLOCALE 0xF159#define CB_GETLOCALE 0xF15A#define CB_GETTOPINDEX 0xF15b#define CB_SETTOPINDEX 0xF15c#define CB_GETHORIZONTALEXTENT 0xF15d#define CB_SETHORIZONTALEXTENT 0xF15e#define CB_GETDROPPEDWIDTH 0xF15f#define CB_SETDROPPEDWIDTH 0xF160#define CB_INITSTORAGE 0xF161#define CB_MSGMAX 0xF162/* Combo Box return value */#define CB_OKAY 0#define CB_ERR (-1)#define CB_ERRSPACE (-2)/* 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#endif /* _CTRL_COMBOBOX */ /************************** Tool Bar control **********************************/#ifdef _CTRL_TOOLBAR#define CTRL_TOOLBAR ("toolbar")// Tool bar messages#define TBM_ADDITEM 0xFE00typedef struct _TOOLBARITEMINFO{ int insPos; int id; char NBmpPath[MAX_PATH+10]; char HBmpPath[MAX_PATH+10]; char DBmpPath[MAX_PATH+10]; DWORD dwAddData;} TOOLBARITEMINFO;typedef struct TOOLBARITEMINFO* PTOOLBARITEMINFO;#endif /* _CTRL_TOOLBAR *//************************** Menu Button control ********************************/#ifdef _CTRL_MENUBUTTON#define CTRL_MENUBTN ("menubutton")/* Menu Button Styles */#define MBS_SORT 0x0001// Menu Button messages#define MBM_ADDITEM 0xF200 // send to add item#define MBM_DELITEM 0xF201 // send to delete item#define MBM_RESETCTRL 0xF202 // send to reset control#define MBM_SETITEMDATA 0xF203 // send to set item data#define MBM_GETITEMDATA 0xF204 // send to retrive the data of specific item#define MBM_GETCURITEM 0xF206 // send to retrive the index of current selected item#define MBM_SETCURITEM 0xF207 // send to set the current selected item based on index/* Menu Button Notification Code */#define MBN_CHANGED 1 // send when selected item changed.#define MBN_SELECTED 2 // send when item selected.#define MBN_ERRSPACE 3 // send when memory space error occurred.#define MBN_STARTMENU 4 // send when start tracking popup menu.#define MBN_ENDMENU 5 // send when end tracking popup menu./* Menu Button return value */#define MB_INV_ITEM -1#define MB_ERR_SPACE -2/* struct used by parent to add/retrive item */#define MB_WHICH_TEXT 0x01#define MB_WHICH_BMP 0x02#define MB_WHICH_ATTDATA 0x04typedef struct _MenuButtonItem{ DWORD which; // which fields are valid, ignored when add item. const char* text; // item string PBITMAP bmp; // item bitmap DWORD data; // attached data} MENUBUTTONITEM;typedef MENUBUTTONITEM* PMENUBUTTONITEM;#endif /* _CTRL_MENUBUTTON *//************************** Scroll Bar Control *********************************/#ifdef _CTRL_SCROLLBAR#define CTRL_SCROLLBAR ("scrollbar")// Scroll bar messages#define SBM_SETPOS 0xF0E0#define SBM_GETPOS 0xF0E1#define SBM_SETRANGE 0xF0E2#define SBM_SETRANGEREDRAW 0xF0E6#define SBM_GETRANGE 0xF0E3#define SBM_ENABLE_ARROWS 0xF0E4#define SBM_SETSCROLLINFO 0xF0E9#define SBM_GETSCROLLINFO 0xF0EA#endif#ifdef __cplusplus}#endif /* __cplusplus */#endif // GUI_CONTROL_H
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -