diff --git a/docs/_control_8h_source.html b/docs/_control_8h_source.html index 171b34dc..3301c847 100644 --- a/docs/_control_8h_source.html +++ b/docs/_control_8h_source.html @@ -117,11 +117,14 @@
24 protected:
28 void ResetHandle();
29
-
33 virtual void HandleChenged();
-
34 };
+
35 void ResetHandle(DWORD style, DWORD exStyle);
+
36
+
40 virtual void HandleChenged();
+
41 };
-
35}
+
42}
sw::Control
控件
Definition Control.h:11
+
sw::Control::ResetHandle
void ResetHandle(DWORD style, DWORD exStyle)
销毁控件句柄并重新初始化,并修改样式,该操作会创建新的句柄并设置样式、文本、字体等
sw::Control::~Control
virtual ~Control()=0
析构函数,这里用纯虚函数使该类成为抽象类
sw::Control::ResetHandle
void ResetHandle()
销毁控件句柄并重新初始化,该操作会创建新的句柄并设置样式、文本、字体等
sw::Control::HandleChenged
virtual void HandleChenged()
控件句柄发生改变时调用该函数
diff --git a/docs/_date_time_picker_8h_source.html b/docs/_date_time_picker_8h_source.html new file mode 100644 index 00000000..3a29332c --- /dev/null +++ b/docs/_date_time_picker_8h_source.html @@ -0,0 +1,170 @@ + + + + + + + +SimpleWindow: DateTimePicker.h 源文件 + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
载入中...
+
搜索中...
+
未找到
+
+
+
+
+ +
+
DateTimePicker.h
+
+
+
1#pragma once
+
2
+
3#include "Control.h"
+
4#include <commctrl.h>
+
5
+
6namespace sw
+
7{
+
11 enum class DateTimePickerFormat {
+
12 Short, // 以短格式显示日期
+
13 Long, // 以长格式显示日期
+
14 Custom, // 自定义格式
+
15 };
+
16
+
+
20 class DateTimePicker : public Control
+
21 {
+
22 private:
+
26 DateTimePickerFormat _format{DateTimePickerFormat::Short};
+
27
+
31 std::wstring _customFormat{};
+
32
+
33 public:
+ +
38
+ +
43
+ +
48
+
49 public:
+ +
54
+
60 bool GetTime(SYSTEMTIME &out);
+
61
+
67 bool SetTime(const SYSTEMTIME &time);
+
68
+
69 protected:
+
73 virtual void OnNotified(NMHDR *pNMHDR);
+
74
+
79 virtual void OnTimeChanged(NMDATETIMECHANGE *pInfo);
+
80
+
81 private:
+
86 void _SetFormat(const std::wstring &value);
+
87
+
92 void _UpdateStyle(DWORD style);
+
93 };
+
+
94}
+
控件
Definition Control.h:11
+
日期和时间选取器
Definition DateTimePicker.h:21
+
const Property< std::wstring > CustomFormat
自定义日期和时间格式字符串,空字符串表示默认格式
Definition DateTimePicker.h:47
+
virtual void OnNotified(NMHDR *pNMHDR)
父窗口接收到WM_NOTIFY后调用发出通知控件的该函数
+
DateTimePicker()
初始化DateTimePicker
+
bool SetTime(const SYSTEMTIME &time)
设置当前控件表示的时间
+
virtual void OnTimeChanged(NMDATETIMECHANGE *pInfo)
当前控件表示的时间改变时调用该函数
+
bool GetTime(SYSTEMTIME &out)
获取当前控件表示的时间
+
const Property< bool > ShowUpDownButton
是否显示上下调整按钮
Definition DateTimePicker.h:37
+
const Property< DateTimePickerFormat > Format
日期和时间格式
Definition DateTimePicker.h:42
+
属性
Definition Property.h:127
+
+
+ + + + diff --git a/docs/_routed_event_8h_source.html b/docs/_routed_event_8h_source.html index 31b20a76..c688ab3c 100644 --- a/docs/_routed_event_8h_source.html +++ b/docs/_routed_event_8h_source.html @@ -206,34 +206,37 @@
108
109 // SelectedIndex属性被改变,参数类型为sw::RoutedEventArgs
110 TabControl_SelectedIndexChanged,
-
111 };
-
112
-
113 /*================================================================================*/
-
114
-
-
118 struct RoutedEventArgs {
-
122 RoutedEventType eventType;
-
123
-
127 bool handled = false;
-
128
-
132 bool handledMsg = false;
-
133
-
137 RoutedEventArgs(RoutedEventType eventType);
-
138 };
+
111
+
112 // DateTimePicker控件的时间改变,参数类型为sw::DateTimePickerTimeChangedEventArgs
+
113 DateTimePicker_TimeChanged,
+
114 };
+
115
+
116 /*================================================================================*/
+
117
+
+ +
125 RoutedEventType eventType;
+
126
+
130 bool handled = false;
+
131
+
135 bool handledMsg = false;
+
136
+
140 RoutedEventArgs(RoutedEventType eventType);
+
141 };
-
139
-
140 /*================================================================================*/
-
141
-
142 class UIElement; // UIElement.h
-
143
-
147 using RoutedEvent = std::function<void(UIElement &, RoutedEventArgs &)>;
-
148}
+
142
+
143 /*================================================================================*/
+
144
+
145 class UIElement; // UIElement.h
+
146
+
150 using RoutedEvent = std::function<void(UIElement &, RoutedEventArgs &)>;
+
151}
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
表示界面中的元素
Definition UIElement.h:24
-
路由事件的参数
Definition RoutedEvent.h:118
-
RoutedEventType eventType
事件类型
Definition RoutedEvent.h:122
-
bool handled
事件是否已被处理,若将此字段设为true,则事件不会继续往上传递
Definition RoutedEvent.h:127
-
bool handledMsg
表示是否已处理事件所对应的Windows消息,对于部分消息将字段设为true可取消对DefaultWndProc的调用,若当前事件无对应消息则该字段无意义
Definition RoutedEvent.h:132
+
路由事件的参数
Definition RoutedEvent.h:121
+
RoutedEventType eventType
事件类型
Definition RoutedEvent.h:125
+
bool handled
事件是否已被处理,若将此字段设为true,则事件不会继续往上传递
Definition RoutedEvent.h:130
+
bool handledMsg
表示是否已处理事件所对应的Windows消息,对于部分消息将字段设为true可取消对DefaultWndProc的调用,若当前事件无对应消息则该字段无意义
Definition RoutedEvent.h:135
RoutedEventArgs(RoutedEventType eventType)
RoutedEventArgs构造函数
diff --git a/docs/_routed_event_args_8h_source.html b/docs/_routed_event_args_8h_source.html index cbe40abd..eb95dc4d 100644 --- a/docs/_routed_event_args_8h_source.html +++ b/docs/_routed_event_args_8h_source.html @@ -344,10 +344,23 @@
268 }
269 };
-
270}
+
270
+
+
274 struct DateTimePickerTimeChangedEventArgs : RoutedEventArgsOfType<DateTimePicker_TimeChanged> {
+
275
+
276 SYSTEMTIME time; // 时间的新值
+
277
+
278 DateTimePickerTimeChangedEventArgs(const SYSTEMTIME &time)
+
279 : time(time)
+
280 {
+
281 }
+
282 };
+
+
283}
sw::Dictionary
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
sw::_HasEventType
结构体模板,用于检测类型T是否含有名为EventType的静态字段
Definition RoutedEventArgs.h:36
sw::_IsTypedRoutedEventArgs
结构体模板,用于检测类型T是否包含事件类型信息
Definition RoutedEventArgs.h:50
+
sw::DateTimePickerTimeChangedEventArgs
DateTimePicker控件时间改变事件参数类型
Definition RoutedEventArgs.h:274
sw::DropFilesEventArgs
文件拖放事件参数类型
Definition RoutedEventArgs.h:198
sw::GotCharEventArgs
输入字符事件类型参数
Definition RoutedEventArgs.h:82
sw::KeyDownEventArgs
键盘按键按下事件参数类型
Definition RoutedEventArgs.h:96
@@ -362,8 +375,8 @@
sw::MouseWheelEventArgs
鼠标滚轮滚动事件参数类型
Definition RoutedEventArgs.h:138
sw::Point
表示相对于左上角的点坐标
Definition Point.h:11
sw::PositionChangedEventArgs
位置改变事件参数类型
Definition RoutedEventArgs.h:69
-
sw::RoutedEventArgs
路由事件的参数
Definition RoutedEvent.h:118
-
sw::RoutedEventArgs::eventType
RoutedEventType eventType
事件类型
Definition RoutedEvent.h:122
+
sw::RoutedEventArgs
路由事件的参数
Definition RoutedEvent.h:121
+
sw::RoutedEventArgs::eventType
RoutedEventType eventType
事件类型
Definition RoutedEvent.h:125
sw::RoutedEventArgs::RoutedEventArgs
RoutedEventArgs(RoutedEventType eventType)
RoutedEventArgs构造函数
sw::RoutedEventArgsOfType
表示特定类型路由事件的事件参数类型,继承自该类的事件参数可以用于RegisterRoutedEvent模板函数
Definition RoutedEventArgs.h:19
sw::RoutedEventArgsOfType::EventType
static constexpr RoutedEventType EventType
路由事件的类型,RegisterRoutedEvent模板函数使用此字段注册事件
Definition RoutedEventArgs.h:24
diff --git a/docs/_simple_window_8h_source.html b/docs/_simple_window_8h_source.html index 3a805002..4d6439b2 100644 --- a/docs/_simple_window_8h_source.html +++ b/docs/_simple_window_8h_source.html @@ -116,76 +116,77 @@
15#include "ContextMenu.h"
16#include "Control.h"
17#include "Cursor.h"
-
18#include "Dictionary.h"
-
19#include "Dip.h"
-
20#include "DockLayout.h"
-
21#include "DockPanel.h"
-
22#include "FillLayout.h"
-
23#include "Font.h"
-
24#include "Grid.h"
-
25#include "GridLayout.h"
-
26#include "GroupBox.h"
-
27#include "HitTestResult.h"
-
28#include "HwndHost.h"
-
29#include "ILayout.h"
-
30#include "ITag.h"
-
31#include "Icon.h"
-
32#include "IconBox.h"
-
33#include "ItemsControl.h"
-
34#include "Keys.h"
-
35#include "KnownColor.h"
-
36#include "Label.h"
-
37#include "Layer.h"
-
38#include "LayoutHost.h"
-
39#include "List.h"
-
40#include "ListBox.h"
-
41#include "ListView.h"
-
42#include "Menu.h"
-
43#include "MenuBase.h"
-
44#include "MenuItem.h"
-
45#include "MsgBox.h"
-
46#include "Panel.h"
-
47#include "PanelBase.h"
-
48#include "PasswordBox.h"
-
49#include "Path.h"
-
50#include "Point.h"
-
51#include "ProcMsg.h"
-
52#include "ProgressBar.h"
-
53#include "Property.h"
-
54#include "RadioButton.h"
-
55#include "Rect.h"
-
56#include "RoutedEvent.h"
-
57#include "RoutedEventArgs.h"
-
58#include "Screen.h"
-
59#include "ScrollEnums.h"
-
60#include "Size.h"
-
61#include "Slider.h"
-
62#include "Splitter.h"
-
63#include "StackLayout.h"
-
64#include "StackLayoutH.h"
-
65#include "StackLayoutV.h"
-
66#include "StackPanel.h"
-
67#include "StaticControl.h"
-
68#include "TabControl.h"
-
69#include "TextBox.h"
-
70#include "TextBoxBase.h"
-
71#include "Thickness.h"
-
72#include "UIElement.h"
-
73#include "UniformGrid.h"
-
74#include "UniformGridLayout.h"
-
75#include "Utils.h"
-
76#include "Window.h"
-
77#include "WndBase.h"
-
78#include "WndMsg.h"
-
79#include "WrapLayout.h"
-
80#include "WrapLayoutH.h"
-
81#include "WrapLayoutV.h"
-
82#include "WrapPanel.h"
-
83
-
84// 启用视觉样式
-
85#pragma comment(linker, "\"/manifestdependency:type='win32' \
-
86name='Microsoft.Windows.Common-Controls' version='6.0.0.0' \
-
87processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
+
18#include "DateTimePicker.h"
+
19#include "Dictionary.h"
+
20#include "Dip.h"
+
21#include "DockLayout.h"
+
22#include "DockPanel.h"
+
23#include "FillLayout.h"
+
24#include "Font.h"
+
25#include "Grid.h"
+
26#include "GridLayout.h"
+
27#include "GroupBox.h"
+
28#include "HitTestResult.h"
+
29#include "HwndHost.h"
+
30#include "ILayout.h"
+
31#include "ITag.h"
+
32#include "Icon.h"
+
33#include "IconBox.h"
+
34#include "ItemsControl.h"
+
35#include "Keys.h"
+
36#include "KnownColor.h"
+
37#include "Label.h"
+
38#include "Layer.h"
+
39#include "LayoutHost.h"
+
40#include "List.h"
+
41#include "ListBox.h"
+
42#include "ListView.h"
+
43#include "Menu.h"
+
44#include "MenuBase.h"
+
45#include "MenuItem.h"
+
46#include "MsgBox.h"
+
47#include "Panel.h"
+
48#include "PanelBase.h"
+
49#include "PasswordBox.h"
+
50#include "Path.h"
+
51#include "Point.h"
+
52#include "ProcMsg.h"
+
53#include "ProgressBar.h"
+
54#include "Property.h"
+
55#include "RadioButton.h"
+
56#include "Rect.h"
+
57#include "RoutedEvent.h"
+
58#include "RoutedEventArgs.h"
+
59#include "Screen.h"
+
60#include "ScrollEnums.h"
+
61#include "Size.h"
+
62#include "Slider.h"
+
63#include "Splitter.h"
+
64#include "StackLayout.h"
+
65#include "StackLayoutH.h"
+
66#include "StackLayoutV.h"
+
67#include "StackPanel.h"
+
68#include "StaticControl.h"
+
69#include "TabControl.h"
+
70#include "TextBox.h"
+
71#include "TextBoxBase.h"
+
72#include "Thickness.h"
+
73#include "UIElement.h"
+
74#include "UniformGrid.h"
+
75#include "UniformGridLayout.h"
+
76#include "Utils.h"
+
77#include "Window.h"
+
78#include "WndBase.h"
+
79#include "WndMsg.h"
+
80#include "WrapLayout.h"
+
81#include "WrapLayoutH.h"
+
82#include "WrapLayoutV.h"
+
83#include "WrapPanel.h"
+
84
+
85// 启用视觉样式
+
86#pragma comment(linker, "\"/manifestdependency:type='win32' \
+
87name='Microsoft.Windows.Common-Controls' version='6.0.0.0' \
+
88processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
diff --git a/docs/_u_i_element_8h_source.html b/docs/_u_i_element_8h_source.html index 1e25019e..1306f74d 100644 --- a/docs/_u_i_element_8h_source.html +++ b/docs/_u_i_element_8h_source.html @@ -541,7 +541,7 @@
sw::KeyFlags
https://learn.microsoft.com/en-us/windows/win32/inputdev/about-keyboard-input#keystroke-message-flags
Definition Keys.h:11
sw::Point
表示相对于左上角的点坐标
Definition Point.h:11
sw::Rect
表示一个矩形区域
Definition Rect.h:13
-
sw::RoutedEventArgs
路由事件的参数
Definition RoutedEvent.h:118
+
sw::RoutedEventArgs
路由事件的参数
Definition RoutedEvent.h:121
sw::Size
尺寸
Definition Size.h:11
sw::Thickness
表示矩形区域周围边框的厚度
Definition Thickness.h:10
diff --git a/docs/_wnd_base_8h_source.html b/docs/_wnd_base_8h_source.html index 2ae71f93..15942819 100644 --- a/docs/_wnd_base_8h_source.html +++ b/docs/_wnd_base_8h_source.html @@ -333,21 +333,21 @@
646
650 bool IsVisible();
651
-
655 LONG_PTR GetStyle();
+
655 DWORD GetStyle();
656
-
660 void SetStyle(LONG_PTR style);
+
660 void SetStyle(DWORD style);
661
-
666 bool GetStyle(LONG_PTR mask);
+
666 bool GetStyle(DWORD mask);
667
-
673 void SetStyle(LONG_PTR mask, bool value);
+
673 void SetStyle(DWORD mask, bool value);
674
-
678 LONG_PTR GetExtendedStyle();
+
678 DWORD GetExtendedStyle();
679
-
683 void SetExtendedStyle(LONG_PTR style);
+
683 void SetExtendedStyle(DWORD style);
684
-
689 bool GetExtendedStyle(LONG_PTR mask);
+
689 bool GetExtendedStyle(DWORD mask);
690
-
696 void SetExtendedStyle(LONG_PTR mask, bool value);
+
696 void SetExtendedStyle(DWORD mask, bool value);
697
703 Point PointToScreen(const Point &point);
704
@@ -383,22 +383,23 @@
sw::WndBase
表示一个Windows窗口,是所有窗口和控件的基类
Definition WndBase.h:26
sw::WndBase::ClientRect
const ReadOnlyProperty< sw::Rect > ClientRect
用户区尺寸
Definition WndBase.h:133
sw::WndBase::OnPaint
virtual bool OnPaint()
接收到WM_PAINT时调用该函数
-
sw::WndBase::GetExtendedStyle
bool GetExtendedStyle(LONG_PTR mask)
判断窗口是否设有指定扩展样式
+
sw::WndBase::SetExtendedStyle
void SetExtendedStyle(DWORD mask, bool value)
打开或关闭指定的扩展样式
+
sw::WndBase::SetExtendedStyle
void SetExtendedStyle(DWORD style)
设置扩展窗口样式
sw::WndBase::OnClose
virtual bool OnClose()
接收到WM_CLOSE时调用该函数
sw::WndBase::OnMouseLeftButtonDown
virtual bool OnMouseLeftButtonDown(Point mousePosition, MouseKey keyState)
接收到WM_LBUTTONDOWN时调用该函数
-
sw::WndBase::GetExtendedStyle
LONG_PTR GetExtendedStyle()
获取扩展窗口样式
sw::WndBase::OnMouseMiddleButtonUp
virtual bool OnMouseMiddleButtonUp(Point mousePosition, MouseKey keyState)
接收到WM_MBUTTONUP时调用该函数
sw::WndBase::OnNcHitTest
virtual void OnNcHitTest(const Point &testPoint, HitTestResult &result)
接收到WM_NCHITTEST后调用该函数
-
sw::WndBase::SetStyle
void SetStyle(LONG_PTR style)
设置窗口样式
sw::WndBase::OnMove
virtual bool OnMove(Point newClientPosition)
接收到WM_MOVE时调用该函数
sw::WndBase::OnNotify
virtual bool OnNotify(NMHDR *pNMHDR)
接收到WM_NOTIFY后调用该函数
sw::WndBase::Redraw
void Redraw(bool erase=false)
重画
sw::WndBase::UpdateText
void UpdateText()
更新_text字段
sw::WndBase::PointToScreen
Point PointToScreen(const Point &point)
获取用户区点在屏幕上点的位置
sw::WndBase::OnContextMenu
virtual bool OnContextMenu(bool isKeyboardMsg, Point mousePosition)
接收到WM_CONTEXTMENU后调用目标控件的该函数
+
sw::WndBase::GetExtendedStyle
bool GetExtendedStyle(DWORD mask)
判断窗口是否设有指定扩展样式
sw::WndBase::GetFontHandle
HFONT GetFontHandle()
获取字体句柄
sw::WndBase::SendMessageA
LRESULT SendMessageA(UINT uMsg, WPARAM wParam, LPARAM lParam)
发送消息(ASCII)
sw::WndBase::OnMouseMiddleButtonDown
virtual bool OnMouseMiddleButtonDown(Point mousePosition, MouseKey keyState)
接收到WM_MBUTTONDOWN时调用该函数
+
sw::WndBase::SetStyle
void SetStyle(DWORD mask, bool value)
打开或关闭指定的样式
sw::WndBase::operator!=
friend bool operator!=(const WndBase &left, const WndBase &right)
重载!=运算符,判断是否为不同引用
Definition WndBase.h:747
sw::WndBase::ClientHeight
const ReadOnlyProperty< double > ClientHeight
用户区高度
Definition WndBase.h:143
sw::WndBase::Close
void Close()
发送关闭消息
@@ -420,7 +421,6 @@
sw::WndBase::Font
const Property< sw::Font > Font
字体
Definition WndBase.h:88
sw::WndBase::IsDestroyed
const ReadOnlyProperty< bool > IsDestroyed
是否已销毁,当该值为true时不应该继续使用当前对象
Definition WndBase.h:173
sw::WndBase::DefaultWndProc
LRESULT DefaultWndProc(const ProcMsg &refMsg)
调用默认的WndProc,对于窗口则调用DefWindowProcW,控件则调用_controlOldWndProc
-
sw::WndBase::SetExtendedStyle
void SetExtendedStyle(LONG_PTR style)
设置扩展窗口样式
sw::WndBase::OnMouseLeftButtonDoubleClick
virtual bool OnMouseLeftButtonDoubleClick(Point mousePosition, MouseKey keyState)
接收到WM_LBUTTONDBLCLK时调用该函数
sw::WndBase::OnMouseRightButtonDoubleClick
virtual bool OnMouseRightButtonDoubleClick(Point mousePosition, MouseKey keyState)
接收到WM_RBUTTONDBLCLK时调用该函数
sw::WndBase::SetParent
virtual bool SetParent(WndBase *parent)
设置父窗口
@@ -439,16 +439,15 @@
sw::WndBase::OnEraseBackground
virtual bool OnEraseBackground(int &result)
接收到WM_ERASEBKGND时调用该函数
sw::WndBase::OnEnabledChanged
virtual bool OnEnabledChanged(bool newValue)
接收到WM_ENABLE时调用该函数
sw::WndBase::Rect
const Property< sw::Rect > Rect
位置和尺寸
Definition WndBase.h:108
-
sw::WndBase::GetStyle
LONG_PTR GetStyle()
获取窗口样式
sw::WndBase::Parent
const ReadOnlyProperty< WndBase * > Parent
父窗口
Definition WndBase.h:168
sw::WndBase::OnCreate
virtual bool OnCreate()
接收到WM_CREATE时调用该函数
sw::WndBase::Visible
const Property< bool > Visible
窗口或控件是否可见
Definition WndBase.h:153
sw::WndBase::WndProc
virtual LRESULT WndProc(const ProcMsg &refMsg)
对WndProc的封装
sw::WndBase::NcHitTest
HitTestResult NcHitTest(const Point &testPoint)
测试指定点在窗口的哪一部分
sw::WndBase::GetText
virtual std::wstring & GetText()
获取窗口文本
-
sw::WndBase::SetStyle
void SetStyle(LONG_PTR mask, bool value)
打开或关闭指定的样式
sw::WndBase::operator==
friend bool operator==(const WndBase &left, const WndBase &right)
重载==运算符,判断是否为同一个引用
Definition WndBase.h:739
sw::WndBase::OnAcceleratorCommand
virtual void OnAcceleratorCommand(int id)
当WM_COMMAND接收到快捷键命令时调用该函数
+
sw::WndBase::GetStyle
DWORD GetStyle()
获取窗口样式
sw::WndBase::ClientWidth
const ReadOnlyProperty< double > ClientWidth
用户区宽度
Definition WndBase.h:138
sw::WndBase::OnDestroy
virtual bool OnDestroy()
接收到WM_DESTROY时调用该函数
sw::WndBase::GetWndBase
static WndBase * GetWndBase(HWND hwnd)
通过窗口句柄获取WndBase
@@ -460,7 +459,6 @@
sw::WndBase::OnSize
virtual bool OnSize(Size newClientSize)
接收到WM_SIZE时调用该函数
sw::WndBase::OnMouseLeave
virtual bool OnMouseLeave()
接收到WM_MOUSELEAVE时调用该函数
sw::WndBase::OnSetCursor
virtual bool OnSetCursor(HWND hwnd, HitTestResult hitTest, int message, bool &result)
接收到WM_SETCURSOR消息时调用该函数
-
sw::WndBase::SetExtendedStyle
void SetExtendedStyle(LONG_PTR mask, bool value)
打开或关闭指定的扩展样式
sw::WndBase::Update
void Update()
该函数调用UpdateWindow
sw::WndBase::SetText
virtual void SetText(const std::wstring &value)
调用SetWindowTextW设置窗口文本
sw::WndBase::Handle
const ReadOnlyProperty< HWND > Handle
窗口句柄
Definition WndBase.h:83
@@ -476,15 +474,17 @@
sw::WndBase::OnMouseLeftButtonUp
virtual bool OnMouseLeftButtonUp(Point mousePosition, MouseKey keyState)
接收到WM_LBUTTONUP时调用该函数
sw::WndBase::OnEndPaint
virtual void OnEndPaint()
在OnPaint函数完成之后调用该函数
sw::WndBase::OnTextChanged
virtual void OnTextChanged()
Text属性更改时调用此函数
-
sw::WndBase::GetStyle
bool GetStyle(LONG_PTR mask)
判断窗口是否设有指定样式
sw::WndBase::OnMouseWheel
virtual bool OnMouseWheel(int wheelDelta, Point mousePosition, MouseKey keyState)
接收到WM_MOUSEWHEEL时调用该函数
sw::WndBase::Show
void Show(int nCmdShow)
该函数调用ShowWindow
+
sw::WndBase::GetStyle
bool GetStyle(DWORD mask)
判断窗口是否设有指定样式
sw::WndBase::OnKeyDown
virtual bool OnKeyDown(VirtualKey key, KeyFlags flags)
接收到WM_KEYDOWN时调用该函数
sw::WndBase::OnMouseRightButtonUp
virtual bool OnMouseRightButtonUp(Point mousePosition, MouseKey keyState)
接收到WM_RBUTTONUP时调用该函数
sw::WndBase::VisibleChanged
virtual void VisibleChanged(bool newVisible)
Visible属性改变时调用此函数
sw::WndBase::OnKeyUp
virtual bool OnKeyUp(VirtualKey key, KeyFlags flags)
接收到WM_KEYUP时调用该函数
+
sw::WndBase::GetExtendedStyle
DWORD GetExtendedStyle()
获取扩展窗口样式
sw::WndBase::OnHorizontalScroll
virtual bool OnHorizontalScroll(int event, int pos)
接收到WM_HSCROLL时调用目标控件的该函数
sw::WndBase::UpdateFont
void UpdateFont()
更新字体
+
sw::WndBase::SetStyle
void SetStyle(DWORD style)
设置窗口样式
sw::WndBase::OnMenuCommand
virtual void OnMenuCommand(int id)
当WM_COMMAND接收到菜单命令时调用该函数
sw::KeyFlags
https://learn.microsoft.com/en-us/windows/win32/inputdev/about-keyboard-input#keystroke-message-flags
Definition Keys.h:11
sw::Point
表示相对于左上角的点坐标
Definition Point.h:11
diff --git a/docs/annotated.html b/docs/annotated.html index e655bfc6..9e4648c6 100644 --- a/docs/annotated.html +++ b/docs/annotated.html @@ -116,94 +116,96 @@  CContextMenu上下文菜单  CControl控件  CCursorHelper用于获取鼠标句柄的工具类 - CDictionary字典类,内部维护了一个指向std::map的智能指针 - CDip用于处理设备独立像素(dip)与屏幕像素之间的转换 - CDockLayout停靠布局 - CDockLayoutTag停靠布局标记 - CDockPanel停靠面板 - CDropFilesEventArgs文件拖放事件参数类型 - CFillLayout一种将全部元素都铺满的布局,一般用于在只有一个子元素的时候将该元素铺满整个可用区域 - CFillRemainGridColumn填充剩余宽度的列 - CFillRemainGridRow填充剩余高度的行 - CFixSizeGridColumn固定宽度的列 - CFixSizeGridRow固定高度的行 - CFont字体类 - CGotCharEventArgs输入字符事件类型参数 - CGrid由列和行组成的灵活的网格区域 - CGridColumn网格中的列信息 - CGridLayout网格布局方式 - CGridLayoutTag网格布局方式的布局标记 - CGridRow网格中的行信息 - CGroupBox组合框 - CHwndHost将Win32 window托管为SimpleWindow控件 - CIconBox用于显示一个图标的控件 - CIconHelper用于获取图标句柄的工具类 - CILayout布局接口 - CITagTag接口 - CItemsControl表示可用于呈现一组项的控件 - CKeyDownEventArgs键盘按键按下事件参数类型 - CKeyFlagsHttps://learn.microsoft.com/en-us/windows/win32/inputdev/about-keyboard-input#keystroke-message-flags - CKeyUpEventArgs键盘按键抬起事件参数类型 - CLabel标签 - CLayer表示可以设置布局方式的元素类型,如窗口、面板等 - CLayoutHost用于托管元素的布局方式的对象类型,是所有布局方式类型的基类 - CList列表类,内部维护了一个指向std::vector的智能指针 - CListBox列表框 - CListView列表视图 - CListViewCheckStateChangedEventArgs列表视图某个复选框选中状态改变的事件参数类型 - CListViewColumn列表视图的列信息 - CListViewHeaderClickedEventArgs列表视图的列标题单击与双击事件参数类型 - CListViewItemClickedEventArgs列表视图项单击与双击事件参数类型 - CMenu菜单 - CMenuBase菜单类型的基类 - CMenuItem菜单项 - CMouseButtonDownEventArgs鼠标按键按下事件参数类型 - CMouseButtonUpEventArgs鼠标按键抬起事件参数类型 - CMouseMoveEventArgs鼠标移动事件参数类型 - CMouseWheelEventArgs鼠标滚轮滚动事件参数类型 - CMsgBox消息框类 - CPanel面板 - CPanelBase面板类型的基类 - CPasswordBox密码框 - CPath用于处理文件路径的工具类 - CPoint表示相对于左上角的点坐标 - CPositionChangedEventArgs位置改变事件参数类型 - CProcMsg对Windows窗口消息的封装 - CProgressBar进度条控件 - CProperty属性 - CRadioButton单选框 - CReadOnlyProperty只读属性 - CRect表示一个矩形区域 - CRoutedEventArgs路由事件的参数 - CRoutedEventArgsOfType表示特定类型路由事件的事件参数类型,继承自该类的事件参数可以用于RegisterRoutedEvent模板函数 - CScreen屏幕相关 - CScrollingEventArgs窗口/面板滚动条滚动事件参数类型 - CShowContextMenuEventArgs显示用户自定义上下文菜单的事件参数类型 - CSize尺寸 - CSizeChangedEventArgs尺寸改变事件参数类型 - CSlider滑块控件 - CSplitter分隔条 - CStackLayout堆叠布局 - CStackLayoutH横向堆叠布局 - CStackLayoutV纵向堆叠布局 - CStackPanel堆叠面板 - CStaticControl静态控件 - CTabControl标签页控件 - CTextBox编辑框 - CTextBoxBase窗口类名为EDIT的控件类型的基类 - CThickness表示矩形区域周围边框的厚度 - CUIElement表示界面中的元素 - CUniformGrid提供一种在网格(网格中的所有单元格都具有相同的大小)中排列内容的方法 - CUniformGridLayout均匀大小网格布局 - CUtils工具类 - CWindow窗口 - CWindowClosingEventArgs窗口正在关闭事件参数类型 - CWndBase表示一个Windows窗口,是所有窗口和控件的基类 - CWrapLayout自动换行布局 - CWrapLayoutH横向自动换行布局 - CWrapLayoutV纵向自动换行布局 - CWrapPanel自动换行面板 - CWriteOnlyProperty只写属性 + CDateTimePicker日期和时间选取器 + CDateTimePickerTimeChangedEventArgsDateTimePicker控件时间改变事件参数类型 + CDictionary字典类,内部维护了一个指向std::map的智能指针 + CDip用于处理设备独立像素(dip)与屏幕像素之间的转换 + CDockLayout停靠布局 + CDockLayoutTag停靠布局标记 + CDockPanel停靠面板 + CDropFilesEventArgs文件拖放事件参数类型 + CFillLayout一种将全部元素都铺满的布局,一般用于在只有一个子元素的时候将该元素铺满整个可用区域 + CFillRemainGridColumn填充剩余宽度的列 + CFillRemainGridRow填充剩余高度的行 + CFixSizeGridColumn固定宽度的列 + CFixSizeGridRow固定高度的行 + CFont字体类 + CGotCharEventArgs输入字符事件类型参数 + CGrid由列和行组成的灵活的网格区域 + CGridColumn网格中的列信息 + CGridLayout网格布局方式 + CGridLayoutTag网格布局方式的布局标记 + CGridRow网格中的行信息 + CGroupBox组合框 + CHwndHost将Win32 window托管为SimpleWindow控件 + CIconBox用于显示一个图标的控件 + CIconHelper用于获取图标句柄的工具类 + CILayout布局接口 + CITagTag接口 + CItemsControl表示可用于呈现一组项的控件 + CKeyDownEventArgs键盘按键按下事件参数类型 + CKeyFlagsHttps://learn.microsoft.com/en-us/windows/win32/inputdev/about-keyboard-input#keystroke-message-flags + CKeyUpEventArgs键盘按键抬起事件参数类型 + CLabel标签 + CLayer表示可以设置布局方式的元素类型,如窗口、面板等 + CLayoutHost用于托管元素的布局方式的对象类型,是所有布局方式类型的基类 + CList列表类,内部维护了一个指向std::vector的智能指针 + CListBox列表框 + CListView列表视图 + CListViewCheckStateChangedEventArgs列表视图某个复选框选中状态改变的事件参数类型 + CListViewColumn列表视图的列信息 + CListViewHeaderClickedEventArgs列表视图的列标题单击与双击事件参数类型 + CListViewItemClickedEventArgs列表视图项单击与双击事件参数类型 + CMenu菜单 + CMenuBase菜单类型的基类 + CMenuItem菜单项 + CMouseButtonDownEventArgs鼠标按键按下事件参数类型 + CMouseButtonUpEventArgs鼠标按键抬起事件参数类型 + CMouseMoveEventArgs鼠标移动事件参数类型 + CMouseWheelEventArgs鼠标滚轮滚动事件参数类型 + CMsgBox消息框类 + CPanel面板 + CPanelBase面板类型的基类 + CPasswordBox密码框 + CPath用于处理文件路径的工具类 + CPoint表示相对于左上角的点坐标 + CPositionChangedEventArgs位置改变事件参数类型 + CProcMsg对Windows窗口消息的封装 + CProgressBar进度条控件 + CProperty属性 + CRadioButton单选框 + CReadOnlyProperty只读属性 + CRect表示一个矩形区域 + CRoutedEventArgs路由事件的参数 + CRoutedEventArgsOfType表示特定类型路由事件的事件参数类型,继承自该类的事件参数可以用于RegisterRoutedEvent模板函数 + CScreen屏幕相关 + CScrollingEventArgs窗口/面板滚动条滚动事件参数类型 + CShowContextMenuEventArgs显示用户自定义上下文菜单的事件参数类型 + CSize尺寸 + CSizeChangedEventArgs尺寸改变事件参数类型 + CSlider滑块控件 + CSplitter分隔条 + CStackLayout堆叠布局 + CStackLayoutH横向堆叠布局 + CStackLayoutV纵向堆叠布局 + CStackPanel堆叠面板 + CStaticControl静态控件 + CTabControl标签页控件 + CTextBox编辑框 + CTextBoxBase窗口类名为EDIT的控件类型的基类 + CThickness表示矩形区域周围边框的厚度 + CUIElement表示界面中的元素 + CUniformGrid提供一种在网格(网格中的所有单元格都具有相同的大小)中排列内容的方法 + CUniformGridLayout均匀大小网格布局 + CUtils工具类 + CWindow窗口 + CWindowClosingEventArgs窗口正在关闭事件参数类型 + CWndBase表示一个Windows窗口,是所有窗口和控件的基类 + CWrapLayout自动换行布局 + CWrapLayoutH横向自动换行布局 + CWrapLayoutV纵向自动换行布局 + CWrapPanel自动换行面板 + CWriteOnlyProperty只写属性 diff --git a/docs/annotated_dup.js b/docs/annotated_dup.js index 1b8e1c19..1e1dc1f4 100644 --- a/docs/annotated_dup.js +++ b/docs/annotated_dup.js @@ -20,6 +20,8 @@ var annotated_dup = [ "ContextMenu", "classsw_1_1_context_menu.html", "classsw_1_1_context_menu" ], [ "Control", "classsw_1_1_control.html", "classsw_1_1_control" ], [ "CursorHelper", "classsw_1_1_cursor_helper.html", null ], + [ "DateTimePicker", "classsw_1_1_date_time_picker.html", "classsw_1_1_date_time_picker" ], + [ "DateTimePickerTimeChangedEventArgs", "structsw_1_1_date_time_picker_time_changed_event_args.html", null ], [ "Dictionary", "classsw_1_1_dictionary.html", "classsw_1_1_dictionary" ], [ "Dip", "classsw_1_1_dip.html", null ], [ "DockLayout", "classsw_1_1_dock_layout.html", "classsw_1_1_dock_layout" ], diff --git a/docs/classes.html b/docs/classes.html index 4b6266e8..a8b587c7 100644 --- a/docs/classes.html +++ b/docs/classes.html @@ -107,7 +107,7 @@
Canvas (sw)
CanvasLayout (sw)
CanvasLayoutTag (sw)
CheckableButton (sw)
CheckBox (sw)
Color (sw)
ComboBox (sw)
ContextMenu (sw)
Control (sw)
CursorHelper (sw)
D
-
Dictionary (sw)
Dip (sw)
DockLayout (sw)
DockLayoutTag (sw)
DockPanel (sw)
DropFilesEventArgs (sw)
+
DateTimePicker (sw)
DateTimePickerTimeChangedEventArgs (sw)
Dictionary (sw)
Dip (sw)
DockLayout (sw)
DockLayoutTag (sw)
DockPanel (sw)
DropFilesEventArgs (sw)
F
FillLayout (sw)
FillRemainGridColumn (sw)
FillRemainGridRow (sw)
FixSizeGridColumn (sw)
FixSizeGridRow (sw)
Font (sw)
diff --git a/docs/classsw_1_1_bmp_box-members.html b/docs/classsw_1_1_bmp_box-members.html index e76b281d..cf2e9f12 100644 --- a/docs/classsw_1_1_bmp_box-members.html +++ b/docs/classsw_1_1_bmp_box-members.html @@ -132,8 +132,8 @@ GetChildLayoutCount() overridesw::UIElementvirtual GetChildRightmost(bool update)sw::UIElementprotected GetDesireSize() overridesw::UIElementvirtual - GetExtendedStyle()sw::WndBase - GetExtendedStyle(LONG_PTR mask)sw::WndBase + GetExtendedStyle()sw::WndBase + GetExtendedStyle(DWORD mask)sw::WndBase GetFontHandle()sw::WndBase GetLayoutTag() overridesw::UIElementvirtual GetNextElement()sw::UIElement @@ -141,8 +141,8 @@ GetRealBackColor()sw::UIElement GetRealTextColor()sw::UIElement GetRootElement()sw::UIElement - GetStyle()sw::WndBase - GetStyle(LONG_PTR mask)sw::WndBase + GetStyle()sw::WndBase + GetStyle(DWORD mask)sw::WndBase GetTag() overridesw::UIElementvirtual GetText()sw::WndBaseprotectedvirtual GetWndBase(HWND hwnd)sw::WndBasestatic @@ -244,51 +244,52 @@ RemoveChildAt(int index)sw::UIElement ResetCursor()sw::UIElement ResetHandle()sw::Controlprotected - SendMessageA(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase - SendMessageW(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase - SetAlignment(sw::HorizontalAlignment horz, sw::VerticalAlignment vert)sw::UIElement - SetBackColor(Color color, bool redraw)sw::UIElementprotectedvirtual - SetCursor(HCURSOR hCursor)sw::UIElement - SetCursor(StandardCursor cursor)sw::UIElement - SetDesireSize(const Size &size) overridesw::UIElementvirtual - SetExtendedStyle(LONG_PTR style)sw::WndBase - SetExtendedStyle(LONG_PTR mask, bool value)sw::WndBase - SetNextTabStopFocus()sw::UIElementprotected - SetParent(WndBase *parent) overridesw::UIElementprotectedvirtual - SetStyle(LONG_PTR style)sw::WndBase - SetStyle(LONG_PTR mask, bool value)sw::WndBase - SetTag(uint64_t tag) overridesw::UIElementvirtual - SetText(const std::wstring &value)sw::WndBaseprotectedvirtual - SetTextColor(Color color, bool redraw)sw::UIElementprotectedvirtual - Show(int nCmdShow)sw::WndBase - ShowContextMenu(const Point &point)sw::UIElement - SizeModesw::BmpBox - SizeToImage()sw::BmpBox - StaticControl()sw::StaticControl - TabStopsw::UIElement - Tagsw::UIElement - Textsw::WndBase - TextColorsw::UIElement - Topsw::WndBase - Transparentsw::UIElement - UIElement()sw::UIElementprotected - UnregisterRoutedEvent(RoutedEventType eventType)sw::UIElement - Update()sw::WndBase - UpdateChildrenZOrder()sw::UIElementprotected - UpdateFont()sw::WndBase - UpdateSiblingsZOrder()sw::UIElementprotected - UpdateText()sw::WndBaseprotected - VerticalAlignmentsw::UIElement - Visiblesw::WndBase - VisibleChanged(bool newVisible) overridesw::UIElementprotectedvirtual - Widthsw::WndBase - WndBase()sw::WndBaseprotected - WndBase(const WndBase &)=delete (定义于 sw::WndBase)sw::WndBaseprotected - WndBase(WndBase &&)=delete (定义于 sw::WndBase)sw::WndBaseprotected - WndProc(const ProcMsg &refMsg)sw::WndBaseprotectedvirtual - ~Control()=0sw::Controlpure virtual - ~UIElement()=0sw::UIElementpure virtual - ~WndBase()=0sw::WndBasepure virtual + ResetHandle(DWORD style, DWORD exStyle)sw::Controlprotected + SendMessageA(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase + SendMessageW(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase + SetAlignment(sw::HorizontalAlignment horz, sw::VerticalAlignment vert)sw::UIElement + SetBackColor(Color color, bool redraw)sw::UIElementprotectedvirtual + SetCursor(HCURSOR hCursor)sw::UIElement + SetCursor(StandardCursor cursor)sw::UIElement + SetDesireSize(const Size &size) overridesw::UIElementvirtual + SetExtendedStyle(DWORD style)sw::WndBase + SetExtendedStyle(DWORD mask, bool value)sw::WndBase + SetNextTabStopFocus()sw::UIElementprotected + SetParent(WndBase *parent) overridesw::UIElementprotectedvirtual + SetStyle(DWORD style)sw::WndBase + SetStyle(DWORD mask, bool value)sw::WndBase + SetTag(uint64_t tag) overridesw::UIElementvirtual + SetText(const std::wstring &value)sw::WndBaseprotectedvirtual + SetTextColor(Color color, bool redraw)sw::UIElementprotectedvirtual + Show(int nCmdShow)sw::WndBase + ShowContextMenu(const Point &point)sw::UIElement + SizeModesw::BmpBox + SizeToImage()sw::BmpBox + StaticControl()sw::StaticControl + TabStopsw::UIElement + Tagsw::UIElement + Textsw::WndBase + TextColorsw::UIElement + Topsw::WndBase + Transparentsw::UIElement + UIElement()sw::UIElementprotected + UnregisterRoutedEvent(RoutedEventType eventType)sw::UIElement + Update()sw::WndBase + UpdateChildrenZOrder()sw::UIElementprotected + UpdateFont()sw::WndBase + UpdateSiblingsZOrder()sw::UIElementprotected + UpdateText()sw::WndBaseprotected + VerticalAlignmentsw::UIElement + Visiblesw::WndBase + VisibleChanged(bool newVisible) overridesw::UIElementprotectedvirtual + Widthsw::WndBase + WndBase()sw::WndBaseprotected + WndBase(const WndBase &)=delete (定义于 sw::WndBase)sw::WndBaseprotected + WndBase(WndBase &&)=delete (定义于 sw::WndBase)sw::WndBaseprotected + WndProc(const ProcMsg &refMsg)sw::WndBaseprotectedvirtual + ~Control()=0sw::Controlpure virtual + ~UIElement()=0sw::UIElementpure virtual + ~WndBase()=0sw::WndBasepure virtual diff --git a/docs/classsw_1_1_bmp_box.html b/docs/classsw_1_1_bmp_box.html index ea095da2..d13e9eaa 100644 --- a/docs/classsw_1_1_bmp_box.html +++ b/docs/classsw_1_1_bmp_box.html @@ -321,34 +321,34 @@ bool IsVisible ()  判断当前对象在界面中是否可视,与Visible属性不同的是该函数返回值会受父窗口的影响
  - -LONG_PTR GetStyle () - 获取窗口样式
-  - -void SetStyle (LONG_PTR style) - 设置窗口样式
-  -bool GetStyle (LONG_PTR mask) - 判断窗口是否设有指定样式
-  -void SetStyle (LONG_PTR mask, bool value) - 打开或关闭指定的样式
-  - -LONG_PTR GetExtendedStyle () - 获取扩展窗口样式
-  - -void SetExtendedStyle (LONG_PTR style) - 设置扩展窗口样式
-  -bool GetExtendedStyle (LONG_PTR mask) - 判断窗口是否设有指定扩展样式
-  -void SetExtendedStyle (LONG_PTR mask, bool value) - 打开或关闭指定的扩展样式
-  + +DWORD GetStyle () + 获取窗口样式
+  + +void SetStyle (DWORD style) + 设置窗口样式
+  +bool GetStyle (DWORD mask) + 判断窗口是否设有指定样式
+  +void SetStyle (DWORD mask, bool value) + 打开或关闭指定的样式
+  + +DWORD GetExtendedStyle () + 获取扩展窗口样式
+  + +void SetExtendedStyle (DWORD style) + 设置扩展窗口样式
+  +bool GetExtendedStyle (DWORD mask) + 判断窗口是否设有指定扩展样式
+  +void SetExtendedStyle (DWORD mask, bool value) + 打开或关闭指定的扩展样式
Point PointToScreen (const Point &point)  获取用户区点在屏幕上点的位置
  @@ -548,6 +548,9 @@ void ResetHandle ()  销毁控件句柄并重新初始化,该操作会创建新的句柄并设置样式、文本、字体等
  +void ResetHandle (DWORD style, DWORD exStyle) + 销毁控件句柄并重新初始化,并修改样式,该操作会创建新的句柄并设置样式、文本、字体等
virtual void HandleChenged ()  控件句柄发生改变时调用该函数
diff --git a/docs/classsw_1_1_button-members.html b/docs/classsw_1_1_button-members.html index f88f7c6d..d5faea9f 100644 --- a/docs/classsw_1_1_button-members.html +++ b/docs/classsw_1_1_button-members.html @@ -131,8 +131,8 @@ GetChildLayoutCount() overridesw::UIElementvirtual GetChildRightmost(bool update)sw::UIElementprotected GetDesireSize() overridesw::UIElementvirtual - GetExtendedStyle()sw::WndBase - GetExtendedStyle(LONG_PTR mask)sw::WndBase + GetExtendedStyle()sw::WndBase + GetExtendedStyle(DWORD mask)sw::WndBase GetFontHandle()sw::WndBase GetLayoutTag() overridesw::UIElementvirtual GetNextElement()sw::UIElement @@ -140,8 +140,8 @@ GetRealBackColor()sw::UIElement GetRealTextColor()sw::UIElement GetRootElement()sw::UIElement - GetStyle()sw::WndBase - GetStyle(LONG_PTR mask)sw::WndBase + GetStyle()sw::WndBase + GetStyle(DWORD mask)sw::WndBase GetTag() overridesw::UIElementvirtual GetText()sw::WndBaseprotectedvirtual GetWndBase(HWND hwnd)sw::WndBasestatic @@ -242,49 +242,50 @@ RemoveChildAt(int index)sw::UIElement ResetCursor()sw::UIElement ResetHandle()sw::Controlprotected - SendMessageA(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase - SendMessageW(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase - SetAlignment(sw::HorizontalAlignment horz, sw::VerticalAlignment vert)sw::UIElement - SetBackColor(Color color, bool redraw)sw::UIElementprotectedvirtual - SetCursor(HCURSOR hCursor)sw::UIElement - SetCursor(StandardCursor cursor)sw::UIElement - SetDesireSize(const Size &size) overridesw::UIElementvirtual - SetExtendedStyle(LONG_PTR style)sw::WndBase - SetExtendedStyle(LONG_PTR mask, bool value)sw::WndBase - SetNextTabStopFocus()sw::UIElementprotected - SetParent(WndBase *parent) overridesw::UIElementprotectedvirtual - SetStyle(LONG_PTR style)sw::WndBase - SetStyle(LONG_PTR mask, bool value)sw::WndBase - SetTag(uint64_t tag) overridesw::UIElementvirtual - SetText(const std::wstring &value)sw::WndBaseprotectedvirtual - SetTextColor(Color color, bool redraw)sw::UIElementprotectedvirtual - Show(int nCmdShow)sw::WndBase - ShowContextMenu(const Point &point)sw::UIElement - TabStopsw::UIElement - Tagsw::UIElement - Textsw::WndBase - TextColorsw::UIElement - Topsw::WndBase - Transparentsw::UIElement - UIElement()sw::UIElementprotected - UnregisterRoutedEvent(RoutedEventType eventType)sw::UIElement - Update()sw::WndBase - UpdateChildrenZOrder()sw::UIElementprotected - UpdateFont()sw::WndBase - UpdateSiblingsZOrder()sw::UIElementprotected - UpdateText()sw::WndBaseprotected - VerticalAlignmentsw::UIElement - Visiblesw::WndBase - VisibleChanged(bool newVisible) overridesw::UIElementprotectedvirtual - Widthsw::WndBase - WndBase()sw::WndBaseprotected - WndBase(const WndBase &)=delete (定义于 sw::WndBase)sw::WndBaseprotected - WndBase(WndBase &&)=delete (定义于 sw::WndBase)sw::WndBaseprotected - WndProc(const ProcMsg &refMsg)sw::WndBaseprotectedvirtual - ~ButtonBase()=0sw::ButtonBasepure virtual - ~Control()=0sw::Controlpure virtual - ~UIElement()=0sw::UIElementpure virtual - ~WndBase()=0sw::WndBasepure virtual + ResetHandle(DWORD style, DWORD exStyle)sw::Controlprotected + SendMessageA(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase + SendMessageW(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase + SetAlignment(sw::HorizontalAlignment horz, sw::VerticalAlignment vert)sw::UIElement + SetBackColor(Color color, bool redraw)sw::UIElementprotectedvirtual + SetCursor(HCURSOR hCursor)sw::UIElement + SetCursor(StandardCursor cursor)sw::UIElement + SetDesireSize(const Size &size) overridesw::UIElementvirtual + SetExtendedStyle(DWORD style)sw::WndBase + SetExtendedStyle(DWORD mask, bool value)sw::WndBase + SetNextTabStopFocus()sw::UIElementprotected + SetParent(WndBase *parent) overridesw::UIElementprotectedvirtual + SetStyle(DWORD style)sw::WndBase + SetStyle(DWORD mask, bool value)sw::WndBase + SetTag(uint64_t tag) overridesw::UIElementvirtual + SetText(const std::wstring &value)sw::WndBaseprotectedvirtual + SetTextColor(Color color, bool redraw)sw::UIElementprotectedvirtual + Show(int nCmdShow)sw::WndBase + ShowContextMenu(const Point &point)sw::UIElement + TabStopsw::UIElement + Tagsw::UIElement + Textsw::WndBase + TextColorsw::UIElement + Topsw::WndBase + Transparentsw::UIElement + UIElement()sw::UIElementprotected + UnregisterRoutedEvent(RoutedEventType eventType)sw::UIElement + Update()sw::WndBase + UpdateChildrenZOrder()sw::UIElementprotected + UpdateFont()sw::WndBase + UpdateSiblingsZOrder()sw::UIElementprotected + UpdateText()sw::WndBaseprotected + VerticalAlignmentsw::UIElement + Visiblesw::WndBase + VisibleChanged(bool newVisible) overridesw::UIElementprotectedvirtual + Widthsw::WndBase + WndBase()sw::WndBaseprotected + WndBase(const WndBase &)=delete (定义于 sw::WndBase)sw::WndBaseprotected + WndBase(WndBase &&)=delete (定义于 sw::WndBase)sw::WndBaseprotected + WndProc(const ProcMsg &refMsg)sw::WndBaseprotectedvirtual + ~ButtonBase()=0sw::ButtonBasepure virtual + ~Control()=0sw::Controlpure virtual + ~UIElement()=0sw::UIElementpure virtual + ~WndBase()=0sw::WndBasepure virtual diff --git a/docs/classsw_1_1_button.html b/docs/classsw_1_1_button.html index 0306538c..89ecdfd9 100644 --- a/docs/classsw_1_1_button.html +++ b/docs/classsw_1_1_button.html @@ -306,34 +306,34 @@ bool IsVisible ()  判断当前对象在界面中是否可视,与Visible属性不同的是该函数返回值会受父窗口的影响
  - -LONG_PTR GetStyle () - 获取窗口样式
-  - -void SetStyle (LONG_PTR style) - 设置窗口样式
-  -bool GetStyle (LONG_PTR mask) - 判断窗口是否设有指定样式
-  -void SetStyle (LONG_PTR mask, bool value) - 打开或关闭指定的样式
-  - -LONG_PTR GetExtendedStyle () - 获取扩展窗口样式
-  - -void SetExtendedStyle (LONG_PTR style) - 设置扩展窗口样式
-  -bool GetExtendedStyle (LONG_PTR mask) - 判断窗口是否设有指定扩展样式
-  -void SetExtendedStyle (LONG_PTR mask, bool value) - 打开或关闭指定的扩展样式
-  + +DWORD GetStyle () + 获取窗口样式
+  + +void SetStyle (DWORD style) + 设置窗口样式
+  +bool GetStyle (DWORD mask) + 判断窗口是否设有指定样式
+  +void SetStyle (DWORD mask, bool value) + 打开或关闭指定的样式
+  + +DWORD GetExtendedStyle () + 获取扩展窗口样式
+  + +void SetExtendedStyle (DWORD style) + 设置扩展窗口样式
+  +bool GetExtendedStyle (DWORD mask) + 判断窗口是否设有指定扩展样式
+  +void SetExtendedStyle (DWORD mask, bool value) + 打开或关闭指定的扩展样式
Point PointToScreen (const Point &point)  获取用户区点在屏幕上点的位置
  @@ -395,6 +395,9 @@ void ResetHandle ()  销毁控件句柄并重新初始化,该操作会创建新的句柄并设置样式、文本、字体等
  +void ResetHandle (DWORD style, DWORD exStyle) + 销毁控件句柄并重新初始化,并修改样式,该操作会创建新的句柄并设置样式、文本、字体等
virtual void HandleChenged ()  控件句柄发生改变时调用该函数
diff --git a/docs/classsw_1_1_button_base-members.html b/docs/classsw_1_1_button_base-members.html index cc68bbfc..7e095570 100644 --- a/docs/classsw_1_1_button_base-members.html +++ b/docs/classsw_1_1_button_base-members.html @@ -130,8 +130,8 @@ GetChildLayoutCount() overridesw::UIElementvirtual GetChildRightmost(bool update)sw::UIElementprotected GetDesireSize() overridesw::UIElementvirtual - GetExtendedStyle()sw::WndBase - GetExtendedStyle(LONG_PTR mask)sw::WndBase + GetExtendedStyle()sw::WndBase + GetExtendedStyle(DWORD mask)sw::WndBase GetFontHandle()sw::WndBase GetLayoutTag() overridesw::UIElementvirtual GetNextElement()sw::UIElement @@ -139,8 +139,8 @@ GetRealBackColor()sw::UIElement GetRealTextColor()sw::UIElement GetRootElement()sw::UIElement - GetStyle()sw::WndBase - GetStyle(LONG_PTR mask)sw::WndBase + GetStyle()sw::WndBase + GetStyle(DWORD mask)sw::WndBase GetTag() overridesw::UIElementvirtual GetText()sw::WndBaseprotectedvirtual GetWndBase(HWND hwnd)sw::WndBasestatic @@ -241,49 +241,50 @@ RemoveChildAt(int index)sw::UIElement ResetCursor()sw::UIElement ResetHandle()sw::Controlprotected - SendMessageA(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase - SendMessageW(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase - SetAlignment(sw::HorizontalAlignment horz, sw::VerticalAlignment vert)sw::UIElement - SetBackColor(Color color, bool redraw)sw::UIElementprotectedvirtual - SetCursor(HCURSOR hCursor)sw::UIElement - SetCursor(StandardCursor cursor)sw::UIElement - SetDesireSize(const Size &size) overridesw::UIElementvirtual - SetExtendedStyle(LONG_PTR style)sw::WndBase - SetExtendedStyle(LONG_PTR mask, bool value)sw::WndBase - SetNextTabStopFocus()sw::UIElementprotected - SetParent(WndBase *parent) overridesw::UIElementprotectedvirtual - SetStyle(LONG_PTR style)sw::WndBase - SetStyle(LONG_PTR mask, bool value)sw::WndBase - SetTag(uint64_t tag) overridesw::UIElementvirtual - SetText(const std::wstring &value)sw::WndBaseprotectedvirtual - SetTextColor(Color color, bool redraw)sw::UIElementprotectedvirtual - Show(int nCmdShow)sw::WndBase - ShowContextMenu(const Point &point)sw::UIElement - TabStopsw::UIElement - Tagsw::UIElement - Textsw::WndBase - TextColorsw::UIElement - Topsw::WndBase - Transparentsw::UIElement - UIElement()sw::UIElementprotected - UnregisterRoutedEvent(RoutedEventType eventType)sw::UIElement - Update()sw::WndBase - UpdateChildrenZOrder()sw::UIElementprotected - UpdateFont()sw::WndBase - UpdateSiblingsZOrder()sw::UIElementprotected - UpdateText()sw::WndBaseprotected - VerticalAlignmentsw::UIElement - Visiblesw::WndBase - VisibleChanged(bool newVisible) overridesw::UIElementprotectedvirtual - Widthsw::WndBase - WndBase()sw::WndBaseprotected - WndBase(const WndBase &)=delete (定义于 sw::WndBase)sw::WndBaseprotected - WndBase(WndBase &&)=delete (定义于 sw::WndBase)sw::WndBaseprotected - WndProc(const ProcMsg &refMsg)sw::WndBaseprotectedvirtual - ~ButtonBase()=0sw::ButtonBasepure virtual - ~Control()=0sw::Controlpure virtual - ~UIElement()=0sw::UIElementpure virtual - ~WndBase()=0sw::WndBasepure virtual + ResetHandle(DWORD style, DWORD exStyle)sw::Controlprotected + SendMessageA(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase + SendMessageW(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase + SetAlignment(sw::HorizontalAlignment horz, sw::VerticalAlignment vert)sw::UIElement + SetBackColor(Color color, bool redraw)sw::UIElementprotectedvirtual + SetCursor(HCURSOR hCursor)sw::UIElement + SetCursor(StandardCursor cursor)sw::UIElement + SetDesireSize(const Size &size) overridesw::UIElementvirtual + SetExtendedStyle(DWORD style)sw::WndBase + SetExtendedStyle(DWORD mask, bool value)sw::WndBase + SetNextTabStopFocus()sw::UIElementprotected + SetParent(WndBase *parent) overridesw::UIElementprotectedvirtual + SetStyle(DWORD style)sw::WndBase + SetStyle(DWORD mask, bool value)sw::WndBase + SetTag(uint64_t tag) overridesw::UIElementvirtual + SetText(const std::wstring &value)sw::WndBaseprotectedvirtual + SetTextColor(Color color, bool redraw)sw::UIElementprotectedvirtual + Show(int nCmdShow)sw::WndBase + ShowContextMenu(const Point &point)sw::UIElement + TabStopsw::UIElement + Tagsw::UIElement + Textsw::WndBase + TextColorsw::UIElement + Topsw::WndBase + Transparentsw::UIElement + UIElement()sw::UIElementprotected + UnregisterRoutedEvent(RoutedEventType eventType)sw::UIElement + Update()sw::WndBase + UpdateChildrenZOrder()sw::UIElementprotected + UpdateFont()sw::WndBase + UpdateSiblingsZOrder()sw::UIElementprotected + UpdateText()sw::WndBaseprotected + VerticalAlignmentsw::UIElement + Visiblesw::WndBase + VisibleChanged(bool newVisible) overridesw::UIElementprotectedvirtual + Widthsw::WndBase + WndBase()sw::WndBaseprotected + WndBase(const WndBase &)=delete (定义于 sw::WndBase)sw::WndBaseprotected + WndBase(WndBase &&)=delete (定义于 sw::WndBase)sw::WndBaseprotected + WndProc(const ProcMsg &refMsg)sw::WndBaseprotectedvirtual + ~ButtonBase()=0sw::ButtonBasepure virtual + ~Control()=0sw::Controlpure virtual + ~UIElement()=0sw::UIElementpure virtual + ~WndBase()=0sw::WndBasepure virtual diff --git a/docs/classsw_1_1_button_base.html b/docs/classsw_1_1_button_base.html index aee61555..ea561aca 100644 --- a/docs/classsw_1_1_button_base.html +++ b/docs/classsw_1_1_button_base.html @@ -304,34 +304,34 @@ bool IsVisible ()  判断当前对象在界面中是否可视,与Visible属性不同的是该函数返回值会受父窗口的影响
  - -LONG_PTR GetStyle () - 获取窗口样式
-  - -void SetStyle (LONG_PTR style) - 设置窗口样式
-  -bool GetStyle (LONG_PTR mask) - 判断窗口是否设有指定样式
-  -void SetStyle (LONG_PTR mask, bool value) - 打开或关闭指定的样式
-  - -LONG_PTR GetExtendedStyle () - 获取扩展窗口样式
-  - -void SetExtendedStyle (LONG_PTR style) - 设置扩展窗口样式
-  -bool GetExtendedStyle (LONG_PTR mask) - 判断窗口是否设有指定扩展样式
-  -void SetExtendedStyle (LONG_PTR mask, bool value) - 打开或关闭指定的扩展样式
-  + +DWORD GetStyle () + 获取窗口样式
+  + +void SetStyle (DWORD style) + 设置窗口样式
+  +bool GetStyle (DWORD mask) + 判断窗口是否设有指定样式
+  +void SetStyle (DWORD mask, bool value) + 打开或关闭指定的样式
+  + +DWORD GetExtendedStyle () + 获取扩展窗口样式
+  + +void SetExtendedStyle (DWORD style) + 设置扩展窗口样式
+  +bool GetExtendedStyle (DWORD mask) + 判断窗口是否设有指定扩展样式
+  +void SetExtendedStyle (DWORD mask, bool value) + 打开或关闭指定的扩展样式
Point PointToScreen (const Point &point)  获取用户区点在屏幕上点的位置
  @@ -380,6 +380,9 @@ void ResetHandle ()  销毁控件句柄并重新初始化,该操作会创建新的句柄并设置样式、文本、字体等
  +void ResetHandle (DWORD style, DWORD exStyle) + 销毁控件句柄并重新初始化,并修改样式,该操作会创建新的句柄并设置样式、文本、字体等
virtual void HandleChenged ()  控件句柄发生改变时调用该函数
diff --git a/docs/classsw_1_1_canvas-members.html b/docs/classsw_1_1_canvas-members.html index 4118e7e0..901216a1 100644 --- a/docs/classsw_1_1_canvas-members.html +++ b/docs/classsw_1_1_canvas-members.html @@ -136,8 +136,8 @@ GetChildRightmost(bool update)sw::UIElementprotected GetDefaultLayout() overridesw::Canvasprotectedvirtual GetDesireSize() overridesw::UIElementvirtual - GetExtendedStyle()sw::WndBase - GetExtendedStyle(LONG_PTR mask)sw::WndBase + GetExtendedStyle()sw::WndBase + GetExtendedStyle(DWORD mask)sw::WndBase GetFontHandle()sw::WndBase GetHorizontalScrollPageSize()sw::Layer GetHorizontalScrollRange(double &refMin, double &refMax)sw::Layer @@ -147,8 +147,8 @@ GetRealBackColor()sw::UIElement GetRealTextColor()sw::UIElement GetRootElement()sw::UIElement - GetStyle()sw::WndBase - GetStyle(LONG_PTR mask)sw::WndBase + GetStyle()sw::WndBase + GetStyle(DWORD mask)sw::WndBase GetTag() overridesw::UIElementvirtual GetText()sw::WndBaseprotectedvirtual GetVerticalScrollPageSize()sw::Layer @@ -256,66 +256,67 @@ RemoveChildAt(int index)sw::UIElement ResetCursor()sw::UIElement ResetHandle()sw::Controlprotected - ScrollHorizontal(double offset)sw::Layer - ScrollToBottom()sw::Layer - ScrollToLeft()sw::Layer - ScrollToRight()sw::Layer - ScrollToTop()sw::Layer - ScrollVertical(double offset)sw::Layer - SendMessageA(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase - SendMessageW(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase - SetAlignment(sw::HorizontalAlignment horz, sw::VerticalAlignment vert)sw::UIElement - SetBackColor(Color color, bool redraw)sw::UIElementprotectedvirtual - SetCanvasLayoutTag(UIElement &element, const CanvasLayoutTag &tag)sw::Canvasstatic - SetCursor(HCURSOR hCursor)sw::UIElement - SetCursor(StandardCursor cursor)sw::UIElement - SetDesireSize(const Size &size) overridesw::UIElementvirtual - SetExtendedStyle(LONG_PTR style)sw::WndBase - SetExtendedStyle(LONG_PTR mask, bool value)sw::WndBase - SetHorizontalScrollPageSize(double pageSize)sw::Layer - SetHorizontalScrollRange(double min, double max)sw::Layer - SetNextTabStopFocus()sw::UIElementprotected - SetParent(WndBase *parent) overridesw::UIElementprotectedvirtual - SetStyle(LONG_PTR style)sw::WndBase - SetStyle(LONG_PTR mask, bool value)sw::WndBase - SetTag(uint64_t tag) overridesw::UIElementvirtual - SetText(const std::wstring &value)sw::WndBaseprotectedvirtual - SetTextColor(Color color, bool redraw)sw::UIElementprotectedvirtual - SetVerticalScrollPageSize(double pageSize)sw::Layer - SetVerticalScrollRange(double min, double max)sw::Layer - Show(int nCmdShow)sw::WndBase - ShowContextMenu(const Point &point)sw::UIElement - TabStopsw::UIElement - Tagsw::UIElement - Textsw::WndBase - TextColorsw::UIElement - Topsw::WndBase - Transparentsw::UIElement - UIElement()sw::UIElementprotected - UnregisterRoutedEvent(RoutedEventType eventType)sw::UIElement - Update()sw::WndBase - UpdateChildrenZOrder()sw::UIElementprotected - UpdateFont()sw::WndBase - UpdateLayout()sw::Layerprotected - UpdateScrollRange()sw::Layer - UpdateSiblingsZOrder()sw::UIElementprotected - UpdateText()sw::WndBaseprotected - VerticalAlignmentsw::UIElement - VerticalScrollBarsw::Layer - VerticalScrollLimitsw::Layer - VerticalScrollPossw::Layer - Visiblesw::WndBase - VisibleChanged(bool newVisible) overridesw::UIElementprotectedvirtual - Widthsw::WndBase - WndBase()sw::WndBaseprotected - WndBase(const WndBase &)=delete (定义于 sw::WndBase)sw::WndBaseprotected - WndBase(WndBase &&)=delete (定义于 sw::WndBase)sw::WndBaseprotected - WndProc(const ProcMsg &refMsg)sw::WndBaseprotectedvirtual - ~Control()=0sw::Controlpure virtual - ~Layer()=0sw::Layerpure virtual - ~PanelBase()=0sw::PanelBasepure virtual - ~UIElement()=0sw::UIElementpure virtual - ~WndBase()=0sw::WndBasepure virtual + ResetHandle(DWORD style, DWORD exStyle)sw::Controlprotected + ScrollHorizontal(double offset)sw::Layer + ScrollToBottom()sw::Layer + ScrollToLeft()sw::Layer + ScrollToRight()sw::Layer + ScrollToTop()sw::Layer + ScrollVertical(double offset)sw::Layer + SendMessageA(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase + SendMessageW(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase + SetAlignment(sw::HorizontalAlignment horz, sw::VerticalAlignment vert)sw::UIElement + SetBackColor(Color color, bool redraw)sw::UIElementprotectedvirtual + SetCanvasLayoutTag(UIElement &element, const CanvasLayoutTag &tag)sw::Canvasstatic + SetCursor(HCURSOR hCursor)sw::UIElement + SetCursor(StandardCursor cursor)sw::UIElement + SetDesireSize(const Size &size) overridesw::UIElementvirtual + SetExtendedStyle(DWORD style)sw::WndBase + SetExtendedStyle(DWORD mask, bool value)sw::WndBase + SetHorizontalScrollPageSize(double pageSize)sw::Layer + SetHorizontalScrollRange(double min, double max)sw::Layer + SetNextTabStopFocus()sw::UIElementprotected + SetParent(WndBase *parent) overridesw::UIElementprotectedvirtual + SetStyle(DWORD style)sw::WndBase + SetStyle(DWORD mask, bool value)sw::WndBase + SetTag(uint64_t tag) overridesw::UIElementvirtual + SetText(const std::wstring &value)sw::WndBaseprotectedvirtual + SetTextColor(Color color, bool redraw)sw::UIElementprotectedvirtual + SetVerticalScrollPageSize(double pageSize)sw::Layer + SetVerticalScrollRange(double min, double max)sw::Layer + Show(int nCmdShow)sw::WndBase + ShowContextMenu(const Point &point)sw::UIElement + TabStopsw::UIElement + Tagsw::UIElement + Textsw::WndBase + TextColorsw::UIElement + Topsw::WndBase + Transparentsw::UIElement + UIElement()sw::UIElementprotected + UnregisterRoutedEvent(RoutedEventType eventType)sw::UIElement + Update()sw::WndBase + UpdateChildrenZOrder()sw::UIElementprotected + UpdateFont()sw::WndBase + UpdateLayout()sw::Layerprotected + UpdateScrollRange()sw::Layer + UpdateSiblingsZOrder()sw::UIElementprotected + UpdateText()sw::WndBaseprotected + VerticalAlignmentsw::UIElement + VerticalScrollBarsw::Layer + VerticalScrollLimitsw::Layer + VerticalScrollPossw::Layer + Visiblesw::WndBase + VisibleChanged(bool newVisible) overridesw::UIElementprotectedvirtual + Widthsw::WndBase + WndBase()sw::WndBaseprotected + WndBase(const WndBase &)=delete (定义于 sw::WndBase)sw::WndBaseprotected + WndBase(WndBase &&)=delete (定义于 sw::WndBase)sw::WndBaseprotected + WndProc(const ProcMsg &refMsg)sw::WndBaseprotectedvirtual + ~Control()=0sw::Controlpure virtual + ~Layer()=0sw::Layerpure virtual + ~PanelBase()=0sw::PanelBasepure virtual + ~UIElement()=0sw::UIElementpure virtual + ~WndBase()=0sw::WndBasepure virtual diff --git a/docs/classsw_1_1_canvas.html b/docs/classsw_1_1_canvas.html index 57868118..e60210b7 100644 --- a/docs/classsw_1_1_canvas.html +++ b/docs/classsw_1_1_canvas.html @@ -318,34 +318,34 @@ bool IsVisible ()  判断当前对象在界面中是否可视,与Visible属性不同的是该函数返回值会受父窗口的影响
  - -LONG_PTR GetStyle () - 获取窗口样式
-  - -void SetStyle (LONG_PTR style) - 设置窗口样式
-  -bool GetStyle (LONG_PTR mask) - 判断窗口是否设有指定样式
-  -void SetStyle (LONG_PTR mask, bool value) - 打开或关闭指定的样式
-  - -LONG_PTR GetExtendedStyle () - 获取扩展窗口样式
-  - -void SetExtendedStyle (LONG_PTR style) - 设置扩展窗口样式
-  -bool GetExtendedStyle (LONG_PTR mask) - 判断窗口是否设有指定扩展样式
-  -void SetExtendedStyle (LONG_PTR mask, bool value) - 打开或关闭指定的扩展样式
-  + +DWORD GetStyle () + 获取窗口样式
+  + +void SetStyle (DWORD style) + 设置窗口样式
+  +bool GetStyle (DWORD mask) + 判断窗口是否设有指定样式
+  +void SetStyle (DWORD mask, bool value) + 打开或关闭指定的样式
+  + +DWORD GetExtendedStyle () + 获取扩展窗口样式
+  + +void SetExtendedStyle (DWORD style) + 设置扩展窗口样式
+  +bool GetExtendedStyle (DWORD mask) + 判断窗口是否设有指定扩展样式
+  +void SetExtendedStyle (DWORD mask, bool value) + 打开或关闭指定的扩展样式
Point PointToScreen (const Point &point)  获取用户区点在屏幕上点的位置
  @@ -478,6 +478,9 @@ void ResetHandle ()  销毁控件句柄并重新初始化,该操作会创建新的句柄并设置样式、文本、字体等
  +void ResetHandle (DWORD style, DWORD exStyle) + 销毁控件句柄并重新初始化,并修改样式,该操作会创建新的句柄并设置样式、文本、字体等
virtual void HandleChenged ()  控件句柄发生改变时调用该函数
diff --git a/docs/classsw_1_1_check_box-members.html b/docs/classsw_1_1_check_box-members.html index 7adcf12c..67f27125 100644 --- a/docs/classsw_1_1_check_box-members.html +++ b/docs/classsw_1_1_check_box-members.html @@ -133,8 +133,8 @@ GetChildLayoutCount() overridesw::UIElementvirtual GetChildRightmost(bool update)sw::UIElementprotected GetDesireSize() overridesw::UIElementvirtual - GetExtendedStyle()sw::WndBase - GetExtendedStyle(LONG_PTR mask)sw::WndBase + GetExtendedStyle()sw::WndBase + GetExtendedStyle(DWORD mask)sw::WndBase GetFontHandle()sw::WndBase GetLayoutTag() overridesw::UIElementvirtual GetNextElement()sw::UIElement @@ -142,8 +142,8 @@ GetRealBackColor()sw::UIElement GetRealTextColor()sw::UIElement GetRootElement()sw::UIElement - GetStyle()sw::WndBase - GetStyle(LONG_PTR mask)sw::WndBase + GetStyle()sw::WndBase + GetStyle(DWORD mask)sw::WndBase GetTag() overridesw::UIElementvirtual GetText()sw::WndBaseprotectedvirtual GetWndBase(HWND hwnd)sw::WndBasestatic @@ -245,51 +245,52 @@ RemoveChildAt(int index)sw::UIElement ResetCursor()sw::UIElement ResetHandle()sw::Controlprotected - SendMessageA(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase - SendMessageW(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase - SetAlignment(sw::HorizontalAlignment horz, sw::VerticalAlignment vert)sw::UIElement - SetBackColor(Color color, bool redraw)sw::UIElementprotectedvirtual - SetCursor(HCURSOR hCursor)sw::UIElement - SetCursor(StandardCursor cursor)sw::UIElement - SetDesireSize(const Size &size) overridesw::UIElementvirtual - SetExtendedStyle(LONG_PTR style)sw::WndBase - SetExtendedStyle(LONG_PTR mask, bool value)sw::WndBase - SetNextTabStopFocus()sw::UIElementprotected - SetParent(WndBase *parent) overridesw::UIElementprotectedvirtual - SetStyle(LONG_PTR style)sw::WndBase - SetStyle(LONG_PTR mask, bool value)sw::WndBase - SetTag(uint64_t tag) overridesw::UIElementvirtual - SetText(const std::wstring &value)sw::WndBaseprotectedvirtual - SetTextColor(Color color, bool redraw)sw::UIElementprotectedvirtual - Show(int nCmdShow)sw::WndBase - ShowContextMenu(const Point &point)sw::UIElement - TabStopsw::UIElement - Tagsw::UIElement - Textsw::WndBase - TextColorsw::UIElement - ThreeStatesw::CheckBox - Topsw::WndBase - Transparentsw::UIElement - UIElement()sw::UIElementprotected - UnregisterRoutedEvent(RoutedEventType eventType)sw::UIElement - Update()sw::WndBase - UpdateChildrenZOrder()sw::UIElementprotected - UpdateFont()sw::WndBase - UpdateSiblingsZOrder()sw::UIElementprotected - UpdateText()sw::WndBaseprotected - VerticalAlignmentsw::UIElement - Visiblesw::WndBase - VisibleChanged(bool newVisible) overridesw::UIElementprotectedvirtual - Widthsw::WndBase - WndBase()sw::WndBaseprotected - WndBase(const WndBase &)=delete (定义于 sw::WndBase)sw::WndBaseprotected - WndBase(WndBase &&)=delete (定义于 sw::WndBase)sw::WndBaseprotected - WndProc(const ProcMsg &refMsg)sw::WndBaseprotectedvirtual - ~ButtonBase()=0sw::ButtonBasepure virtual - ~CheckableButton()=0sw::CheckableButtonpure virtual - ~Control()=0sw::Controlpure virtual - ~UIElement()=0sw::UIElementpure virtual - ~WndBase()=0sw::WndBasepure virtual + ResetHandle(DWORD style, DWORD exStyle)sw::Controlprotected + SendMessageA(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase + SendMessageW(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase + SetAlignment(sw::HorizontalAlignment horz, sw::VerticalAlignment vert)sw::UIElement + SetBackColor(Color color, bool redraw)sw::UIElementprotectedvirtual + SetCursor(HCURSOR hCursor)sw::UIElement + SetCursor(StandardCursor cursor)sw::UIElement + SetDesireSize(const Size &size) overridesw::UIElementvirtual + SetExtendedStyle(DWORD style)sw::WndBase + SetExtendedStyle(DWORD mask, bool value)sw::WndBase + SetNextTabStopFocus()sw::UIElementprotected + SetParent(WndBase *parent) overridesw::UIElementprotectedvirtual + SetStyle(DWORD style)sw::WndBase + SetStyle(DWORD mask, bool value)sw::WndBase + SetTag(uint64_t tag) overridesw::UIElementvirtual + SetText(const std::wstring &value)sw::WndBaseprotectedvirtual + SetTextColor(Color color, bool redraw)sw::UIElementprotectedvirtual + Show(int nCmdShow)sw::WndBase + ShowContextMenu(const Point &point)sw::UIElement + TabStopsw::UIElement + Tagsw::UIElement + Textsw::WndBase + TextColorsw::UIElement + ThreeStatesw::CheckBox + Topsw::WndBase + Transparentsw::UIElement + UIElement()sw::UIElementprotected + UnregisterRoutedEvent(RoutedEventType eventType)sw::UIElement + Update()sw::WndBase + UpdateChildrenZOrder()sw::UIElementprotected + UpdateFont()sw::WndBase + UpdateSiblingsZOrder()sw::UIElementprotected + UpdateText()sw::WndBaseprotected + VerticalAlignmentsw::UIElement + Visiblesw::WndBase + VisibleChanged(bool newVisible) overridesw::UIElementprotectedvirtual + Widthsw::WndBase + WndBase()sw::WndBaseprotected + WndBase(const WndBase &)=delete (定义于 sw::WndBase)sw::WndBaseprotected + WndBase(WndBase &&)=delete (定义于 sw::WndBase)sw::WndBaseprotected + WndProc(const ProcMsg &refMsg)sw::WndBaseprotectedvirtual + ~ButtonBase()=0sw::ButtonBasepure virtual + ~CheckableButton()=0sw::CheckableButtonpure virtual + ~Control()=0sw::Controlpure virtual + ~UIElement()=0sw::UIElementpure virtual + ~WndBase()=0sw::WndBasepure virtual diff --git a/docs/classsw_1_1_check_box.html b/docs/classsw_1_1_check_box.html index ba44a5e9..4dcbf51c 100644 --- a/docs/classsw_1_1_check_box.html +++ b/docs/classsw_1_1_check_box.html @@ -312,34 +312,34 @@ bool IsVisible ()  判断当前对象在界面中是否可视,与Visible属性不同的是该函数返回值会受父窗口的影响
  - -LONG_PTR GetStyle () - 获取窗口样式
-  - -void SetStyle (LONG_PTR style) - 设置窗口样式
-  -bool GetStyle (LONG_PTR mask) - 判断窗口是否设有指定样式
-  -void SetStyle (LONG_PTR mask, bool value) - 打开或关闭指定的样式
-  - -LONG_PTR GetExtendedStyle () - 获取扩展窗口样式
-  - -void SetExtendedStyle (LONG_PTR style) - 设置扩展窗口样式
-  -bool GetExtendedStyle (LONG_PTR mask) - 判断窗口是否设有指定扩展样式
-  -void SetExtendedStyle (LONG_PTR mask, bool value) - 打开或关闭指定的扩展样式
-  + +DWORD GetStyle () + 获取窗口样式
+  + +void SetStyle (DWORD style) + 设置窗口样式
+  +bool GetStyle (DWORD mask) + 判断窗口是否设有指定样式
+  +void SetStyle (DWORD mask, bool value) + 打开或关闭指定的样式
+  + +DWORD GetExtendedStyle () + 获取扩展窗口样式
+  + +void SetExtendedStyle (DWORD style) + 设置扩展窗口样式
+  +bool GetExtendedStyle (DWORD mask) + 判断窗口是否设有指定扩展样式
+  +void SetExtendedStyle (DWORD mask, bool value) + 打开或关闭指定的扩展样式
Point PointToScreen (const Point &point)  获取用户区点在屏幕上点的位置
  @@ -556,6 +556,9 @@ void ResetHandle ()  销毁控件句柄并重新初始化,该操作会创建新的句柄并设置样式、文本、字体等
  +void ResetHandle (DWORD style, DWORD exStyle) + 销毁控件句柄并重新初始化,并修改样式,该操作会创建新的句柄并设置样式、文本、字体等
virtual void HandleChenged ()  控件句柄发生改变时调用该函数
diff --git a/docs/classsw_1_1_checkable_button-members.html b/docs/classsw_1_1_checkable_button-members.html index aa22af75..b0927dca 100644 --- a/docs/classsw_1_1_checkable_button-members.html +++ b/docs/classsw_1_1_checkable_button-members.html @@ -132,8 +132,8 @@ GetChildLayoutCount() overridesw::UIElementvirtual GetChildRightmost(bool update)sw::UIElementprotected GetDesireSize() overridesw::UIElementvirtual - GetExtendedStyle()sw::WndBase - GetExtendedStyle(LONG_PTR mask)sw::WndBase + GetExtendedStyle()sw::WndBase + GetExtendedStyle(DWORD mask)sw::WndBase GetFontHandle()sw::WndBase GetLayoutTag() overridesw::UIElementvirtual GetNextElement()sw::UIElement @@ -141,8 +141,8 @@ GetRealBackColor()sw::UIElement GetRealTextColor()sw::UIElement GetRootElement()sw::UIElement - GetStyle()sw::WndBase - GetStyle(LONG_PTR mask)sw::WndBase + GetStyle()sw::WndBase + GetStyle(DWORD mask)sw::WndBase GetTag() overridesw::UIElementvirtual GetText()sw::WndBaseprotectedvirtual GetWndBase(HWND hwnd)sw::WndBasestatic @@ -244,50 +244,51 @@ RemoveChildAt(int index)sw::UIElement ResetCursor()sw::UIElement ResetHandle()sw::Controlprotected - SendMessageA(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase - SendMessageW(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase - SetAlignment(sw::HorizontalAlignment horz, sw::VerticalAlignment vert)sw::UIElement - SetBackColor(Color color, bool redraw)sw::UIElementprotectedvirtual - SetCursor(HCURSOR hCursor)sw::UIElement - SetCursor(StandardCursor cursor)sw::UIElement - SetDesireSize(const Size &size) overridesw::UIElementvirtual - SetExtendedStyle(LONG_PTR style)sw::WndBase - SetExtendedStyle(LONG_PTR mask, bool value)sw::WndBase - SetNextTabStopFocus()sw::UIElementprotected - SetParent(WndBase *parent) overridesw::UIElementprotectedvirtual - SetStyle(LONG_PTR style)sw::WndBase - SetStyle(LONG_PTR mask, bool value)sw::WndBase - SetTag(uint64_t tag) overridesw::UIElementvirtual - SetText(const std::wstring &value)sw::WndBaseprotectedvirtual - SetTextColor(Color color, bool redraw)sw::UIElementprotectedvirtual - Show(int nCmdShow)sw::WndBase - ShowContextMenu(const Point &point)sw::UIElement - TabStopsw::UIElement - Tagsw::UIElement - Textsw::WndBase - TextColorsw::UIElement - Topsw::WndBase - Transparentsw::UIElement - UIElement()sw::UIElementprotected - UnregisterRoutedEvent(RoutedEventType eventType)sw::UIElement - Update()sw::WndBase - UpdateChildrenZOrder()sw::UIElementprotected - UpdateFont()sw::WndBase - UpdateSiblingsZOrder()sw::UIElementprotected - UpdateText()sw::WndBaseprotected - VerticalAlignmentsw::UIElement - Visiblesw::WndBase - VisibleChanged(bool newVisible) overridesw::UIElementprotectedvirtual - Widthsw::WndBase - WndBase()sw::WndBaseprotected - WndBase(const WndBase &)=delete (定义于 sw::WndBase)sw::WndBaseprotected - WndBase(WndBase &&)=delete (定义于 sw::WndBase)sw::WndBaseprotected - WndProc(const ProcMsg &refMsg)sw::WndBaseprotectedvirtual - ~ButtonBase()=0sw::ButtonBasepure virtual - ~CheckableButton()=0sw::CheckableButtonpure virtual - ~Control()=0sw::Controlpure virtual - ~UIElement()=0sw::UIElementpure virtual - ~WndBase()=0sw::WndBasepure virtual + ResetHandle(DWORD style, DWORD exStyle)sw::Controlprotected + SendMessageA(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase + SendMessageW(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase + SetAlignment(sw::HorizontalAlignment horz, sw::VerticalAlignment vert)sw::UIElement + SetBackColor(Color color, bool redraw)sw::UIElementprotectedvirtual + SetCursor(HCURSOR hCursor)sw::UIElement + SetCursor(StandardCursor cursor)sw::UIElement + SetDesireSize(const Size &size) overridesw::UIElementvirtual + SetExtendedStyle(DWORD style)sw::WndBase + SetExtendedStyle(DWORD mask, bool value)sw::WndBase + SetNextTabStopFocus()sw::UIElementprotected + SetParent(WndBase *parent) overridesw::UIElementprotectedvirtual + SetStyle(DWORD style)sw::WndBase + SetStyle(DWORD mask, bool value)sw::WndBase + SetTag(uint64_t tag) overridesw::UIElementvirtual + SetText(const std::wstring &value)sw::WndBaseprotectedvirtual + SetTextColor(Color color, bool redraw)sw::UIElementprotectedvirtual + Show(int nCmdShow)sw::WndBase + ShowContextMenu(const Point &point)sw::UIElement + TabStopsw::UIElement + Tagsw::UIElement + Textsw::WndBase + TextColorsw::UIElement + Topsw::WndBase + Transparentsw::UIElement + UIElement()sw::UIElementprotected + UnregisterRoutedEvent(RoutedEventType eventType)sw::UIElement + Update()sw::WndBase + UpdateChildrenZOrder()sw::UIElementprotected + UpdateFont()sw::WndBase + UpdateSiblingsZOrder()sw::UIElementprotected + UpdateText()sw::WndBaseprotected + VerticalAlignmentsw::UIElement + Visiblesw::WndBase + VisibleChanged(bool newVisible) overridesw::UIElementprotectedvirtual + Widthsw::WndBase + WndBase()sw::WndBaseprotected + WndBase(const WndBase &)=delete (定义于 sw::WndBase)sw::WndBaseprotected + WndBase(WndBase &&)=delete (定义于 sw::WndBase)sw::WndBaseprotected + WndProc(const ProcMsg &refMsg)sw::WndBaseprotectedvirtual + ~ButtonBase()=0sw::ButtonBasepure virtual + ~CheckableButton()=0sw::CheckableButtonpure virtual + ~Control()=0sw::Controlpure virtual + ~UIElement()=0sw::UIElementpure virtual + ~WndBase()=0sw::WndBasepure virtual diff --git a/docs/classsw_1_1_checkable_button.html b/docs/classsw_1_1_checkable_button.html index d71f120f..3c8941ad 100644 --- a/docs/classsw_1_1_checkable_button.html +++ b/docs/classsw_1_1_checkable_button.html @@ -309,34 +309,34 @@ bool IsVisible ()  判断当前对象在界面中是否可视,与Visible属性不同的是该函数返回值会受父窗口的影响
  - -LONG_PTR GetStyle () - 获取窗口样式
-  - -void SetStyle (LONG_PTR style) - 设置窗口样式
-  -bool GetStyle (LONG_PTR mask) - 判断窗口是否设有指定样式
-  -void SetStyle (LONG_PTR mask, bool value) - 打开或关闭指定的样式
-  - -LONG_PTR GetExtendedStyle () - 获取扩展窗口样式
-  - -void SetExtendedStyle (LONG_PTR style) - 设置扩展窗口样式
-  -bool GetExtendedStyle (LONG_PTR mask) - 判断窗口是否设有指定扩展样式
-  -void SetExtendedStyle (LONG_PTR mask, bool value) - 打开或关闭指定的扩展样式
-  + +DWORD GetStyle () + 获取窗口样式
+  + +void SetStyle (DWORD style) + 设置窗口样式
+  +bool GetStyle (DWORD mask) + 判断窗口是否设有指定样式
+  +void SetStyle (DWORD mask, bool value) + 打开或关闭指定的样式
+  + +DWORD GetExtendedStyle () + 获取扩展窗口样式
+  + +void SetExtendedStyle (DWORD style) + 设置扩展窗口样式
+  +bool GetExtendedStyle (DWORD mask) + 判断窗口是否设有指定扩展样式
+  +void SetExtendedStyle (DWORD mask, bool value) + 打开或关闭指定的扩展样式
Point PointToScreen (const Point &point)  获取用户区点在屏幕上点的位置
  @@ -543,6 +543,9 @@ void ResetHandle ()  销毁控件句柄并重新初始化,该操作会创建新的句柄并设置样式、文本、字体等
  +void ResetHandle (DWORD style, DWORD exStyle) + 销毁控件句柄并重新初始化,并修改样式,该操作会创建新的句柄并设置样式、文本、字体等
virtual void HandleChenged ()  控件句柄发生改变时调用该函数
diff --git a/docs/classsw_1_1_combo_box-members.html b/docs/classsw_1_1_combo_box-members.html index b92ffe01..7aece9b6 100644 --- a/docs/classsw_1_1_combo_box-members.html +++ b/docs/classsw_1_1_combo_box-members.html @@ -134,8 +134,8 @@ GetChildLayoutCount() overridesw::UIElementvirtual GetChildRightmost(bool update)sw::UIElementprotected GetDesireSize() overridesw::UIElementvirtual - GetExtendedStyle()sw::WndBase - GetExtendedStyle(LONG_PTR mask)sw::WndBase + GetExtendedStyle()sw::WndBase + GetExtendedStyle(DWORD mask)sw::WndBase GetFontHandle()sw::WndBase GetItemAt(int index) overridesw::ComboBoxvirtual GetItemsCount() overridesw::ComboBoxprotectedvirtual @@ -147,8 +147,8 @@ GetRootElement()sw::UIElement GetSelectedIndex() overridesw::ComboBoxprotectedvirtual GetSelectedItem() overridesw::ComboBoxprotectedvirtual - GetStyle()sw::WndBase - GetStyle(LONG_PTR mask)sw::WndBase + GetStyle()sw::WndBase + GetStyle(DWORD mask)sw::WndBase GetTag() overridesw::UIElementvirtual GetText() overridesw::ComboBoxprotectedvirtual GetWndBase(HWND hwnd)sw::WndBasestatic @@ -252,54 +252,55 @@ RemoveItemAt(int index) overridesw::ComboBoxvirtual ResetCursor()sw::UIElement ResetHandle()sw::Controlprotected - SelectedIndexsw::ItemsControl< TItem > - SelectedItemsw::ItemsControl< TItem > - SendMessageA(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase - SendMessageW(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase - SetAlignment(sw::HorizontalAlignment horz, sw::VerticalAlignment vert)sw::UIElement - SetBackColor(Color color, bool redraw)sw::UIElementprotectedvirtual - SetCursor(HCURSOR hCursor)sw::UIElement - SetCursor(StandardCursor cursor)sw::UIElement - SetDesireSize(const Size &size) overridesw::UIElementvirtual - SetExtendedStyle(LONG_PTR style)sw::WndBase - SetExtendedStyle(LONG_PTR mask, bool value)sw::WndBase - SetNextTabStopFocus()sw::UIElementprotected - SetParent(WndBase *parent) overridesw::UIElementprotectedvirtual - SetSelectedIndex(int index) overridesw::ComboBoxprotectedvirtual - SetStyle(LONG_PTR style)sw::WndBase - SetStyle(LONG_PTR mask, bool value)sw::WndBase - SetTag(uint64_t tag) overridesw::UIElementvirtual - SetText(const std::wstring &value) overridesw::ComboBoxprotectedvirtual - SetTextColor(Color color, bool redraw)sw::UIElementprotectedvirtual - Show(int nCmdShow)sw::WndBase - ShowContextMenu(const Point &point)sw::UIElement - ShowDropDown()sw::ComboBox - TabStopsw::UIElement - Tagsw::UIElement - Textsw::WndBase - TextColorsw::UIElement - Topsw::WndBase - Transparentsw::UIElement - UIElement()sw::UIElementprotected - UnregisterRoutedEvent(RoutedEventType eventType)sw::UIElement - Update()sw::WndBase - UpdateChildrenZOrder()sw::UIElementprotected - UpdateFont()sw::WndBase - UpdateItem(int index, const std::wstring &newValue) overridesw::ComboBoxvirtual - sw::ItemsControl::UpdateItem(int index, const TItem &newValue)=0sw::ItemsControl< TItem >pure virtual - UpdateSiblingsZOrder()sw::UIElementprotected - UpdateText()sw::WndBaseprotected - VerticalAlignmentsw::UIElement - Visiblesw::WndBase - VisibleChanged(bool newVisible) overridesw::UIElementprotectedvirtual - Widthsw::WndBase - WndBase()sw::WndBaseprotected - WndBase(const WndBase &)=delete (定义于 sw::WndBase)sw::WndBaseprotected - WndBase(WndBase &&)=delete (定义于 sw::WndBase)sw::WndBaseprotected - WndProc(const ProcMsg &refMsg)sw::WndBaseprotectedvirtual - ~Control()=0sw::Controlpure virtual - ~UIElement()=0sw::UIElementpure virtual - ~WndBase()=0sw::WndBasepure virtual + ResetHandle(DWORD style, DWORD exStyle)sw::Controlprotected + SelectedIndexsw::ItemsControl< TItem > + SelectedItemsw::ItemsControl< TItem > + SendMessageA(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase + SendMessageW(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase + SetAlignment(sw::HorizontalAlignment horz, sw::VerticalAlignment vert)sw::UIElement + SetBackColor(Color color, bool redraw)sw::UIElementprotectedvirtual + SetCursor(HCURSOR hCursor)sw::UIElement + SetCursor(StandardCursor cursor)sw::UIElement + SetDesireSize(const Size &size) overridesw::UIElementvirtual + SetExtendedStyle(DWORD style)sw::WndBase + SetExtendedStyle(DWORD mask, bool value)sw::WndBase + SetNextTabStopFocus()sw::UIElementprotected + SetParent(WndBase *parent) overridesw::UIElementprotectedvirtual + SetSelectedIndex(int index) overridesw::ComboBoxprotectedvirtual + SetStyle(DWORD style)sw::WndBase + SetStyle(DWORD mask, bool value)sw::WndBase + SetTag(uint64_t tag) overridesw::UIElementvirtual + SetText(const std::wstring &value) overridesw::ComboBoxprotectedvirtual + SetTextColor(Color color, bool redraw)sw::UIElementprotectedvirtual + Show(int nCmdShow)sw::WndBase + ShowContextMenu(const Point &point)sw::UIElement + ShowDropDown()sw::ComboBox + TabStopsw::UIElement + Tagsw::UIElement + Textsw::WndBase + TextColorsw::UIElement + Topsw::WndBase + Transparentsw::UIElement + UIElement()sw::UIElementprotected + UnregisterRoutedEvent(RoutedEventType eventType)sw::UIElement + Update()sw::WndBase + UpdateChildrenZOrder()sw::UIElementprotected + UpdateFont()sw::WndBase + UpdateItem(int index, const std::wstring &newValue) overridesw::ComboBoxvirtual + sw::ItemsControl::UpdateItem(int index, const TItem &newValue)=0sw::ItemsControl< TItem >pure virtual + UpdateSiblingsZOrder()sw::UIElementprotected + UpdateText()sw::WndBaseprotected + VerticalAlignmentsw::UIElement + Visiblesw::WndBase + VisibleChanged(bool newVisible) overridesw::UIElementprotectedvirtual + Widthsw::WndBase + WndBase()sw::WndBaseprotected + WndBase(const WndBase &)=delete (定义于 sw::WndBase)sw::WndBaseprotected + WndBase(WndBase &&)=delete (定义于 sw::WndBase)sw::WndBaseprotected + WndProc(const ProcMsg &refMsg)sw::WndBaseprotectedvirtual + ~Control()=0sw::Controlpure virtual + ~UIElement()=0sw::UIElementpure virtual + ~WndBase()=0sw::WndBasepure virtual diff --git a/docs/classsw_1_1_combo_box.html b/docs/classsw_1_1_combo_box.html index 54dd345f..f551b936 100644 --- a/docs/classsw_1_1_combo_box.html +++ b/docs/classsw_1_1_combo_box.html @@ -338,34 +338,34 @@ bool IsVisible ()  判断当前对象在界面中是否可视,与Visible属性不同的是该函数返回值会受父窗口的影响
  - -LONG_PTR GetStyle () - 获取窗口样式
-  - -void SetStyle (LONG_PTR style) - 设置窗口样式
-  -bool GetStyle (LONG_PTR mask) - 判断窗口是否设有指定样式
-  -void SetStyle (LONG_PTR mask, bool value) - 打开或关闭指定的样式
-  - -LONG_PTR GetExtendedStyle () - 获取扩展窗口样式
-  - -void SetExtendedStyle (LONG_PTR style) - 设置扩展窗口样式
-  -bool GetExtendedStyle (LONG_PTR mask) - 判断窗口是否设有指定扩展样式
-  -void SetExtendedStyle (LONG_PTR mask, bool value) - 打开或关闭指定的扩展样式
-  + +DWORD GetStyle () + 获取窗口样式
+  + +void SetStyle (DWORD style) + 设置窗口样式
+  +bool GetStyle (DWORD mask) + 判断窗口是否设有指定样式
+  +void SetStyle (DWORD mask, bool value) + 打开或关闭指定的样式
+  + +DWORD GetExtendedStyle () + 获取扩展窗口样式
+  + +void SetExtendedStyle (DWORD style) + 设置扩展窗口样式
+  +bool GetExtendedStyle (DWORD mask) + 判断窗口是否设有指定扩展样式
+  +void SetExtendedStyle (DWORD mask, bool value) + 打开或关闭指定的扩展样式
Point PointToScreen (const Point &point)  获取用户区点在屏幕上点的位置
  @@ -578,6 +578,9 @@ void ResetHandle ()  销毁控件句柄并重新初始化,该操作会创建新的句柄并设置样式、文本、字体等
  +void ResetHandle (DWORD style, DWORD exStyle) + 销毁控件句柄并重新初始化,并修改样式,该操作会创建新的句柄并设置样式、文本、字体等
virtual void HandleChenged ()  控件句柄发生改变时调用该函数
diff --git a/docs/classsw_1_1_control-members.html b/docs/classsw_1_1_control-members.html index ced44cb1..1b8e366a 100644 --- a/docs/classsw_1_1_control-members.html +++ b/docs/classsw_1_1_control-members.html @@ -129,8 +129,8 @@ GetChildLayoutCount() overridesw::UIElementvirtual GetChildRightmost(bool update)sw::UIElementprotected GetDesireSize() overridesw::UIElementvirtual - GetExtendedStyle()sw::WndBase - GetExtendedStyle(LONG_PTR mask)sw::WndBase + GetExtendedStyle()sw::WndBase + GetExtendedStyle(DWORD mask)sw::WndBase GetFontHandle()sw::WndBase GetLayoutTag() overridesw::UIElementvirtual GetNextElement()sw::UIElement @@ -138,8 +138,8 @@ GetRealBackColor()sw::UIElement GetRealTextColor()sw::UIElement GetRootElement()sw::UIElement - GetStyle()sw::WndBase - GetStyle(LONG_PTR mask)sw::WndBase + GetStyle()sw::WndBase + GetStyle(DWORD mask)sw::WndBase GetTag() overridesw::UIElementvirtual GetText()sw::WndBaseprotectedvirtual GetWndBase(HWND hwnd)sw::WndBasestatic @@ -237,48 +237,49 @@ RemoveChildAt(int index)sw::UIElement ResetCursor()sw::UIElement ResetHandle()sw::Controlprotected - SendMessageA(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase - SendMessageW(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase - SetAlignment(sw::HorizontalAlignment horz, sw::VerticalAlignment vert)sw::UIElement - SetBackColor(Color color, bool redraw)sw::UIElementprotectedvirtual - SetCursor(HCURSOR hCursor)sw::UIElement - SetCursor(StandardCursor cursor)sw::UIElement - SetDesireSize(const Size &size) overridesw::UIElementvirtual - SetExtendedStyle(LONG_PTR style)sw::WndBase - SetExtendedStyle(LONG_PTR mask, bool value)sw::WndBase - SetNextTabStopFocus()sw::UIElementprotected - SetParent(WndBase *parent) overridesw::UIElementprotectedvirtual - SetStyle(LONG_PTR style)sw::WndBase - SetStyle(LONG_PTR mask, bool value)sw::WndBase - SetTag(uint64_t tag) overridesw::UIElementvirtual - SetText(const std::wstring &value)sw::WndBaseprotectedvirtual - SetTextColor(Color color, bool redraw)sw::UIElementprotectedvirtual - Show(int nCmdShow)sw::WndBase - ShowContextMenu(const Point &point)sw::UIElement - TabStopsw::UIElement - Tagsw::UIElement - Textsw::WndBase - TextColorsw::UIElement - Topsw::WndBase - Transparentsw::UIElement - UIElement()sw::UIElementprotected - UnregisterRoutedEvent(RoutedEventType eventType)sw::UIElement - Update()sw::WndBase - UpdateChildrenZOrder()sw::UIElementprotected - UpdateFont()sw::WndBase - UpdateSiblingsZOrder()sw::UIElementprotected - UpdateText()sw::WndBaseprotected - VerticalAlignmentsw::UIElement - Visiblesw::WndBase - VisibleChanged(bool newVisible) overridesw::UIElementprotectedvirtual - Widthsw::WndBase - WndBase()sw::WndBaseprotected - WndBase(const WndBase &)=delete (定义于 sw::WndBase)sw::WndBaseprotected - WndBase(WndBase &&)=delete (定义于 sw::WndBase)sw::WndBaseprotected - WndProc(const ProcMsg &refMsg)sw::WndBaseprotectedvirtual - ~Control()=0sw::Controlpure virtual - ~UIElement()=0sw::UIElementpure virtual - ~WndBase()=0sw::WndBasepure virtual + ResetHandle(DWORD style, DWORD exStyle)sw::Controlprotected + SendMessageA(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase + SendMessageW(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase + SetAlignment(sw::HorizontalAlignment horz, sw::VerticalAlignment vert)sw::UIElement + SetBackColor(Color color, bool redraw)sw::UIElementprotectedvirtual + SetCursor(HCURSOR hCursor)sw::UIElement + SetCursor(StandardCursor cursor)sw::UIElement + SetDesireSize(const Size &size) overridesw::UIElementvirtual + SetExtendedStyle(DWORD style)sw::WndBase + SetExtendedStyle(DWORD mask, bool value)sw::WndBase + SetNextTabStopFocus()sw::UIElementprotected + SetParent(WndBase *parent) overridesw::UIElementprotectedvirtual + SetStyle(DWORD style)sw::WndBase + SetStyle(DWORD mask, bool value)sw::WndBase + SetTag(uint64_t tag) overridesw::UIElementvirtual + SetText(const std::wstring &value)sw::WndBaseprotectedvirtual + SetTextColor(Color color, bool redraw)sw::UIElementprotectedvirtual + Show(int nCmdShow)sw::WndBase + ShowContextMenu(const Point &point)sw::UIElement + TabStopsw::UIElement + Tagsw::UIElement + Textsw::WndBase + TextColorsw::UIElement + Topsw::WndBase + Transparentsw::UIElement + UIElement()sw::UIElementprotected + UnregisterRoutedEvent(RoutedEventType eventType)sw::UIElement + Update()sw::WndBase + UpdateChildrenZOrder()sw::UIElementprotected + UpdateFont()sw::WndBase + UpdateSiblingsZOrder()sw::UIElementprotected + UpdateText()sw::WndBaseprotected + VerticalAlignmentsw::UIElement + Visiblesw::WndBase + VisibleChanged(bool newVisible) overridesw::UIElementprotectedvirtual + Widthsw::WndBase + WndBase()sw::WndBaseprotected + WndBase(const WndBase &)=delete (定义于 sw::WndBase)sw::WndBaseprotected + WndBase(WndBase &&)=delete (定义于 sw::WndBase)sw::WndBaseprotected + WndProc(const ProcMsg &refMsg)sw::WndBaseprotectedvirtual + ~Control()=0sw::Controlpure virtual + ~UIElement()=0sw::UIElementpure virtual + ~WndBase()=0sw::WndBasepure virtual diff --git a/docs/classsw_1_1_control.html b/docs/classsw_1_1_control.html index 9ecbab7b..d9505240 100644 --- a/docs/classsw_1_1_control.html +++ b/docs/classsw_1_1_control.html @@ -115,13 +115,14 @@ sw::ITag sw::ItemsControl< StrList > sw::ButtonBase -sw::ItemsControl< TItem > -sw::PanelBase -sw::ProgressBar -sw::Slider -sw::StaticControl -sw::TabControl -sw::TextBoxBase +sw::DateTimePicker +sw::ItemsControl< TItem > +sw::PanelBase +sw::ProgressBar +sw::Slider +sw::StaticControl +sw::TabControl +sw::TextBoxBase @@ -303,34 +304,34 @@ bool  - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + @@ -359,6 +360,9 @@ void  + + + @@ -773,7 +777,46 @@
IsVisible ()
 判断当前对象在界面中是否可视,与Visible属性不同的是该函数返回值会受父窗口的影响
 
-LONG_PTR GetStyle ()
 获取窗口样式
 
-void SetStyle (LONG_PTR style)
 设置窗口样式
 
bool GetStyle (LONG_PTR mask)
 判断窗口是否设有指定样式
 
void SetStyle (LONG_PTR mask, bool value)
 打开或关闭指定的样式
 
-LONG_PTR GetExtendedStyle ()
 获取扩展窗口样式
 
-void SetExtendedStyle (LONG_PTR style)
 设置扩展窗口样式
 
bool GetExtendedStyle (LONG_PTR mask)
 判断窗口是否设有指定扩展样式
 
void SetExtendedStyle (LONG_PTR mask, bool value)
 打开或关闭指定的扩展样式
 
+DWORD GetStyle ()
 获取窗口样式
 
+void SetStyle (DWORD style)
 设置窗口样式
 
bool GetStyle (DWORD mask)
 判断窗口是否设有指定样式
 
void SetStyle (DWORD mask, bool value)
 打开或关闭指定的样式
 
+DWORD GetExtendedStyle ()
 获取扩展窗口样式
 
+void SetExtendedStyle (DWORD style)
 设置扩展窗口样式
 
bool GetExtendedStyle (DWORD mask)
 判断窗口是否设有指定扩展样式
 
void SetExtendedStyle (DWORD mask, bool value)
 打开或关闭指定的扩展样式
 
Point PointToScreen (const Point &point)
 获取用户区点在屏幕上点的位置
 
ResetHandle ()
 销毁控件句柄并重新初始化,该操作会创建新的句柄并设置样式、文本、字体等
 
void ResetHandle (DWORD style, DWORD exStyle)
 销毁控件句柄并重新初始化,并修改样式,该操作会创建新的句柄并设置样式、文本、字体等
 
virtual void HandleChenged ()
 控件句柄发生改变时调用该函数

详细描述

控件

-

该类的文档由以下文件生成: