|
SimpleWindow
|
SimpleWindow框架的顶级命名空间,所有公共类型、控件、枚举和工具函数均定义于此。 更多...
类型定义 | |
| using | IntToFloatConverter = NumericConverter< int, float > |
| using | IntToDoubleConverter = NumericConverter< int, double > |
| using | FloatToIntConverter = NumericConverter< float, int > |
| using | DoubleToIntConverter = NumericConverter< double, int > |
| using | BoolToIntConverter = BoolToNumericConverter< int > |
| using | IntToBoolConverter = NumericToBoolConverter< int > |
| template<typename TEnum > | |
| using | EnumToIntConverter = EnumToNumericConverter< TEnum, int > |
| template<typename TEnum > | |
| using | IntToEnumConverter = NumericToEnumConverter< int, TEnum > |
| template<typename... Args> | |
| using | Action = Delegate< void(Args...)> |
| Action类型别名,表示无返回值的委托 | |
| template<typename T > | |
| using | Predicate = Delegate< bool(T)> |
| Predicate类型别名,表示返回bool的单参数委托 | |
| template<typename... Types> | |
| using | Func = typename _FuncTypeHelper< typename _FuncTraits< Types... >::TArgsTuple >::template TFunc< typename _FuncTraits< Types... >::TRet > |
| Func类型别名,类似C::中的Func<T1, T2, ..., TResult> | |
| template<typename TVal > | |
| using | StrDictionary = Dictionary< std::wstring, TVal > |
| 以字符串为键值的字典 | |
| template<typename TSender , typename TEventArgs = EventArgs> | |
| using | EventHandler = Delegate< void(TSender &, TEventArgs &)> |
| 事件处理函数类型别名 | |
| using | DataContextChangedEventHandler = EventHandler< FrameworkElement, DataContextChangedEventArgs > |
| 数据上下文更改事件处理函数类型 | |
| using | ObjectDeadEventHandler = EventHandler< INotifyObjectDead > |
| 对象销毁事件处理程序类型 | |
| using | PropertyChangedEventHandler = EventHandler< INotifyPropertyChanged, PropertyChangedEventArgs > |
| 属性更改事件处理函数类型 | |
| template<typename T > | |
| using | _OptimalParamType = typename std::conditional< std::is_scalar< typename std::decay< T >::type >::value, typename std::decay< T >::type, const typename std::decay< T >::type & >::type |
| 最佳参数类型,标量类型使用值传递,复杂类型使用常量引用传递 | |
| template<typename TFrom , typename TTo > | |
| using | _IsStaticCastable = _IsExplicitlyConvertable< TFrom, TTo > |
| 用于判断是否可以通过static_cast进行转换 | |
| typedef ItemsControl< std::wstring > | StrItemsControl |
| 表示可用于呈现一组字符串的控件 | |
| using | StrList = List< std::wstring > |
| 字符串列表 | |
| using | MenuItemCommand = Action< MenuItem & > |
| 菜单项关联的回调函数类型 | |
| using | NotifyIconMouseEventHandler = EventHandler< NotifyIcon, NotifyIconMouseEventArgs > |
| 通知图标鼠标事件处理函数类型 | |
| template<typename T > | |
| using | _PropertySetterParamType = _OptimalParamType< T > |
| 属性setter参数类型 | |
| using | RoutedEventHandler = EventHandler< UIElement, RoutedEventArgs > |
| 路由事件类型 | |
| using | TimerTickHandler = EventHandler< Timer > |
| 计时器触发事件类型 | |
枚举 | |
| enum class | HorizontalAlignment { Center , Stretch , Left , Right } |
| 水平对齐方式 更多... | |
| enum class | VerticalAlignment { Center , Stretch , Top , Bottom } |
| 垂直对齐方式 更多... | |
| enum class | Orientation { Horizontal , Vertical } |
| 排列方式 更多... | |
| enum class | AppQuitMode { Auto , Manual } |
| 线程退出消息循环的方式 更多... | |
| enum class | BindingMode { OneTime , OneWay , OneWayToSource , TwoWay } |
| 绑定模式枚举 更多... | |
| enum class | BmpBoxSizeMode { Normal , StretchImage , AutoSize , CenterImage , Zoom } |
| 指定位图在BmpBox中的定位方式 更多... | |
| enum class | CheckState { Unchecked = BST_UNCHECKED , Checked = BST_CHECKED , Indeterminate = BST_INDETERMINATE } |
| 选中状态枚举类型 更多... | |
| enum class | ColorDialogFlags : DWORD { AnyColor = 0x00000100 , EnableHook = 0x00000010 , EnableTemplate = 0x00000020 , EnableTemplateHandle = 0x00000040 , FullOpen = 0x00000002 , PreventFullOpen = 0x00000004 , RgbInit = 0x00000001 , ShowHelp = 0x00000008 , SolidColor = 0x00000080 } |
| https://learn.microsoft.com/en-us/windows/win32/api/commdlg/ns-commdlg-choosecolora-r1 更多... | |
| enum class | StandardCursor { Arrow = 32512 , IBeam = 32513 , Wait = 32514 , Cross = 32515 , UpArrow = 32516 , Handwriting = 32631 , SizeNWSE = 32642 , SizeNESW = 32643 , SizeWE = 32644 , SizeNS = 32645 , SizeAll = 32646 , No = 32648 , Hand = 32649 , AppStarting = 32650 , Help = 32651 , Pin = 32671 , Person = 32672 } |
| 系统标准鼠标样式 更多... | |
| enum class | DateTimePickerFormat { Short , Long , Custom } |
| 指定DateTimePicker控件显示的日期和时间格式 更多... | |
| enum class | FileDialogFlags : DWORD { AllowMultiSelect = 0x00000200 , CreatePrompt = 0x00002000 , DontAddTorecent = 0x02000000 , EnableHook = 0x00000020 , EnableIncludeNotify = 0x00400000 , EnableSizing = 0x00800000 , EnableTemplate = 0x00000040 , EnableTemplateHandle = 0x00000080 , Explorer = 0x00080000 , ExtensionDifferent = 0x00000400 , FileMustExist = 0x00001000 , ForceShowHidden = 0x10000000 , HideReadOnly = 0x00000004 , LongNames = 0x00200000 , NoChangeDir = 0x00000008 , NoDereferenceLinks = 0x00100000 , NoLongNames = 0x00040000 , NoNetworkButton = 0x00020000 , NoReadOnlyReturn = 0x00008000 , NoTestFileCreate = 0x00010000 , NoValidate = 0x00000100 , OverwritePrompt = 0x00000002 , PathMustExist = 0x00000800 , ReadOnly = 0x00000001 , ShareAware = 0x00004000 , ShowHelp = 0x00000010 } |
| https://learn.microsoft.com/en-us/windows/win32/api/commdlg/ns-commdlg-openfilenamew 更多... | |
| enum class | FolderDialogFlags : UINT { ReturnOnlyFileSystemDirs = 0x00000001 , DontGoBelowDomain = 0x00000002 , StatusText = 0x00000004 , ReturnFileSystemAncestors = 0x00000008 , EditBox = 0x00000010 , Validate = 0x00000020 , NewDialogStyle = 0x00000040 , BrowseIncludeUrls = 0x00000080 , UseNewUI = 0x00000010 | 0x00000040 , UsageHint = 0x00000100 , NoNewFolderButton = 0x00000200 , NoTranslateTargets = 0x00000400 , BrowseForComputer = 0x00001000 , BrowseForPrinter = 0x00002000 , BrowseIncludeFiles = 0x00004000 , Sharable = 0x00008000 , BrowseFileJunctions = 0x00010000 } |
| https://learn.microsoft.com/en-us/windows/win32/api/shlobj_core/ns-shlobj_core-browseinfoa 更多... | |
| enum class | FontWeight : int { DontCare = 0 , Thin = 100 , ExtraLight = 200 , UltraLight = 200 , Light = 300 , Normal = 400 , Regular = 400 , Medium = 500 , SemiBold = 600 , DemiBold = 600 , Bold = 700 , ExtraBold = 800 , UltraBold = 800 , Heavy = 900 , Black = 900 } |
| 字体的粗细 更多... | |
| enum class | FontCharSet : uint8_t { ANSI = ANSI_CHARSET , Baltic = BALTIC_CHARSET , CheneseBig5 = CHINESEBIG5_CHARSET , Default = DEFAULT_CHARSET , EastEurope = EASTEUROPE_CHARSET , GB2312 = GB2312_CHARSET , Greek = GREEK_CHARSET , Hangul = HANGUL_CHARSET , Mac = MAC_CHARSET , Oem = OEM_CHARSET , Russian = RUSSIAN_CHARSET , ShiftJIS = SHIFTJIS_CHARSET , Symbol = SYMBOL_CHARSET , Turkish = TURKISH_CHARSET , Vietnamese = VIETNAMESE_CHARSET , Johab = JOHAB_CHARSET , Arabic = ARABIC_CHARSET , Hebrew = HEBREW_CHARSET , Thai = THAI_CHARSET } |
| 字符集 更多... | |
| enum class | FontOutPrecision : uint8_t { Character = OUT_CHARACTER_PRECIS , Default = OUT_DEFAULT_PRECIS , Device = OUT_DEVICE_PRECIS , Outline = OUT_OUTLINE_PRECIS , PostScriptOnly = OUT_PS_ONLY_PRECIS , Raster = OUT_RASTER_PRECIS , String = OUT_STRING_PRECIS , Stroke = OUT_STROKE_PRECIS , TrueTypeOnly = OUT_TT_ONLY_PRECIS , TrueType = OUT_TT_PRECIS } |
| 输出质量 更多... | |
| enum class | FontClipPrecision : uint8_t { CharacterPrecis = CLIP_CHARACTER_PRECIS , DefaultPrecis = CLIP_DEFAULT_PRECIS , Embedded = CLIP_EMBEDDED , LH_Angles = CLIP_LH_ANGLES , Mask = CLIP_MASK , StrokePrecis = CLIP_STROKE_PRECIS , TT_Always = CLIP_TT_ALWAYS } |
| 剪裁精度 更多... | |
| enum class | FontQuality : uint8_t { AntiAliased = ANTIALIASED_QUALITY , ClearType = CLEARTYPE_QUALITY , Default = DEFAULT_QUALITY , Draft = DRAFT_QUALITY , NoAntiAliased = NONANTIALIASED_QUALITY , Proof = PROOF_QUALITY } |
| 输出质量 更多... | |
| enum class | FontPitch : uint8_t { Default = DEFAULT_PITCH , Fixed = FIXED_PITCH , Variable = VARIABLE_PITCH } |
| 字体的间距 更多... | |
| enum class | FontFamily : uint8_t { Decorative = FF_DECORATIVE , DontCare = FF_DONTCARE , Modern = FF_MODERN , Roman = FF_ROMAN , Script = FF_SCRIPT , Swiss = FF_SWISS } |
| 字体系列 更多... | |
| enum class | FontDialogFlags : DWORD { Apply = 0x00000200 , ANSIOnly = 0x00000400 , Both = 0x00000003 , Effects = 0x00000100 , EnableHook = 0x00000008 , EnableTemplate = 0x00000010 , EnableTemplateHandle = 0x00000020 , FixedPitchOnly = 0x00004000 , ForceFontExist = 0x00010000 , InavtiveFonts = 0x02000000 , InitToLogFontStruct = 0x00000040 , LimitSize = 0x00002000 , NoOemFonts = 0x00000800 , NoFaceSel = 0x00080000 , NoScriptSel = 0x00800000 , NoSimulations = 0x00001000 , NoSizeSel = 0x00200000 , NoStyleSel = 0x00100000 , NoVectorFonts = 0x00000800 , NoVertFonts = 0x01000000 , PrinterFonts = 0x00000002 , ScalableOnly = 0x00020000 , ScreenFonts = 0x00000001 , ScriptsOnly = 0x00000400 , SelectScript = 0x00400000 , ShowHelp = 0x00000004 , TrueTypeOnly = 0x00040000 , UseStyle = 0x00000080 , WYSIWYG = 0x00008000 } |
| https://learn.microsoft.com/en-us/windows/win32/api/commdlg/ns-commdlg-choosefonta 更多... | |
| enum class | GridRCType { FixSize , AutoSize , FillRemain } |
| GridRow和GridColumn的类型 更多... | |
| enum class | HitTestResult { HitBorder = HTBORDER , HitBottom = HTBOTTOM , HitBottomLeft = HTBOTTOMLEFT , HitBottomRight = HTBOTTOMRIGHT , HitCaption = HTCAPTION , HitClient = HTCLIENT , HitClose = HTCLOSE , HitError = HTERROR , HitGrowBox = HTGROWBOX , HitHelp = HTHELP , HitHScroll = HTHSCROLL , HitLeft = HTLEFT , HitMenu = HTMENU , HitMaxButton = HTMAXBUTTON , HitMinButton = HTMINBUTTON , HitNoWhere = HTNOWHERE , HitReduce = HTREDUCE , HitRight = HTRIGHT , HitSize = HTSIZE , HitSysMenu = HTSYSMENU , HitTop = HTTOP , HitTopLeft = HTTOPLEFT , HitTopRight = HTTOPRIGHT , HitTransparent = HTTRANSPARENT , HitVScroll = HTVSCROLL , HitZoom = HTZOOM } |
| NcHitTest(WM_NCHITTEST)的返回值 更多... | |
| enum class | HotKeyCombination { Alt = HKCOMB_A , Ctrl = HKCOMB_C , CtrlAlt = HKCOMB_CA , None = HKCOMB_NONE , Shift = HKCOMB_S , ShiftAlt = HKCOMB_SA , ShiftCtrl = HKCOMB_SC , ShiftCtrlAlt = HKCOMB_SCA } |
| 热键组合 更多... | |
| enum class | StandardIcon { Application = 32512 , Error = 32513 , Question = 32514 , Warning = 32515 , Information = 32516 , WinLogo = 32517 , Shield = 32518 } |
| 系统标准图标样式 更多... | |
| enum class | VirtualKey { MouseLeft = 0x01 , MouseRight = 0x02 , Cancel = 0x03 , MouseMiddle = 0x04 , MouseX1 = 0x05 , MouseX2 = 0x06 , Backspace = 0x08 , Tab = 0x09 , Clear = 0x0C , Enter = 0x0D , Shift = 0x10 , Ctrl = 0x11 , Alt = 0x12 , Pause = 0x13 , CapsLock = 0x14 , Kana = 0x15 , Hanguel = 0x15 , Hangul = 0x15 , IME_On = 0x16 , Junja = 0x17 , Final = 0x18 , Hanja = 0x19 , KANJI = 0x19 , IME_Off = 0x1A , Esc = 0x1B , Convert = 0x1C , Nonconvert = 0x1D , Accept = 0x1E , ModeChange = 0x1F , Space = 0x20 , PageUp = 0x21 , PageDown = 0x22 , End = 0x23 , Home = 0x24 , Left = 0x25 , Up = 0x26 , Right = 0x27 , Down = 0x28 , Select = 0x29 , Print = 0x2A , Execute = 0x2B , Snapshot = 0x2C , Insert = 0x2D , Delete = 0x2E , Help = 0x2F , Zero = 0x30 , One = 0x31 , Two = 0x32 , Three = 0x33 , Four = 0x34 , Five = 0x35 , Six = 0x36 , Seven = 0x37 , Eight = 0x38 , Nine = 0x39 , A = 0x41 , B = 0x42 , C = 0x43 , D = 0x44 , E = 0x45 , F = 0x46 , G = 0x47 , H = 0x48 , I = 0x49 , J = 0x4A , K = 0x4B , L = 0x4C , M = 0x4D , N = 0x4E , O = 0x4F , P = 0x50 , Q = 0x51 , R = 0x52 , S = 0x53 , T = 0x54 , U = 0x55 , V = 0x56 , W = 0x57 , X = 0x58 , Y = 0x59 , Z = 0x5A , LeftWindows = 0x5B , RightWindows = 0x5C , Applications = 0x5D , Sleep = 0x5F , NumPad0 = 0x60 , NumPad1 = 0x61 , NumPad2 = 0x62 , NumPad3 = 0x63 , NumPad4 = 0x64 , NumPad5 = 0x65 , NumPad6 = 0x66 , NumPad7 = 0x67 , NumPad8 = 0x68 , NumPad9 = 0x69 , Multipy = 0x6A , Add = 0x6B , Separator = 0x6C , Subtract = 0x6D , Decimal = 0x6E , Divide = 0x6F , F1 = 0x70 , F2 = 0x71 , F3 = 0x72 , F4 = 0x73 , F5 = 0x74 , F6 = 0x75 , F7 = 0x76 , F8 = 0x77 , F9 = 0x78 , F10 = 0x79 , F11 = 0x7A , F12 = 0x7B , F13 = 0x7C , F14 = 0x7D , F15 = 0x7E , F16 = 0x7F , F17 = 0x80 , F18 = 0x81 , F19 = 0x82 , F20 = 0x83 , F21 = 0x84 , F22 = 0x85 , F23 = 0x86 , F24 = 0x87 , NumLock = 0x90 , ScrollLock = 0x91 , LeftShift = 0xA0 , RightShift = 0xA1 , LeftCtrl = 0xA2 , RightCtrl = 0xA3 , LeftAlt = 0xA4 , RightAlt = 0xA5 , BrowserBack = 0xA6 , BrowserForward = 0xA7 , BrowserRefresh = 0xA8 , BrowserStop = 0xA9 , BrowserSearch = 0xAA , BrowserFavorites = 0xAB , BrowserHome = 0xAC , VolumeMute = 0xAD , VolumeDown = 0xAE , VolumeUp = 0xAF , MediaNextTrack = 0xB0 , MediaPreviousTrack = 0xB1 , MediaStop = 0xB2 , MediaPlayPause = 0xB3 , LaunchMail = 0xB4 , LaunchMediaSelect = 0xB5 , LaunchApplication1 = 0xB6 , LaunchApplication2 = 0xB7 , OEM_1 = 0xBA , OEM_Plus = 0xBB , OEM_Comma = 0xBC , OEM_Minus = 0xBD , OEM_Period = 0xBE , OEM_2 = 0xBF , OEM_3 = 0xC0 , OEM_4 = 0xDB , OEM_5 = 0xDC , OEM_6 = 0xDD , OEM_7 = 0xDE , OEM_8 = 0xDF , OEM_102 = 0xE2 , ProcessKey = 0xE5 , Packet = 0xE7 , Attn = 0xF6 , CrSel = 0xF7 , ExSel = 0xF8 , EraseEOF = 0xF9 , Play = 0xFA , Zoom = 0xFB , NONAME = 0xFC , PA1 = 0xFD , OEM_Clear = 0xFE } |
| 虚拟按键 更多... | |
| enum class | MouseKey { Ctrl = MK_CONTROL , MouseLeft = MK_LBUTTON , MouseMiddle = MK_MBUTTON , MouseRight = MK_RBUTTON , Shift = MK_SHIFT , MouseX1 = MK_XBUTTON1 , MouseX2 = MK_XBUTTON2 } |
| 鼠标事件时用于判断按键状态 更多... | |
| enum class | HotKeyModifier { None = 0 , Shift = 0x1 , Ctrl = 0x2 , Alt = 0x4 , Ext = 0x8 } |
| 表示热键框控件中的辅助按键,可以是一个或多个按键 更多... | |
| enum class | KnownColors { ActiveBorder = RGB(0xb4, 0xb4, 0xb4) , ActiveCaption = RGB(0x99, 0xb4, 0xd1) , ActiveCaptionText = RGB(0x00, 0x00, 0x00) , AppWorkspace = RGB(0xab, 0xab, 0xab) , Control = RGB(0xf0, 0xf0, 0xf0) , ControlDark = RGB(0xa0, 0xa0, 0xa0) , ControlDarkDark = RGB(0x69, 0x69, 0x69) , ControlLight = RGB(0xe3, 0xe3, 0xe3) , ControlLightLight = RGB(0xff, 0xff, 0xff) , ControlText = RGB(0x00, 0x00, 0x00) , Desktop = RGB(0x00, 0x00, 0x00) , GrayText = RGB(0x6d, 0x6d, 0x6d) , Highlight = RGB(0x00, 0x78, 0xd7) , HighlightText = RGB(0xff, 0xff, 0xff) , HotTrack = RGB(0x00, 0x66, 0xcc) , InactiveBorder = RGB(0xf4, 0xf7, 0xfc) , InactiveCaption = RGB(0xbf, 0xcd, 0xdb) , InactiveCaptionText = RGB(0x00, 0x00, 0x00) , Info = RGB(0xff, 0xff, 0xe1) , InfoText = RGB(0x00, 0x00, 0x00) , Menu = RGB(0xf0, 0xf0, 0xf0) , MenuText = RGB(0x00, 0x00, 0x00) , ScrollBar = RGB(0xc8, 0xc8, 0xc8) , Window = RGB(0xff, 0xff, 0xff) , WindowFrame = RGB(0x64, 0x64, 0x64) , WindowText = RGB(0x00, 0x00, 0x00) , Transparent = RGB(0xff, 0xff, 0xff) , AliceBlue = RGB(0xf0, 0xf8, 0xff) , AntiqueWhite = RGB(0xfa, 0xeb, 0xd7) , Aqua = RGB(0x00, 0xff, 0xff) , Aquamarine = RGB(0x7f, 0xff, 0xd4) , Azure = RGB(0xf0, 0xff, 0xff) , Beige = RGB(0xf5, 0xf5, 0xdc) , Bisque = RGB(0xff, 0xe4, 0xc4) , Black = RGB(0x00, 0x00, 0x00) , BlanchedAlmond = RGB(0xff, 0xeb, 0xcd) , Blue = RGB(0x00, 0x00, 0xff) , BlueViolet = RGB(0x8a, 0x2b, 0xe2) , Brown = RGB(0xa5, 0x2a, 0x2a) , BurlyWood = RGB(0xde, 0xb8, 0x87) , CadetBlue = RGB(0x5f, 0x9e, 0xa0) , Chartreuse = RGB(0x7f, 0xff, 0x00) , Chocolate = RGB(0xd2, 0x69, 0x1e) , Coral = RGB(0xff, 0x7f, 0x50) , CornflowerBlue = RGB(0x64, 0x95, 0xed) , Cornsilk = RGB(0xff, 0xf8, 0xdc) , Crimson = RGB(0xdc, 0x14, 0x3c) , Cyan = RGB(0x00, 0xff, 0xff) , DarkBlue = RGB(0x00, 0x00, 0x8b) , DarkCyan = RGB(0x00, 0x8b, 0x8b) , DarkGoldenrod = RGB(0xb8, 0x86, 0x0b) , DarkGray = RGB(0xa9, 0xa9, 0xa9) , DarkGreen = RGB(0x00, 0x64, 0x00) , DarkKhaki = RGB(0xbd, 0xb7, 0x6b) , DarkMagenta = RGB(0x8b, 0x00, 0x8b) , DarkOliveGreen = RGB(0x55, 0x6b, 0x2f) , DarkOrange = RGB(0xff, 0x8c, 0x00) , DarkOrchid = RGB(0x99, 0x32, 0xcc) , DarkRed = RGB(0x8b, 0x00, 0x00) , DarkSalmon = RGB(0xe9, 0x96, 0x7a) , DarkSeaGreen = RGB(0x8f, 0xbc, 0x8f) , DarkSlateBlue = RGB(0x48, 0x3d, 0x8b) , DarkSlateGray = RGB(0x2f, 0x4f, 0x4f) , DarkTurquoise = RGB(0x00, 0xce, 0xd1) , DarkViolet = RGB(0x94, 0x00, 0xd3) , DeepPink = RGB(0xff, 0x14, 0x93) , DeepSkyBlue = RGB(0x00, 0xbf, 0xff) , DimGray = RGB(0x69, 0x69, 0x69) , DodgerBlue = RGB(0x1e, 0x90, 0xff) , Firebrick = RGB(0xb2, 0x22, 0x22) , FloralWhite = RGB(0xff, 0xfa, 0xf0) , ForestGreen = RGB(0x22, 0x8b, 0x22) , Fuchsia = RGB(0xff, 0x00, 0xff) , Gainsboro = RGB(0xdc, 0xdc, 0xdc) , GhostWhite = RGB(0xf8, 0xf8, 0xff) , Gold = RGB(0xff, 0xd7, 0x00) , Goldenrod = RGB(0xda, 0xa5, 0x20) , Gray = RGB(0x80, 0x80, 0x80) , Green = RGB(0x00, 0x80, 0x00) , GreenYellow = RGB(0xad, 0xff, 0x2f) , Honeydew = RGB(0xf0, 0xff, 0xf0) , HotPink = RGB(0xff, 0x69, 0xb4) , IndianRed = RGB(0xcd, 0x5c, 0x5c) , Indigo = RGB(0x4b, 0x00, 0x82) , Ivory = RGB(0xff, 0xff, 0xf0) , Khaki = RGB(0xf0, 0xe6, 0x8c) , Lavender = RGB(0xe6, 0xe6, 0xfa) , LavenderBlush = RGB(0xff, 0xf0, 0xf5) , LawnGreen = RGB(0x7c, 0xfc, 0x00) , LemonChiffon = RGB(0xff, 0xfa, 0xcd) , LightBlue = RGB(0xad, 0xd8, 0xe6) , LightCoral = RGB(0xf0, 0x80, 0x80) , LightCyan = RGB(0xe0, 0xff, 0xff) , LightGoldenrodYellow = RGB(0xfa, 0xfa, 0xd2) , LightGray = RGB(0xd3, 0xd3, 0xd3) , LightGreen = RGB(0x90, 0xee, 0x90) , LightPink = RGB(0xff, 0xb6, 0xc1) , LightSalmon = RGB(0xff, 0xa0, 0x7a) , LightSeaGreen = RGB(0x20, 0xb2, 0xaa) , LightSkyBlue = RGB(0x87, 0xce, 0xfa) , LightSlateGray = RGB(0x77, 0x88, 0x99) , LightSteelBlue = RGB(0xb0, 0xc4, 0xde) , LightYellow = RGB(0xff, 0xff, 0xe0) , Lime = RGB(0x00, 0xff, 0x00) , LimeGreen = RGB(0x32, 0xcd, 0x32) , Linen = RGB(0xfa, 0xf0, 0xe6) , Magenta = RGB(0xff, 0x00, 0xff) , Maroon = RGB(0x80, 0x00, 0x00) , MediumAquamarine = RGB(0x66, 0xcd, 0xaa) , MediumBlue = RGB(0x00, 0x00, 0xcd) , MediumOrchid = RGB(0xba, 0x55, 0xd3) , MediumPurple = RGB(0x93, 0x70, 0xdb) , MediumSeaGreen = RGB(0x3c, 0xb3, 0x71) , MediumSlateBlue = RGB(0x7b, 0x68, 0xee) , MediumSpringGreen = RGB(0x00, 0xfa, 0x9a) , MediumTurquoise = RGB(0x48, 0xd1, 0xcc) , MediumVioletRed = RGB(0xc7, 0x15, 0x85) , MidnightBlue = RGB(0x19, 0x19, 0x70) , MintCream = RGB(0xf5, 0xff, 0xfa) , MistyRose = RGB(0xff, 0xe4, 0xe1) , Moccasin = RGB(0xff, 0xe4, 0xb5) , NavajoWhite = RGB(0xff, 0xde, 0xad) , Navy = RGB(0x00, 0x00, 0x80) , OldLace = RGB(0xfd, 0xf5, 0xe6) , Olive = RGB(0x80, 0x80, 0x00) , OliveDrab = RGB(0x6b, 0x8e, 0x23) , Orange = RGB(0xff, 0xa5, 0x00) , OrangeRed = RGB(0xff, 0x45, 0x00) , Orchid = RGB(0xda, 0x70, 0xd6) , PaleGoldenrod = RGB(0xee, 0xe8, 0xaa) , PaleGreen = RGB(0x98, 0xfb, 0x98) , PaleTurquoise = RGB(0xaf, 0xee, 0xee) , PaleVioletRed = RGB(0xdb, 0x70, 0x93) , PapayaWhip = RGB(0xff, 0xef, 0xd5) , PeachPuff = RGB(0xff, 0xda, 0xb9) , Peru = RGB(0xcd, 0x85, 0x3f) , Pink = RGB(0xff, 0xc0, 0xcb) , Plum = RGB(0xdd, 0xa0, 0xdd) , PowderBlue = RGB(0xb0, 0xe0, 0xe6) , Purple = RGB(0x80, 0x00, 0x80) , Red = RGB(0xff, 0x00, 0x00) , RosyBrown = RGB(0xbc, 0x8f, 0x8f) , RoyalBlue = RGB(0x41, 0x69, 0xe1) , SaddleBrown = RGB(0x8b, 0x45, 0x13) , Salmon = RGB(0xfa, 0x80, 0x72) , SandyBrown = RGB(0xf4, 0xa4, 0x60) , SeaGreen = RGB(0x2e, 0x8b, 0x57) , SeaShell = RGB(0xff, 0xf5, 0xee) , Sienna = RGB(0xa0, 0x52, 0x2d) , Silver = RGB(0xc0, 0xc0, 0xc0) , SkyBlue = RGB(0x87, 0xce, 0xeb) , SlateBlue = RGB(0x6a, 0x5a, 0xcd) , SlateGray = RGB(0x70, 0x80, 0x90) , Snow = RGB(0xff, 0xfa, 0xfa) , SpringGreen = RGB(0x00, 0xff, 0x7f) , SteelBlue = RGB(0x46, 0x82, 0xb4) , Tan = RGB(0xd2, 0xb4, 0x8c) , Teal = RGB(0x00, 0x80, 0x80) , Thistle = RGB(0xd8, 0xbf, 0xd8) , Tomato = RGB(0xff, 0x63, 0x47) , Turquoise = RGB(0x40, 0xe0, 0xd0) , Violet = RGB(0xee, 0x82, 0xee) , Wheat = RGB(0xf5, 0xde, 0xb3) , White = RGB(0xff, 0xff, 0xff) , WhiteSmoke = RGB(0xf5, 0xf5, 0xf5) , Yellow = RGB(0xff, 0xff, 0x00) , YellowGreen = RGB(0x9a, 0xcd, 0x32) , ButtonFace = RGB(0xf0, 0xf0, 0xf0) , ButtonHighlight = RGB(0xff, 0xff, 0xff) , ButtonShadow = RGB(0xa0, 0xa0, 0xa0) , GradientActiveCaption = RGB(0xb9, 0xd1, 0xea) , GradientInactiveCaption = RGB(0xd7, 0xe4, 0xf2) , MenuBar = RGB(0xf0, 0xf0, 0xf0) , MenuHighlight = RGB(0x33, 0x99, 0xff) , RebeccaPurple = RGB(0x66, 0x33, 0x99) } |
| 已知的颜色 更多... | |
| enum class | TextTrimming { None , EndEllipsis , WordEllipsis } |
| 文本过长时末尾的处理方式 更多... | |
| enum class | ListViewImageList { Normal = LVSIL_NORMAL , Small = LVSIL_SMALL , State = LVSIL_STATE , GroupHeader = LVSIL_GROUPHEADER } |
| 列表视图的图像列表枚举 更多... | |
| enum class | ListViewColumnAlignment { Left = LVCFMT_LEFT , Right = LVCFMT_RIGHT , Center = LVCFMT_CENTER } |
| 列表视图的列对齐方式 更多... | |
| enum class | MsgBoxButton { AbortRetryIgnore = MB_ABORTRETRYIGNORE , CancelRetryContinue = MB_CANCELTRYCONTINUE , Ok = MB_OK , OkCancel = MB_OKCANCEL , RetryCancel = MB_RETRYCANCEL , YesNo = MB_YESNO , YesNoCancel = MB_YESNOCANCEL } |
| 消息框按钮类型 更多... | |
| enum class | MsgBoxIcon { None = 0 , Warning = MB_ICONWARNING , Information = MB_ICONINFORMATION , Question = MB_ICONQUESTION , Error = MB_ICONERROR } |
| 消息框图标类型 更多... | |
| enum class | MsgBoxResult { Abort = IDABORT , Cancel = IDCANCEL , Continue = IDCONTINUE , Ignore = IDIGNORE , No = IDNO , Ok = IDOK , Retry = IDRETRY , TryAgain = IDTRYAGAIN , Yes = IDYES } |
| 消息框结果 更多... | |
| enum class | BorderStyle { None = 0 , Bump = EDGE_BUMP , Etched = EDGE_ETCHED , Raised = EDGE_RAISED , Sunked = EDGE_SUNKEN } |
| 边框类型 更多... | |
| enum class | ProgressBarState { Normal = 0x0001 , Error = 0x0002 , Paused = 0x0003 } |
| 进度条状态 更多... | |
| enum | RoutedEventType : uint32_t { RoutedEventType_Null = 0 , RoutedEventType_User = 1 , RoutedEventType_UserEnd = 0x80000000 , UIElement_SizeChanged , UIElement_PositionChanged , UIElement_TextChanged , UIElement_GotFocus , UIElement_LostFocus , UIElement_GotChar , UIElement_KeyDown , UIElement_KeyUp , UIElement_MouseMove , UIElement_MouseLeave , UIElement_MouseWheel , UIElement_MouseButtonDown , UIElement_MouseButtonUp , UIElement_ShowContextMenu , UIElement_DropFiles , Window_Closing , Window_Closed , Window_Actived , Window_Inactived , ButtonBase_Clicked , ButtonBase_DoubleClicked , SplitButton_DropDown , ItemsControl_SelectionChanged , ListView_CheckStateChanged , ListView_HeaderClicked , ListView_HeaderDoubleClicked , ListView_ItemClicked , ListView_ItemDoubleClicked , ListView_EndEdit , Slider_ValueChanged , Slider_EndTrack , Layer_Scrolling , TabControl_SelectedIndexChanged , DateTimePicker_TimeChanged , MonthCalendar_TimeChanged , IPAddressControl_AddressChanged , SysLink_Clicked , HotKeyControl_ValueChanged , TreeView_ItemExpanding , TreeView_ItemExpanded , TreeView_CheckStateChanged } |
| 路由事件类型枚举 更多... | |
| enum class | ScrollOrientation { Horizontal , Vertical } |
| 滚动条方向 更多... | |
| enum class | ScrollEvent { LineUp = SB_LINEUP , LineLeft = SB_LINELEFT , LineDown = SB_LINEDOWN , LineRight = SB_LINERIGHT , PageUp = SB_PAGEUP , PageLeft = SB_PAGELEFT , PageDown = SB_PAGEDOWN , PageRight = SB_PAGERIGHT , ThumbPosition = SB_THUMBPOSITION , ThubmTrack = SB_THUMBTRACK , Top = SB_TOP , Left = SB_LEFT , Bottom = SB_BOTTOM , Right = SB_RIGHT , EndScroll = SB_ENDSCROLL } |
| 滚动条事件 更多... | |
| enum class | TabAlignment { Top , Bottom , Left , Right } |
| TabControl标签的位置 更多... | |
| enum class | ToolTipIcon { None = TTI_NONE , Info = TTI_INFO , Warning = TTI_WARNING , Error = TTI_ERROR , LargeInfo = 4 , LargeWarning = 5 , LargeError = 6 } |
| 提示信息图标类型 更多... | |
| enum class | TreeViewImageList { Normal = TVSIL_NORMAL , State = TVSIL_STATE } |
| 树视图的图像列表枚举 更多... | |
| enum class | LayoutUpdateCondition : uint32_t { SizeChanged = 1 << 0 , PositionChanged = 1 << 1 , ChildAdded = 1 << 2 , ChildRemoved = 1 << 3 , TextChanged = 1 << 4 , FontChanged = 1 << 5 , MeasureInvalidated = 1 << 29 , Supressed = 1 << 30 } |
| 通知布局更新的条件 更多... | |
| enum class | WindowState { Normal , Minimized , Maximized } |
| 窗口状态 更多... | |
| enum class | WindowStartupLocation { Manual , CenterScreen , CenterOwner } |
| 窗口启动位置 更多... | |
| enum | WndMsg : UINT { WM_SimpleWindowBegin = WM_APP + 0x3000 , WM_UpdateLayout , WM_InvokeAction , WM_PreSetParent , WM_SimpleWindowEnd } |
| 包含SimpleWindow用到的一些窗口消息 更多... | |
函数 | |
| _SW_ENUM_ENABLE_BIT_OPERATIONS (ColorDialogFlags) | |
| 标记ColorDialogFlags枚举支持位运算 | |
| template<typename TRet , typename... Args> | |
| bool | operator== (std::nullptr_t, const Delegate< TRet(Args...)> &d) noexcept |
| 比较委托和nullptr | |
| template<typename TRet , typename... Args> | |
| bool | operator!= (std::nullptr_t, const Delegate< TRet(Args...)> &d) noexcept |
| 比较委托和nullptr | |
| template<typename T > | |
| constexpr auto | operator| (T a, T b) -> typename std::enable_if< std::is_enum< T >::value &&_EnumSupportBitOperations< T >::value, T >::type |
| 为标记_EnumSupportBitOperations的枚举类型提供按位或运算 | |
| template<typename T > | |
| constexpr auto | operator|= (T &a, T b) -> typename std::enable_if< std::is_enum< T >::value &&_EnumSupportBitOperations< T >::value, T & >::type |
| 为标记_EnumSupportBitOperations的枚举类型提供按位或赋值运算 | |
| template<typename T > | |
| constexpr auto | operator& (T a, T b) -> typename std::enable_if< std::is_enum< T >::value &&_EnumSupportBitOperations< T >::value, T >::type |
| 为标记_EnumSupportBitOperations的枚举类型提供按位与运算 | |
| template<typename T > | |
| constexpr auto | operator&= (T &a, T b) -> typename std::enable_if< std::is_enum< T >::value &&_EnumSupportBitOperations< T >::value, T & >::type |
| 为标记_EnumSupportBitOperations的枚举类型提供按位与赋值运算 | |
| template<typename T > | |
| constexpr auto | operator^ (T a, T b) -> typename std::enable_if< std::is_enum< T >::value &&_EnumSupportBitOperations< T >::value, T >::type |
| 为标记_EnumSupportBitOperations的枚举类型提供按位异或运算 | |
| template<typename T > | |
| constexpr auto | operator^= (T &a, T b) -> typename std::enable_if< std::is_enum< T >::value &&_EnumSupportBitOperations< T >::value, T & >::type |
| 为标记_EnumSupportBitOperations的枚举类型提供按位异或赋值运算 | |
| template<typename T > | |
| constexpr auto | operator~ (T a) -> typename std::enable_if< std::is_enum< T >::value &&_EnumSupportBitOperations< T >::value, T >::type |
| 为标记_EnumSupportBitOperations的枚举类型提供按位取反运算 | |
| _SW_ENUM_ENABLE_BIT_OPERATIONS (FileDialogFlags) | |
| 标记FileDialogFlags枚举支持位运算 | |
| _SW_ENUM_ENABLE_BIT_OPERATIONS (FolderDialogFlags) | |
| 标记FolderDialogFlags枚举支持位运算 | |
| _SW_ENUM_ENABLE_BIT_OPERATIONS (FontDialogFlags) | |
| 标记FontDialogFlags枚举支持位运算 | |
| _SW_ENUM_ENABLE_BIT_OPERATIONS (HotKeyCombination) | |
| 标记HotKeyCombination枚举类型支持位运算 | |
| _SW_ENUM_ENABLE_BIT_OPERATIONS (MouseKey) | |
| 标记MouseKey枚举类型支持位运算 | |
| _SW_ENUM_ENABLE_BIT_OPERATIONS (HotKeyModifier) | |
| 标记HotKeyModifier枚举类型支持位运算 | |
| _SW_DEFINE_OPERATION_HELPER (_AddOperationHelper,+) | |
| _SW_DEFINE_OPERATION_HELPER (_SubOperationHelper, -) | |
| _SW_DEFINE_OPERATION_HELPER (_MulOperationHelper, *) | |
| _SW_DEFINE_OPERATION_HELPER (_DivOperationHelper,/) | |
| _SW_DEFINE_OPERATION_HELPER (_ModOperationHelper, %) | |
| _SW_DEFINE_OPERATION_HELPER (_EqOperationHelper,==) | |
| _SW_DEFINE_OPERATION_HELPER (_NeOperationHelper, !=) | |
| _SW_DEFINE_OPERATION_HELPER (_LtOperationHelper,<) | |
| _SW_DEFINE_OPERATION_HELPER (_LeOperationHelper,<=) | |
| _SW_DEFINE_OPERATION_HELPER (_GtOperationHelper, >) | |
| _SW_DEFINE_OPERATION_HELPER (_GeOperationHelper, >=) | |
| _SW_DEFINE_OPERATION_HELPER (_BitAndOperationHelper, &) | |
| _SW_DEFINE_OPERATION_HELPER (_BitOrOperationHelper,|) | |
| _SW_DEFINE_OPERATION_HELPER (_BitXorOperationHelper, ^) | |
| _SW_DEFINE_OPERATION_HELPER (_ShlOperationHelper,<<) | |
| _SW_DEFINE_OPERATION_HELPER (_ShrOperationHelper, > >) | |
| _SW_DEFINE_OPERATION_HELPER (_LogicAndOperationHelper, &&) | |
| _SW_DEFINE_OPERATION_HELPER (_LogicOrOperationHelper,||) | |
| _SW_DEFINE_UNARY_OPERATION_HELPER (_LogicNotOperationHelper, !) | |
| _SW_DEFINE_UNARY_OPERATION_HELPER (_BitNotOperationHelper, ~) | |
| _SW_DEFINE_UNARY_OPERATION_HELPER (_DerefOperationHelper, *) | |
| _SW_DEFINE_UNARY_OPERATION_HELPER (_AddrOperationHelper, &) | |
| _SW_DEFINE_UNARY_OPERATION_HELPER (_UnaryPlusOperationHelper,+) | |
| _SW_DEFINE_UNARY_OPERATION_HELPER (_UnaryMinusOperationHelper, -) | |
| template<typename D , typename T , typename U > | |
| auto | operator+ (T &&left, const PropertyBase< U, D > &right) -> typename std::enable_if<!_IsProperty< T >::value &&_AddOperationHelper< T, U >::value, typename _AddOperationHelper< T, U >::type >::type |
| 加法运算 | |
| template<typename D , typename T , typename U > | |
| auto | operator- (T &&left, const PropertyBase< U, D > &right) -> typename std::enable_if<!_IsProperty< T >::value &&_SubOperationHelper< T, U >::value, typename _SubOperationHelper< T, U >::type >::type |
| 减法运算 | |
| template<typename D , typename T , typename U > | |
| auto | operator* (T &&left, const PropertyBase< U, D > &right) -> typename std::enable_if<!_IsProperty< T >::value &&_MulOperationHelper< T, U >::value, typename _MulOperationHelper< T, U >::type >::type |
| 乘法运算 | |
| template<typename D , typename T , typename U > | |
| auto | operator/ (T &&left, const PropertyBase< U, D > &right) -> typename std::enable_if<!_IsProperty< T >::value &&_DivOperationHelper< T, U >::value, typename _DivOperationHelper< T, U >::type >::type |
| 除法运算 | |
| template<typename D , typename T , typename U > | |
| auto | operator% (T &&left, const PropertyBase< U, D > &right) -> typename std::enable_if<!_IsProperty< T >::value &&_ModOperationHelper< T, U >::value, typename _ModOperationHelper< T, U >::type >::type |
| 取模运算 | |
| template<typename D , typename T , typename U > | |
| auto | operator== (T &&left, const PropertyBase< U, D > &right) -> typename std::enable_if<!_IsProperty< T >::value &&_EqOperationHelper< T, U >::value, typename _EqOperationHelper< T, U >::type >::type |
| 等于运算 | |
| template<typename D , typename T , typename U > | |
| auto | operator!= (T &&left, const PropertyBase< U, D > &right) -> typename std::enable_if<!_IsProperty< T >::value &&_EqOperationHelper< T, U >::value, typename _EqOperationHelper< T, U >::type >::type |
| 不等于运算 | |
| template<typename D , typename T , typename U > | |
| auto | operator< (T &&left, const PropertyBase< U, D > &right) -> typename std::enable_if<!_IsProperty< T >::value &&_LtOperationHelper< T, U >::value, typename _LtOperationHelper< T, U >::type >::type |
| 小于运算 | |
| template<typename D , typename T , typename U > | |
| auto | operator<= (T &&left, const PropertyBase< U, D > &right) -> typename std::enable_if<!_IsProperty< T >::value &&_LeOperationHelper< T, U >::value, typename _LeOperationHelper< T, U >::type >::type |
| 小于等于运算 | |
| template<typename D , typename T , typename U > | |
| auto | operator> (T &&left, const PropertyBase< U, D > &right) -> typename std::enable_if<!_IsProperty< T >::value &&_GtOperationHelper< T, U >::value, typename _GtOperationHelper< T, U >::type >::type |
| 大于运算 | |
| template<typename D , typename T , typename U > | |
| auto | operator>= (T &&left, const PropertyBase< U, D > &right) -> typename std::enable_if<!_IsProperty< T >::value &&_GeOperationHelper< T, U >::value, typename _GeOperationHelper< T, U >::type >::type |
| 大于等于运算 | |
| template<typename D , typename T , typename U > | |
| auto | operator& (T &&left, const PropertyBase< U, D > &right) -> typename std::enable_if<!_IsProperty< T >::value &&_BitAndOperationHelper< T, U >::value, typename _BitAndOperationHelper< T, U >::type >::type |
| 按位与运算 | |
| template<typename D , typename T , typename U > | |
| auto | operator| (T &&left, const PropertyBase< U, D > &right) -> typename std::enable_if<!_IsProperty< T >::value &&_BitOrOperationHelper< T, U >::value, typename _BitOrOperationHelper< T, U >::type >::type |
| 按位或运算 | |
| template<typename D , typename T , typename U > | |
| auto | operator^ (T &&left, const PropertyBase< U, D > &right) -> typename std::enable_if<!_IsProperty< T >::value &&_BitXorOperationHelper< T, U >::value, typename _BitXorOperationHelper< T, U >::type >::type |
| 按位异或运算 | |
| template<typename D , typename T , typename U > | |
| auto | operator<< (T &&left, const PropertyBase< U, D > &right) -> typename std::enable_if<!_IsProperty< T >::value &&_ShlOperationHelper< T, U >::value, typename _ShlOperationHelper< T, U >::type >::type |
| 左移运算 | |
| template<typename D , typename T , typename U > | |
| auto | operator>> (T &&left, const PropertyBase< U, D > &right) -> typename std::enable_if<!_IsProperty< T >::value &&_ShrOperationHelper< T, U >::value, typename _ShrOperationHelper< T, U >::type >::type |
| 右移运算 | |
| template<typename D , typename T , typename U > | |
| auto | operator&& (T &&left, const PropertyBase< U, D > &right) -> typename std::enable_if<!_IsProperty< T >::value &&_LogicAndOperationHelper< T, U >::value, typename _LogicAndOperationHelper< T, U >::type >::type |
| 逻辑与运算 | |
| template<typename D , typename T , typename U > | |
| auto | operator|| (T &&left, const PropertyBase< U, D > &right) -> typename std::enable_if<!_IsProperty< T >::value &&_LogicOrOperationHelper< T, U >::value, typename _LogicOrOperationHelper< T, U >::type >::type |
| 逻辑或运算 | |
| _SW_ENUM_ENABLE_BIT_OPERATIONS (LayoutUpdateCondition) | |
| 标记LayoutUpdateCondition支持位操作 | |
SimpleWindow框架的顶级命名空间,所有公共类型、控件、枚举和工具函数均定义于此。
路由事件类型
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
https://learn.microsoft.com/en-us/windows/win32/api/commdlg/ns-commdlg-choosecolora-r1
| 枚举值 | |
|---|---|
| AnyColor | Causes the dialog box to display all available colors in the set of basic colors. |
| EnableHook | Enables the hook procedure specified in the lpfnHook member of this structure. This flag is used only to initialize the dialog box. |
| EnableTemplate | The hInstance and lpTemplateName members specify a dialog box template to use in place of the default template. This flag is used only to initialize the dialog box. |
| EnableTemplateHandle | The hInstance member identifies a data block that contains a preloaded dialog box template. The system ignores the lpTemplateName member if this flag is specified. This flag is used only to initialize the dialog box. |
| FullOpen | Causes the dialog box to display the additional controls that allow the user to create custom colors. If this flag is not set, the user must click the Define Custom Color button to display the custom color controls. |
| PreventFullOpen | Disables the Define Custom Color button. |
| RgbInit | Causes the dialog box to use the color specified in the rgbResult member as the initial color selection. |
| ShowHelp | Causes the dialog box to display the Help button. The hwndOwner member must specify the window to receive the HELPMSGSTRING registered messages that the dialog box sends when the user clicks the Help button. |
| SolidColor | Causes the dialog box to display only solid colors in the set of basic colors. |
|
strong |
|
strong |
https://learn.microsoft.com/en-us/windows/win32/api/commdlg/ns-commdlg-openfilenamew
|
strong |
https://learn.microsoft.com/en-us/windows/win32/api/shlobj_core/ns-shlobj_core-browseinfoa
|
strong |
字符集
|
strong |
|
strong |
https://learn.microsoft.com/en-us/windows/win32/api/commdlg/ns-commdlg-choosefonta
| 枚举值 | |
|---|---|
| Apply | Causes the dialog box to display the Apply button. You should provide a hook procedure to process WM_COMMAND messages for the Apply button. The hook procedure can send the WM_CHOOSEFONT_GETLOGFONT message to the dialog box to retrieve the address of the structure that contains the current selections for the font. |
| ANSIOnly | This flag is obsolete. To limit font selections to all scripts except those that use the OEM or Symbol character sets, use CF_SCRIPTSONLY. To get the original CF_ANSIONLY behavior, use CF_SELECTSCRIPT and specify ANSI_CHARSET in the lfCharSet member of the LOGFONT structure pointed to by lpLogFont. |
| Both | This flag is ignored for font enumeration. Windows Vista and Windows XP/2000: Causes the dialog box to list the available printer and screen fonts. The hDC member is a handle to the device context or information context associated with the printer. This flag is a combination of the CF_SCREENFONTS and CF_PRINTERFONTS flags. |
| Effects | Causes the dialog box to display the controls that allow the user to specify strikeout, underline, and text color options. If this flag is set, you can use the rgbColors member to specify the initial text color. You can use the lfStrikeOut and lfUnderline members of the structure pointed to by lpLogFont to specify the initial settings of the strikeout and underline check boxes. ChooseFont can use these members to return the user's selections. |
| EnableHook | Enables the hook procedure specified in the lpfnHook member of this structure. |
| EnableTemplate | Indicates that the hInstance and lpTemplateName members specify a dialog box template to use in place of the default template. |
| EnableTemplateHandle | Indicates that the hInstance member identifies a data block that contains a preloaded dialog box template. The system ignores the lpTemplateName member if this flag is specified. |
| FixedPitchOnly | ChooseFont should enumerate and allow selection of only fixed-pitch fonts. |
| ForceFontExist | ChooseFont should indicate an error condition if the user attempts to select a font or style that is not listed in the dialog box. |
| InavtiveFonts | ChooseFont should additionally display fonts that are set to Hide in Fonts Control Panel. Windows Vista and Windows XP/2000: This flag is not supported until Windows 7. |
| InitToLogFontStruct | ChooseFont should use the structure pointed to by the lpLogFont member to initialize the dialog box controls. |
| LimitSize | ChooseFont should select only font sizes within the range specified by the nSizeMin and nSizeMax members. |
| NoOemFonts | Same as the CF_NOVECTORFONTS flag. |
| NoFaceSel | When using a LOGFONT structure to initialize the dialog box controls, use this flag to prevent the dialog box from displaying an initial selection for the font name combo box. This is useful when there is no single font name that applies to the text selection. |
| NoScriptSel | Disables the Script combo box. When this flag is set, the lfCharSet member of the LOGFONT structure is set to DEFAULT_CHARSET when ChooseFont returns. This flag is used only to initialize the dialog box. |
| NoSimulations | ChooseFont should not display or allow selection of font simulations. |
| NoSizeSel | When using a structure to initialize the dialog box controls, use this flag to prevent the dialog box from displaying an initial selection for the Font Size combo box. This is useful when there is no single font size that applies to the text selection. |
| NoStyleSel | When using a LOGFONT structure to initialize the dialog box controls, use this flag to prevent the dialog box from displaying an initial selection for the Font Style combo box. This is useful when there is no single font style that applies to the text selection. |
| NoVectorFonts | ChooseFont should not allow vector font selections. |
| NoVertFonts | Causes the Font dialog box to list only horizontally oriented fonts. |
| PrinterFonts | This flag is ignored for font enumeration. Windows Vista and Windows XP/2000: Causes the dialog box to list only the fonts supported by the printer associated with the device context or information context identified by the hDC member. It also causes the font type description label to appear at the bottom of the Font dialog box. |
| ScalableOnly | Specifies that ChooseFont should allow only the selection of scalable fonts. Scalable fonts include vector fonts, scalable printer fonts, TrueType fonts, and fonts scaled by other technologies. |
| ScreenFonts | This flag is ignored for font enumeration. Windows Vista and Windows XP/2000: Causes the dialog box to list only the screen fonts supported by the system. |
| ScriptsOnly | ChooseFont should allow selection of fonts for all non-OEM and Symbol character sets, as well as the ANSI character set. This supersedes the CF_ANSIONLY value. |
| SelectScript | When specified on input, only fonts with the character set identified in the lfCharSet member of the LOGFONT structure are displayed. The user will not be allowed to change the character set specified in the Scripts combo box. |
| ShowHelp | Causes the dialog box to display the Help button. The hwndOwner member must specify the window to receive the HELPMSGSTRING registered messages that the dialog box sends when the user clicks the Help button. |
| TrueTypeOnly | ChooseFont should only enumerate and allow the selection of TrueType fonts. |
| UseStyle | The lpszStyle member is a pointer to a buffer that contains style data that ChooseFont should use to initialize the Font Style combo box. When the user closes the dialog box, ChooseFont copies style data for the user's selection to this buffer. [Note] To globalize your application, you should specify the style by using the lfWeight and lfItalic members of the LOGFONT structure pointed to by lpLogFont. The style name may change depending on the system user interface language. |
| WYSIWYG | Obsolete. ChooseFont ignores this flag. Windows Vista and Windows XP/2000: ChooseFont should allow only the selection of fonts available on both the printer and the display. If this flag is specified, the CF_SCREENSHOTS and CF_PRINTERFONTS, or CF_BOTH flags should also be specified. |
|
strong |
|
strong |
输出质量
|
strong |
|
strong |
输出质量
|
strong |
|
strong |
|
strong |
NcHitTest(WM_NCHITTEST)的返回值
|
strong |
|
strong |
|
strong |
|
strong |
已知的颜色
|
strong |
通知布局更新的条件
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
路由事件类型枚举
|
strong |
滚动条事件
|
strong |
|
strong |
系统标准鼠标样式
https://learn.microsoft.com/en-us/windows/win32/menurc/about-cursors
|
strong |
系统标准图标样式
https://learn.microsoft.com/en-us/windows/win32/menurc/about-icons
| 枚举值 | |
|---|---|
| Application | Default application icon |
| Error | Error icon |
| Question | Question mark icon |
| Warning | Warning icon |
| Information | Information icon |
| WinLogo | Windows logo icon |
| Shield | Security shield icon |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
虚拟按键
|
strong |
|
strong |
包含SimpleWindow用到的一些窗口消息
|
inlinenoexcept |
比较委托和nullptr
| auto sw::operator!= | ( | T && | left, |
| const PropertyBase< U, D > & | right | ||
| ) | -> typename std::enable_if<!_IsProperty<T>::value && _EqOperationHelper<T, U>::value, typename _EqOperationHelper<T, U>::type>::type |
不等于运算
|
inlinenoexcept |
比较委托和nullptr