📄 compstui.h
字号:
// If this bit is set then this EXTPUSH's icon will be
// overlaied by a common UI's IDI_CPSUI_STOP icon.
//
//
// EPF_OVERLAY_NO_ICON
//
// If this bit is set then this EXTPUSH's icon will be
// overlaied by a common UI's IDI_CPSUI_NO icon.
//
//
// pTitle - Pointed to extended push botton title
//
// ** See LPTSTR description above
//
// DlgProc - Pointer to the DLGPROC function supplied by the caller.
// When user push the button the common UI will call
// DialogBoxParam() with this fucction pointer and passed
// CPSUICBPARAM structure pointer to the WM_INITDIALOG with
// the Reason set to CPSUICB_REASON_EXTPUSH. If this
// filed is NULL then common UI assumed that EXTPUSH is
// disabled (OPTIF_EXT_DISABLED | OPTIF_EXT_HIDE), this
// fields only used if EPF_PUSH_TYPE_DLGPROC flag is set
//
// pfnCallBack - Pointer to CPSUICALLBACK function, this only used if
// EPF_PUSH_TYPE_DLGPROC bit is clear, duringing callback
// it passed the CPSUICBPARAM pointer as parameter
//
// IconID - This is the icon identifier, which can be a common
// strandard IDI_CPSUI_xxx icon ID, caller's own icon
// resource ID, or a handle to the caller defined icon if
// EPF_ICONID_AS_HICON flag is set, in any case if the
// IconID is zero then it indicated no icon.
//
// DlgTemplateID - Specified the ressource ID for the dilaog box. If the
// DlgTemplateID = 0 then common UI will call the DlgProc
// with following parameter.
//
// DlgProc(hDlg, WM_USER, NULL, (LPARAM)pCPSUICBPaam);
//
// hDlgTemplate - Handle to the DLGTEMPLATE which will be use for pop up
// dialog box
//
// wReserved[] - WORD reserved field, must be 0
//
// dwReserved[] - DWORD reserved field, must be 0
//
//
//
//
// Following are flags for the EXTCHKBOX
//
#define ECBF_CHECKNAME_AT_FRONT 0x0001
#define ECBF_CHECKNAME_ONLY_ENABLED 0x0002
#define ECBF_ICONID_AS_HICON 0x0004
#define ECBF_OVERLAY_WARNING_ICON 0x0008
#define ECBF_OVERLAY_ECBICON_IF_CHECKED 0x0010
#define ECBF_OVERLAY_STOP_ICON 0x0020
#define ECBF_OVERLAY_NO_ICON 0x0040
#define ECBF_CHECKNAME_ONLY 0x0080
typedef struct _EXTCHKBOX {
WORD cbSize; // size of the structure
WORD Flags; // ECBF_xxx flags
LPTSTR pTitle; // extended checkbox title
LPTSTR pSeparator; // pointer to separator string for treeview
LPTSTR pCheckedName; // string to be displayed when checked
ULONG_PTR IconID; // icon to be used
WORD wReserved[4]; // reserved word, must be 0
ULONG_PTR dwReserved[2]; // reserved field, must be 0
} EXTCHKBOX, *PEXTCHKBOX;
//
// EXTCHKBOX structure is used to describe the extened check box available on
// OPTITEM/OPTITEM, each OPTTYPE can optional have one extended check box.
// When using EXTCHKBOX the selection item can be checked or not checked
// based on user input.
//
//
// cbSize - size of this structure
//
// Flags - flags for the EXTCHKBOX as ECBF_xxxx
//
// ECBF_CHECKNAME_AT_FRONT
//
// This flag specified how to display item's name and its
// checked name in the treeview display. If this flag is
// set then the checked name is display in front of
// separator name, otherwise the checked name is displayed
// after the separator. For Example.
//
// Flag Set: pCheckedName pSeparator SelectName
// Flag Clear: SelectName pSeparator pCheckedName
//
//
// ECBF_CHECKNAME_ONLY_ENABLED
//
// If set then it specified that in the treeview display,
// it will only show the pCheckedName if this extended
// check box is visible and enabled. Some items may not
// desired to display the pCheckedName if the extended
// check box is disabled, such as Copy/Collate checkbox.
//
//
// ECBF_ICONID_AS_HICON
//
// If this flag is set then IconID DWORD field is treated
// as a handle to the icon rather then the resource ID
//
//
// ECBF_OVERLAY_WARNING_ICON
//
// If this bit is set then this EXTCHKBOX's icon will
// be overlaied by a common UI's IDI_CPSUI_WARNING icon.
//
//
// ECBF_OVERLAY_ECBICON_IF_CHECKED
//
// This bit specified to overlay the ExtChkBox's Icon to
// the OPTITEM's icon (or OPTPARAM) if the the extended
// checked box is checked
//
//
// ECBF_OVERLAY_STOP_ICON
//
// If this bit is set then this EXTCHKBOX's icon will
// be overlaied by a common UI's IDI_CPSUI_STOP icon.
//
//
// ECBF_OVERLAY_NO_ICON
//
// If this bit is set then this EXTCHKBOX's icon will
// be overlaied by a common UI's IDI_CPSUI_NO icon.
//
//
// pTitle - Pointed to extended check box title
//
// ** See LPTSTR description above
//
// pSeparator - Pointer to the separator to be used in the treeview
// display or the static title control in the non-treeview
// page,
//
// pCheckedName- Pointed to the name to be displayed in the treeview if item
// is checked. pCheckedName is added according to the
// pSeparator and the ECBF_CHECKNAME_AT_FRONT flags.
//
// * If the pCheckedName is equal to IDS_CPSUI_NOTINSTALLED
// then common UI will automatically overaly a not installed
// icon on top of the extended check box Icon.
//
// ** See LPTSTR description above
//
// IconID - This is the icon identifier, which can be a common strandard
// IDI_CPSUI_xxx icon ID, caller's own icon resource ID, or a
// handle to the caller defined icon if ECBF_ICONID_AS_HICON
// flag is set, in any case if the IconID is zero then it
// indicated no icon.
//
// wReserved[] - WORD reserved field, must be 0
//
// dwReserved[]- DWORD reserved field, must be 0
//
//
// Following the the Flags for the OPTITEM
//
#define OPTIF_COLLAPSE 0x00000001L
#define OPTIF_HIDE 0x00000002L
#define OPTIF_CALLBACK 0x00000004L
#define OPTIF_CHANGED 0x00000008L
#define OPTIF_CHANGEONCE 0x00000010L
#define OPTIF_DISABLED 0x00000020L
#define OPTIF_ECB_CHECKED 0x00000040L
#define OPTIF_EXT_HIDE 0x00000080L
#define OPTIF_EXT_DISABLED 0x00000100L
#define OPTIF_SEL_AS_HICON 0x00000200L
#define OPTIF_EXT_IS_EXTPUSH 0x00000400L
#define OPTIF_NO_GROUPBOX_NAME 0x00000800L
#define OPTIF_OVERLAY_WARNING_ICON 0x00001000L
#define OPTIF_OVERLAY_STOP_ICON 0x00002000L
#define OPTIF_OVERLAY_NO_ICON 0x00004000L
#define OPTIF_INITIAL_TVITEM 0x00008000L
#define OPTIF_HAS_POIEXT 0x00010000L
#define OPTIF_MASK 0x0001ffffL
#define DMPUB_NONE 0
#define DMPUB_FIRST 1
#define DMPUB_ORIENTATION 1
#define DMPUB_SCALE 2
#define DMPUB_COPIES_COLLATE 3
#define DMPUB_DEFSOURCE 4
#define DMPUB_PRINTQUALITY 5
#define DMPUB_COLOR 6
#define DMPUB_DUPLEX 7
#define DMPUB_TTOPTION 8
#define DMPUB_FORMNAME 9
#define DMPUB_ICMMETHOD 10
#define DMPUB_ICMINTENT 11
#define DMPUB_MEDIATYPE 12
#define DMPUB_DITHERTYPE 13
#define DMPUB_OUTPUTBIN 14
#define DMPUB_QUALITY 15
#define DMPUB_NUP 16
#define DMPUB_PAGEORDER 17
#define DMPUB_LAST 17
#define DMPUB_OEM_PAPER_ITEM 97
#define DMPUB_OEM_GRAPHIC_ITEM 98
#define DMPUB_OEM_ROOT_ITEM 99
#define DMPUB_USER 100
#define MAKE_DMPUB_HIDEBIT(DMPub) (DWORD)(((DWORD)0x01 << ((DMPub) - 1)))
#define IS_DMPUB_HIDDEN(dw, DMPub) (BOOL)((DWORD)(dw) & \
MAKE_DMPUB_HIDEBIT(DMPub))
//
// DMPUB_xxxx is used in OPTITEM to identify if the item is a DEVMODE public
// field. Following it identify which field correspond to the DMPUB_xxxx
//
//
// DMPUB_ORIENTATION - dmOrientation
//
// DMPUB_SCALE - dmScale
//
// DMPUB_COPIES_COLLATE- dmCopies/dmCollate
//
// DMPUB_DEFSOURCE - dmDefSource (Should only used form by caller)
//
// DMPUB_PRINTQUALITY - dmPrintQuality
//
// DMPUB_COLOR - dmColor
//
// DMPUB_DUPLEX - dmDuplex
//
// DMPUB_TTOPTION - dmTTOption
//
// DMPUB_FORMNAME - dmFormName
//
// DMPUB_ICMMETHOD - dmICMMethod
//
// DMPUB_ICMINTENT - dmICMIntent
//
// DMPUB_MEDIATYPE - dmMediaType
//
// DMPUB_DITHERTYPE - dmDitherType
//
// DMPUB_USER - Anything greater than or equal to DMPUB_USER can be
// used by the caller.
//
// DMPUB_OUTPUTBIN - Private
//
// DMPUB_QUALITY - Private
//
// DMPUB_NUP - Private
//
// DMPUB_PAGEORDER - Private
//
// When common UI is called for the 'Document Properties' (DEVMODE), it will
// group some of public items together simillar to the following in the
// treeview. How it group is common UI version dependent and caller should not
// concern its placement
//
// Paper/Output (Add in by the common UI)
// Document Form (DMPUB_FORMNAME)
// Output Bin (DMPUB_OUTPUTBIN)
// Orientation (DMPUB_ORIENTATION)
// Source (DMPUB_DEFSOURCE)
// Media (DMPUB_MEDIATYPE)
// Number of Copies (DMPUB_COPIES_COLLATE)
// Page Order (DMPUB_PAGEORDER)
// Page Per Sheet (DMPUB_NUP)
// Duplex (DMPUB_DUPLEX)
//
// Graphic (Add in by the common UI)
// Print Quality (DMPUB_PRINTQUALITY)
// Quality Settings (DMPUB_QUALITY)
// Color (DMPUB_COLOR)
// Image Color Matching (Add in by the common UI)
// ICM Method (DMPUB_ICMMETHOD)
// ICM Intent (DMPUB_ICMINTENT)
// Scaling (DMPUB_SCALE)
// Dithering (DMPUB_DITHERTYPE)
// TrueType Option (DMPUB_TTOPTION)
//
// Options
// Halftone Color Adjustment...
// ALL Other Caller's Document sticky options
//
//
// For 'Document Properties' the standard page 1 (user friendly page) will
// consist following items if it appear in the OPTITEM array passed by the
// caller. These items must have following predefined TVOT_xxx type
// defined here and specified in the OPTTYPE's Type field.
//
// All DMPUB_xxx (except >= DMPUB_USER) public ID must have following
// TVOT_xxxx type specified, else a CPDU_INVALID_DMPUB_TVOT error is returned
//
// DMPUB_ORIENTATION - TVOT_2STATES/TVOT_3STATES
// DMPUB_SCALE - TVOT_UDARROW
// DMPUB_COPIES_COLLATE - TVOT_UDARROW + EXTCHKBOX (Collate)
// DMPUB_DEFSOURCE - TVOT_LISTBOX
// DMPUB_PRINTQUALITY - TVOT_LISTBOX
// DMPUB_COLOR - TVOT_2STATES
// DMPUB_DUPLEX - TVOT_2STATES/TVOT_3STATES
// DMPUB_TTOPTION - TVOT_LISTBOX
// DMPUB_FORMNAME - TVOT_LISTBOX
// DMPUB_ICMMETHOD - TVOT_2STATES/TVOT_3STATES
// DMPUB_ICMINTENT - TVOT_2STATES/TVOT_3STATES
// DMPUB_MEDIATYPE - TVOT_LISTBOX
// DMPUB_DITHERTYPE - TVOT_LISTBOX
//
//
#define OIEXTF_ANSI_STRING 0x0001
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -