diff --git a/docs/_hwnd_host_8h_source.html b/docs/_hwnd_host_8h_source.html new file mode 100644 index 00000000..8a350ae4 --- /dev/null +++ b/docs/_hwnd_host_8h_source.html @@ -0,0 +1,146 @@ + + + + + + + +SimpleWindow: HwndHost.h 源文件 + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
载入中...
+
搜索中...
+
未找到
+
+
+
+
+ +
+
HwndHost.h
+
+
+
1#pragma once
+
2
+
3#include "StaticControl.h"
+
4
+
5namespace sw
+
6{
+
+
10 class HwndHost : public StaticControl
+
11 {
+
12 private:
+
16 HWND _hWindowCore{NULL};
+
17
+
18 protected:
+ +
23
+
29 virtual bool OnSize(Size newClientSize) override;
+
30
+
35 virtual bool OnDestroy() override;
+
36
+
42 virtual HWND BuildWindowCore(HWND hParent) = 0;
+
43
+
48 virtual void DestroyWindowCore(HWND hwnd) = 0;
+
49 };
+
+
50}
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
将Win32 window托管为SimpleWindow控件
Definition HwndHost.h:11
+
virtual bool OnSize(Size newClientSize) override
接收到WM_SIZE时调用该函数
+
virtual bool OnDestroy() override
接收到WM_DESTROY时调用该函数
+
virtual HWND BuildWindowCore(HWND hParent)=0
HwndHost创建时会调用该函数,需在该函数中创建要被托管的窗口句柄,设置其父窗口并返回被托管的句柄
+
void InitHwndHost()
子类需要调用该函数以初始化HwndHost,该函数会调用BuildWindowCore
+
virtual void DestroyWindowCore(HWND hwnd)=0
HwndHost被销毁时会调用该函数来销毁被托管的窗口句柄
+
静态控件
Definition StaticControl.h:11
+
尺寸
Definition Size.h:11
+
+
+ + + + diff --git a/docs/_simple_window_8h_source.html b/docs/_simple_window_8h_source.html index 30c18f91..c4e922c4 100644 --- a/docs/_simple_window_8h_source.html +++ b/docs/_simple_window_8h_source.html @@ -125,62 +125,64 @@
24#include "GridLayout.h"
25#include "GroupBox.h"
26#include "HitTestResult.h"
-
27#include "ILayout.h"
-
28#include "ITag.h"
-
29#include "Icon.h"
-
30#include "ItemsControl.h"
-
31#include "Keys.h"
-
32#include "Label.h"
-
33#include "Layer.h"
-
34#include "LayoutHost.h"
-
35#include "List.h"
-
36#include "ListBox.h"
-
37#include "ListView.h"
-
38#include "Menu.h"
-
39#include "MenuBase.h"
-
40#include "MenuItem.h"
-
41#include "MsgBox.h"
-
42#include "Panel.h"
-
43#include "PanelBase.h"
-
44#include "PasswordBox.h"
-
45#include "Path.h"
-
46#include "Point.h"
-
47#include "ProcMsg.h"
-
48#include "ProgressBar.h"
-
49#include "Property.h"
-
50#include "RadioButton.h"
-
51#include "Rect.h"
-
52#include "RoutedEvent.h"
-
53#include "RoutedEventArgs.h"
-
54#include "Screen.h"
-
55#include "ScrollEnums.h"
-
56#include "Size.h"
-
57#include "Slider.h"
-
58#include "StackLayout.h"
-
59#include "StackLayoutH.h"
-
60#include "StackLayoutV.h"
-
61#include "StackPanel.h"
-
62#include "StaticControl.h"
-
63#include "TabControl.h"
-
64#include "TextBox.h"
-
65#include "TextBoxBase.h"
-
66#include "Thickness.h"
-
67#include "UIElement.h"
-
68#include "UniformGrid.h"
-
69#include "UniformGridLayout.h"
-
70#include "Utils.h"
-
71#include "Window.h"
-
72#include "WndBase.h"
-
73#include "WndMsg.h"
-
74#include "WrapLayout.h"
-
75#include "WrapLayoutH.h"
-
76#include "WrapLayoutV.h"
-
77#include "WrapPanel.h"
-
78
-
79// 启用视觉样式
-
80#pragma comment(linker, "\"/manifestdependency:type='win32' \
-
81name='Microsoft.Windows.Common-Controls' version='6.0.0.0' \
-
82processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
+
27#include "HwndHost.h"
+
28#include "ILayout.h"
+
29#include "ITag.h"
+
30#include "Icon.h"
+
31#include "ItemsControl.h"
+
32#include "Keys.h"
+
33#include "Label.h"
+
34#include "Layer.h"
+
35#include "LayoutHost.h"
+
36#include "List.h"
+
37#include "ListBox.h"
+
38#include "ListView.h"
+
39#include "Menu.h"
+
40#include "MenuBase.h"
+
41#include "MenuItem.h"
+
42#include "MsgBox.h"
+
43#include "Panel.h"
+
44#include "PanelBase.h"
+
45#include "PasswordBox.h"
+
46#include "Path.h"
+
47#include "Point.h"
+
48#include "ProcMsg.h"
+
49#include "ProgressBar.h"
+
50#include "Property.h"
+
51#include "RadioButton.h"
+
52#include "Rect.h"
+
53#include "RoutedEvent.h"
+
54#include "RoutedEventArgs.h"
+
55#include "Screen.h"
+
56#include "ScrollEnums.h"
+
57#include "Size.h"
+
58#include "Slider.h"
+
59#include "Splitter.h"
+
60#include "StackLayout.h"
+
61#include "StackLayoutH.h"
+
62#include "StackLayoutV.h"
+
63#include "StackPanel.h"
+
64#include "StaticControl.h"
+
65#include "TabControl.h"
+
66#include "TextBox.h"
+
67#include "TextBoxBase.h"
+
68#include "Thickness.h"
+
69#include "UIElement.h"
+
70#include "UniformGrid.h"
+
71#include "UniformGridLayout.h"
+
72#include "Utils.h"
+
73#include "Window.h"
+
74#include "WndBase.h"
+
75#include "WndMsg.h"
+
76#include "WrapLayout.h"
+
77#include "WrapLayoutH.h"
+
78#include "WrapLayoutV.h"
+
79#include "WrapPanel.h"
+
80
+
81// 启用视觉样式
+
82#pragma comment(linker, "\"/manifestdependency:type='win32' \
+
83name='Microsoft.Windows.Common-Controls' version='6.0.0.0' \
+
84processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
diff --git a/docs/_splitter_8h_source.html b/docs/_splitter_8h_source.html new file mode 100644 index 00000000..81384990 --- /dev/null +++ b/docs/_splitter_8h_source.html @@ -0,0 +1,144 @@ + + + + + + + +SimpleWindow: Splitter.h 源文件 + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
载入中...
+
搜索中...
+
未找到
+
+
+
+
+ +
+
Splitter.h
+
+
+
1#pragma once
+
2
+
3#include "StaticControl.h"
+
4
+
5namespace sw
+
6{
+
+
10 class Splitter : public StaticControl
+
11 {
+
12 private:
+
16 Orientation _orientation = Orientation::Horizontal;
+
17
+
18 public:
+ +
23
+ +
28
+
29 protected:
+
34 virtual bool OnPaint() override;
+
35
+
41 virtual bool OnSize(Size newClientSize) override;
+
42 };
+
+
43}
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
分隔条
Definition Splitter.h:11
+
virtual bool OnPaint() override
接收到WM_PAINT时调用该函数
+
virtual bool OnSize(Size newClientSize) override
接收到WM_SIZE时调用该函数
+
const Property< Orientation > Orientation
分隔条的方向,给该属性赋值同时会改变HorizontalAlignment和VerticalAlignment属性的值
Definition Splitter.h:22
+
Splitter()
初始化分隔条
+
静态控件
Definition StaticControl.h:11
+
尺寸
Definition Size.h:11
+
+
+ + + + diff --git a/docs/annotated.html b/docs/annotated.html index 215a8b98..82f64790 100644 --- a/docs/annotated.html +++ b/docs/annotated.html @@ -132,72 +132,74 @@  CGridLayoutTag网格布局方式的布局标记  CGridRow网格中的行信息  CGroupBox组合框 - 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滑块控件 - CStackLayout堆叠布局 - CStackLayoutH横向堆叠布局 - CStackLayoutV纵向堆叠布局 - CStackPanel堆叠面板 - CStaticControl静态控件 - CTabControl标签页控件 - CTextBox编辑框 - CTextBoxBase窗口类名为EDIT的控件类型的基类 - CThickness表示矩形区域周围边框的厚度 - CUIElement表示界面中的元素 - CUniformGrid提供一种在网格(网格中的所有单元格都具有相同的大小)中排列内容的方法 - CUniformGridLayout均匀大小网格布局 - CUtils工具类 - CWindow窗口 - CWindowClosingEventArgs窗口正在关闭事件参数类型 - CWndBase表示一个Windows窗口,是所有窗口和控件的基类 - CWrapLayout自动换行布局 - CWrapLayoutH横向自动换行布局 - CWrapLayoutV纵向自动换行布局 - CWrapPanel自动换行面板 - CWriteOnlyProperty只写属性 + CHwndHost将Win32 window托管为SimpleWindow控件 + 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 d6d8f6b7..9f566798 100644 --- a/docs/annotated_dup.js +++ b/docs/annotated_dup.js @@ -36,6 +36,7 @@ var annotated_dup = [ "GridLayoutTag", "structsw_1_1_grid_layout_tag.html", "structsw_1_1_grid_layout_tag" ], [ "GridRow", "structsw_1_1_grid_row.html", "structsw_1_1_grid_row" ], [ "GroupBox", "classsw_1_1_group_box.html", "classsw_1_1_group_box" ], + [ "HwndHost", "classsw_1_1_hwnd_host.html", "classsw_1_1_hwnd_host" ], [ "IconHelper", "classsw_1_1_icon_helper.html", null ], [ "ILayout", "classsw_1_1_i_layout.html", "classsw_1_1_i_layout" ], [ "ITag", "classsw_1_1_i_tag.html", "classsw_1_1_i_tag" ], @@ -81,6 +82,7 @@ var annotated_dup = [ "Size", "structsw_1_1_size.html", "structsw_1_1_size" ], [ "SizeChangedEventArgs", "structsw_1_1_size_changed_event_args.html", null ], [ "Slider", "classsw_1_1_slider.html", "classsw_1_1_slider" ], + [ "Splitter", "classsw_1_1_splitter.html", "classsw_1_1_splitter" ], [ "StackLayout", "classsw_1_1_stack_layout.html", "classsw_1_1_stack_layout" ], [ "StackLayoutH", "classsw_1_1_stack_layout_h.html", "classsw_1_1_stack_layout_h" ], [ "StackLayoutV", "classsw_1_1_stack_layout_v.html", "classsw_1_1_stack_layout_v" ], diff --git a/docs/classes.html b/docs/classes.html index afe34577..d291d6eb 100644 --- a/docs/classes.html +++ b/docs/classes.html @@ -94,7 +94,7 @@
类索引
-
A | B | C | D | F | G | I | K | L | M | P | R | S | T | U | W | _
+
A | B | C | D | F | G | H | I | K | L | M | P | R | S | T | U | W | _
A
@@ -115,36 +115,39 @@
G
GotCharEventArgs (sw)
Grid (sw)
GridColumn (sw)
GridLayout (sw)
GridLayoutTag (sw)
GridRow (sw)
GroupBox (sw)
+
H
+
HwndHost (sw)
+
I
IconHelper (sw)
ILayout (sw)
ITag (sw)
ItemsControl (sw)
-
+
K
KeyDownEventArgs (sw)
KeyFlags (sw)
KeyUpEventArgs (sw)
-
+
L
Label (sw)
Layer (sw)
LayoutHost (sw)
List (sw)
ListBox (sw)
ListView (sw)
ListViewCheckStateChangedEventArgs (sw)
ListViewColumn (sw)
ListViewHeaderClickedEventArgs (sw)
ListViewItemClickedEventArgs (sw)
-
+
M
Menu (sw)
MenuBase (sw)
MenuItem (sw)
MouseButtonDownEventArgs (sw)
MouseButtonUpEventArgs (sw)
MouseMoveEventArgs (sw)
MouseWheelEventArgs (sw)
MsgBox (sw)
-
+
P
Panel (sw)
PanelBase (sw)
PasswordBox (sw)
Path (sw)
Point (sw)
PositionChangedEventArgs (sw)
ProcMsg (sw)
ProgressBar (sw)
Property (sw)
-
+
R
RadioButton (sw)
ReadOnlyProperty (sw)
Rect (sw)
RoutedEventArgs (sw)
RoutedEventArgsOfType (sw)
-
-
S
-
Screen (sw)
ScrollingEventArgs (sw)
ShowContextMenuEventArgs (sw)
Size (sw)
SizeChangedEventArgs (sw)
Slider (sw)
StackLayout (sw)
StackLayoutH (sw)
StackLayoutV (sw)
StackPanel (sw)
StaticControl (sw)
+
S
+
Screen (sw)
ScrollingEventArgs (sw)
ShowContextMenuEventArgs (sw)
Size (sw)
SizeChangedEventArgs (sw)
Slider (sw)
Splitter (sw)
StackLayout (sw)
StackLayoutH (sw)
StackLayoutV (sw)
StackPanel (sw)
StaticControl (sw)
+
T
TabControl (sw)
TextBox (sw)
TextBoxBase (sw)
Thickness (sw)
-
+
U
UIElement (sw)
UniformGrid (sw)
UniformGridLayout (sw)
Utils (sw)
-
+
W
Window (sw)
WindowClosingEventArgs (sw)
WndBase (sw)
WrapLayout (sw)
WrapLayoutH (sw)
WrapLayoutV (sw)
WrapPanel (sw)
WriteOnlyProperty (sw)
-
+
_
_HasEventType (sw)
_HasEventType< T, decltype(void(std::declval< T >().EventType))> (sw)
_IsTypedRoutedEventArgs (sw)
diff --git a/docs/classsw_1_1_hwnd_host-members.html b/docs/classsw_1_1_hwnd_host-members.html new file mode 100644 index 00000000..c8da35da --- /dev/null +++ b/docs/classsw_1_1_hwnd_host-members.html @@ -0,0 +1,294 @@ + + + + + + + +SimpleWindow: 成员列表 + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
载入中...
+
搜索中...
+
未找到
+
+
+
+
+ +
+
sw::HwndHost 成员列表
+
+
+ +

成员的完整列表,这些成员属于 sw::HwndHost,包括所有继承而来的类成员

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AddChild(UIElement *element)sw::UIElement
AddChild(UIElement &element)sw::UIElement
AddChild(UIElement *element, uint64_t layoutTag)sw::UIElement
AddChild(UIElement &element, uint64_t layoutTag)sw::UIElement
Arrange(const sw::Rect &finalPosition) overridesw::UIElementvirtual
BackColorsw::UIElement
BuildWindowCore(HWND hParent)=0sw::HwndHostprotectedpure virtual
ChildCountsw::UIElement
ClearChildren()sw::UIElement
ClientHeightsw::WndBase
ClientRectsw::WndBase
ClientWidthsw::WndBase
Close()sw::WndBase
CollapseWhenHidesw::UIElement
ContextMenusw::UIElement
Control()sw::Controlprotected
DefaultWndProc(const ProcMsg &refMsg)sw::WndBaseprotected
DestroyWindowCore(HWND hwnd)=0sw::HwndHostprotectedpure virtual
Enabledsw::WndBase
Floatsw::UIElement
Focusedsw::WndBase
Fontsw::WndBase
FontChanged(HFONT hfont)sw::WndBaseprotectedvirtual
FontNamesw::WndBase
FontSizesw::WndBase
FontWeightsw::WndBase
GetArrangeOffsetX()sw::UIElementprotected
GetArrangeOffsetY()sw::UIElementprotected
GetChildBottommost(bool update)sw::UIElementprotected
GetChildLayoutAt(int index) overridesw::UIElementvirtual
GetChildLayoutCount() overridesw::UIElementvirtual
GetChildRightmost(bool update)sw::UIElementprotected
GetDesireSize() overridesw::UIElementvirtual
GetExtendedStyle()sw::WndBase
GetExtendedStyle(LONG_PTR mask)sw::WndBase
GetFontHandle()sw::WndBase
GetLayoutTag() overridesw::UIElementvirtual
GetNextElement()sw::UIElement
GetNextTabStopElement()sw::UIElement
GetRealBackColor()sw::UIElement
GetRealTextColor()sw::UIElement
GetRootElement()sw::UIElement
GetStyle()sw::WndBase
GetStyle(LONG_PTR mask)sw::WndBase
GetTag() overridesw::UIElementvirtual
GetText()sw::WndBaseprotectedvirtual
GetWndBase(HWND hwnd)sw::WndBasestatic
Handlesw::WndBase
HandleChenged()sw::Controlprotectedvirtual
HandleInitialized(HWND hwnd)sw::WndBaseprotectedvirtual
Heightsw::WndBase
HorizontalAlignmentsw::UIElement
IndexOf(UIElement *element)sw::UIElement
IndexOf(UIElement &element)sw::UIElement
InheritTextColorsw::UIElement
InitControl(LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
InitHwndHost()sw::HwndHostprotected
InitWindow(LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
IsControl()sw::WndBase
IsDestroyedsw::WndBase
IsRootElement()sw::UIElement
IsRoutedEventRegistered(RoutedEventType eventType)sw::UIElement
IsVisible()sw::WndBase
LayoutTagsw::UIElement
Leftsw::WndBase
Marginsw::UIElement
Measure(const Size &availableSize) overridesw::UIElementvirtual
MoveToBottom()sw::UIElement
MoveToTop()sw::UIElement
NcHitTest(const Point &testPoint)sw::WndBase
Notifysw::StaticControl
NotifyLayoutUpdated()sw::UIElementprotected
OnAcceleratorCommand(int id)sw::WndBaseprotectedvirtual
OnAddedChild(UIElement &element)sw::UIElementprotectedvirtual
OnChar(wchar_t ch, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnClose() overridesw::UIElementprotectedvirtual
OnColor(HDC hdc, HBRUSH &hRetBrush) overridesw::UIElementprotectedvirtual
OnCommand(int code)sw::WndBaseprotectedvirtual
OnContextMenu(bool isKeyboardMsg, Point mousePosition) overridesw::UIElementprotectedvirtual
OnControlCommand(WndBase *pControl, int code, int id)sw::WndBaseprotectedvirtual
OnCreate()sw::WndBaseprotectedvirtual
OnCtlColor(WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)sw::WndBaseprotectedvirtual
OnDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnDestroy() overridesw::HwndHostprotectedvirtual
OnDrawFocusRect()sw::UIElementprotectedvirtual
OnDrawItem(int id, DRAWITEMSTRUCT *pDrawItem)sw::WndBaseprotectedvirtual
OnEnabledChanged(bool newValue)sw::WndBaseprotectedvirtual
OnEndPaint() overridesw::UIElementprotectedvirtual
OnEraseBackground(int &result)sw::WndBaseprotectedvirtual
OnHorizontalScroll(int event, int pos)sw::WndBaseprotectedvirtual
OnKeyDown(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKeyUp(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKillFocus(HWND hNextFocus) overridesw::UIElementprotectedvirtual
OnMenuCommand(int id) overridesw::UIElementprotectedvirtual
OnMouseLeave() overridesw::UIElementprotectedvirtual
OnMouseLeftButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseLeftButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseLeftButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseMiddleButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMove(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseRightButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseWheel(int wheelDelta, Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMove(Point newClientPosition) overridesw::UIElementprotectedvirtual
OnNcHitTest(const Point &testPoint, HitTestResult &result)sw::WndBaseprotectedvirtual
OnNotified(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnNotify(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnPaint()sw::WndBaseprotectedvirtual
OnRemovedChild(UIElement &element)sw::UIElementprotectedvirtual
OnSetCursor(HWND hwnd, HitTestResult hitTest, int message, bool &result) overridesw::UIElementprotectedvirtual
OnSetFocus(HWND hPrevFocus) overridesw::UIElementprotectedvirtual
OnSize(Size newClientSize) overridesw::HwndHostprotectedvirtual
OnSysChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyDown(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyUp(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnTabStop()sw::UIElementprotectedvirtual
OnTextChanged() overridesw::UIElementprotectedvirtual
OnVerticalScroll(int event, int pos)sw::WndBaseprotectedvirtual
operator=(const WndBase &)=delete (定义于 sw::WndBase)sw::WndBaseprotected
operator=(WndBase &&)=delete (定义于 sw::WndBase)sw::WndBaseprotected
operator[](int index) constsw::UIElement
Parentsw::UIElement
ParentChanged(WndBase *newParent) overridesw::UIElementprotectedvirtual
PointFromScreen(const Point &screenPoint)sw::WndBase
PointToScreen(const Point &point)sw::WndBase
RaiseRoutedEvent(RoutedEventType eventType)sw::UIElementprotected
RaiseRoutedEvent(RoutedEventArgs &eventArgs)sw::UIElementprotected
Rectsw::WndBase
Redraw(bool erase=false)sw::WndBase
RegisterRoutedEvent(RoutedEventType eventType, const RoutedEvent &handler)sw::UIElement
RegisterRoutedEvent(RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))sw::UIElementinline
RegisterRoutedEvent(std::function< void(UIElement &, TEventArgs &)> handler)sw::UIElementinline
RegisterRoutedEvent(THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))sw::UIElementinline
RemoveChild(UIElement *element)sw::UIElement
RemoveChild(UIElement &element)sw::UIElement
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
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_hwnd_host.html b/docs/classsw_1_1_hwnd_host.html new file mode 100644 index 00000000..188cc03b --- /dev/null +++ b/docs/classsw_1_1_hwnd_host.html @@ -0,0 +1,927 @@ + + + + + + + +SimpleWindow: sw::HwndHost类 参考 + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
载入中...
+
搜索中...
+
未找到
+
+
+
+
+ +
+ +
sw::HwndHost类 参考abstract
+
+
+ +

将Win32 window托管为SimpleWindow控件 + 更多...

+ +

#include <HwndHost.h>

+
+类 sw::HwndHost 继承关系图:
+
+
+ + +sw::StaticControl +sw::Control +sw::UIElement +sw::WndBase +sw::ILayout +sw::ITag + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Protected 成员函数

+void InitHwndHost ()
 子类需要调用该函数以初始化HwndHost,该函数会调用BuildWindowCore
 
virtual bool OnSize (Size newClientSize) override
 接收到WM_SIZE时调用该函数
 
virtual bool OnDestroy () override
 接收到WM_DESTROY时调用该函数
 
virtual HWND BuildWindowCore (HWND hParent)=0
 HwndHost创建时会调用该函数,需在该函数中创建要被托管的窗口句柄,设置其父窗口并返回被托管的句柄
 
virtual void DestroyWindowCore (HWND hwnd)=0
 HwndHost被销毁时会调用该函数来销毁被托管的窗口句柄
 
- Protected 成员函数 继承自 sw::Control
Control ()
 初始化控件
 
+void ResetHandle ()
 销毁控件句柄并重新初始化,该操作会创建新的句柄并设置样式、文本、字体等
 
+virtual void HandleChenged ()
 控件句柄发生改变时调用该函数
 
- Protected 成员函数 继承自 sw::UIElement
UIElement ()
 初始化UIElement
 
void RaiseRoutedEvent (RoutedEventType eventType)
 触发路由事件
 
void RaiseRoutedEvent (RoutedEventArgs &eventArgs)
 触发路由事件
 
+void NotifyLayoutUpdated ()
 通知顶级窗口布局改变
 
+doubleGetArrangeOffsetX ()
 获取Arrange时子元素的水平偏移量
 
+doubleGetArrangeOffsetY ()
 获取Arrange时子元素的垂直偏移量
 
double GetChildRightmost (bool update)
 获取所有子元素在当前元素中最右边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
double GetChildBottommost (bool update)
 获取所有子元素在当前元素中最底边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
+void UpdateChildrenZOrder ()
 更新子元素的Z轴位置
 
+void UpdateSiblingsZOrder ()
 更新兄弟元素的Z轴位置
 
+void SetNextTabStopFocus ()
 设置下一个TabStop属性为true的元素为焦点元素
 
virtual void SetBackColor (Color color, bool redraw)
 设置背景颜色
 
virtual void SetTextColor (Color color, bool redraw)
 设置文本颜色
 
virtual void OnAddedChild (UIElement &element)
 添加子元素后调用该函数
 
virtual void OnRemovedChild (UIElement &element)
 移除子元素后调用该函数
 
+virtual void OnTabStop ()
 通过tab键将焦点移动到当前元素时调用该函数
 
virtual void OnDrawFocusRect ()
 绘制虚线框时调用该函数
 
virtual bool SetParent (WndBase *parent) override
 设置父窗口
 
virtual void ParentChanged (WndBase *newParent) override
 父窗口改变时调用此函数
 
virtual void OnEndPaint () override
 在OnPaint函数完成之后调用该函数
 
virtual bool OnClose () override
 接收到WM_CLOSE时调用该函数
 
virtual bool OnMove (Point newClientPosition) override
 接收到WM_MOVE时调用该函数
 
virtual void OnTextChanged () override
 Text属性更改时调用此函数
 
virtual void VisibleChanged (bool newVisible) override
 Visible属性改变时调用此函数
 
virtual bool OnSetFocus (HWND hPrevFocus) override
 接收到WM_SETFOCUS时调用该函数
 
virtual bool OnKillFocus (HWND hNextFocus) override
 接收到WM_KILLFOCUS时调用该函数
 
virtual bool OnChar (wchar_t ch, KeyFlags flags) override
 接收到WM_CHAR时调用该函数
 
virtual bool OnKeyDown (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYDOWN时调用该函数
 
virtual bool OnKeyUp (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYUP时调用该函数
 
virtual bool OnMouseMove (Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEMOVE时调用该函数
 
virtual bool OnMouseLeave () override
 接收到WM_MOUSELEAVE时调用该函数
 
virtual bool OnMouseWheel (int wheelDelta, Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEWHEEL时调用该函数
 
virtual bool OnMouseLeftButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONDOWN时调用该函数
 
virtual bool OnMouseLeftButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONUP时调用该函数
 
virtual bool OnMouseRightButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONDOWN时调用该函数
 
virtual bool OnMouseRightButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONUP时调用该函数
 
virtual bool OnMouseMiddleButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONDOWN时调用该函数
 
virtual bool OnMouseMiddleButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONUP时调用该函数
 
virtual bool OnContextMenu (bool isKeyboardMsg, Point mousePosition) override
 接收到WM_CONTEXTMENU后调用目标控件的该函数
 
virtual void OnMenuCommand (int id) override
 当WM_COMMAND接收到菜单命令时调用该函数
 
virtual bool OnColor (HDC hdc, HBRUSH &hRetBrush) override
 父窗口接收到WM_CTLCOLORxxx时调用对应控件的该函数
 
virtual bool OnSetCursor (HWND hwnd, HitTestResult hitTest, int message, bool &result) override
 接收到WM_SETCURSOR消息时调用该函数
 
- Protected 成员函数 继承自 sw::WndBase
WndBase ()
 初始化WndBase
 
WndBase (const WndBase &)=delete
 
WndBase (WndBase &&)=delete
 
+WndBaseoperator= (const WndBase &)=delete
 
+WndBaseoperator= (WndBase &&)=delete
 
+void InitWindow (LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为窗口,该函数会调用CreateWindowExW
 
+void InitControl (LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为控件,该函数会调用CreateWindowExW
 
+LRESULT DefaultWndProc (const ProcMsg &refMsg)
 调用默认的WndProc,对于窗口则调用DefWindowProcW,控件则调用_controlOldWndProc
 
virtual LRESULT WndProc (const ProcMsg &refMsg)
 对WndProc的封装
 
+void UpdateText ()
 更新_text字段
 
virtual std::wstring & GetText ()
 获取窗口文本
 
virtual void SetText (const std::wstring &value)
 调用SetWindowTextW设置窗口文本
 
virtual bool OnCreate ()
 接收到WM_CREATE时调用该函数
 
virtual bool OnPaint ()
 接收到WM_PAINT时调用该函数
 
virtual bool OnMouseLeftButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_LBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseRightButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_RBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseMiddleButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_MBUTTONDBLCLK时调用该函数
 
virtual bool OnDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_DEADCHAR时调用该函数
 
virtual bool OnSysChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSCHAR时调用该函数
 
virtual bool OnSysDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSDEADCHAR时调用该函数
 
virtual bool OnSysKeyDown (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYDOWN时调用该函数
 
virtual bool OnSysKeyUp (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYUP时调用该函数
 
virtual void OnCommand (int code)
 当父窗口接收到控件的WM_COMMAND时调用该函数
 
virtual void OnControlCommand (WndBase *pControl, int code, int id)
 当WM_COMMAND接收到控件命令时调用该函数
 
virtual void OnAcceleratorCommand (int id)
 当WM_COMMAND接收到快捷键命令时调用该函数
 
virtual void HandleInitialized (HWND hwnd)
 窗口句柄初始化完成
 
virtual void FontChanged (HFONT hfont)
 字体改变时调用该函数
 
virtual bool OnNotify (NMHDR *pNMHDR)
 接收到WM_NOTIFY后调用该函数
 
virtual void OnNotified (NMHDR *pNMHDR)
 父窗口接收到WM_NOTIFY后调用发出通知控件的该函数
 
virtual bool OnVerticalScroll (int event, int pos)
 接收到WM_VSCROLL时调用目标控件的该函数
 
virtual bool OnHorizontalScroll (int event, int pos)
 接收到WM_HSCROLL时调用目标控件的该函数
 
virtual bool OnEnabledChanged (bool newValue)
 接收到WM_ENABLE时调用该函数
 
virtual bool OnCtlColor (WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)
 接收到WM_CTLCOLORxxx时调用该函数
 
virtual void OnNcHitTest (const Point &testPoint, HitTestResult &result)
 接收到WM_NCHITTEST后调用该函数
 
virtual bool OnEraseBackground (int &result)
 接收到WM_ERASEBKGND时调用该函数
 
virtual bool OnDrawItem (int id, DRAWITEMSTRUCT *pDrawItem)
 接收到WM_DRAWITEM时调用该函数
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+额外继承的成员函数

- Public 成员函数 继承自 sw::StaticControl
StaticControl ()
 初始化静态控件
 
- Public 成员函数 继承自 sw::Control
+virtual ~Control ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
- Public 成员函数 继承自 sw::UIElement
+virtual ~UIElement ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
void RegisterRoutedEvent (RoutedEventType eventType, const RoutedEvent &handler)
 注册路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename T >
void RegisterRoutedEvent (RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))
 注册成员函数作为路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename TEventArgs , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (std::function< void(UIElement &, TEventArgs &)> handler)
 根据事件参数类型注册路由事件
 
template<typename TEventArgs , typename THandleObj , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))
 根据事件参数类型注册成员函数作为路由事件
 
void UnregisterRoutedEvent (RoutedEventType eventType)
 取消对应类型路由事件的注册
 
bool IsRoutedEventRegistered (RoutedEventType eventType)
 判断路由事件是否已被注册
 
bool AddChild (UIElement *element)
 添加子控件
 
bool AddChild (UIElement &element)
 添加子控件
 
bool AddChild (UIElement *element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool AddChild (UIElement &element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool RemoveChildAt (int index)
 移除指定索引处的子控件
 
bool RemoveChild (UIElement *element)
 移除子控件
 
bool RemoveChild (UIElement &element)
 移除子控件
 
+void ClearChildren ()
 移除所有子控件
 
int IndexOf (UIElement *element)
 获取指定元素的索引
 
int IndexOf (UIElement &element)
 获取指定元素的索引
 
+UIElementoperator[] (int index) const
 通过索引获取子控件
 
void ShowContextMenu (const Point &point)
 弹出当前元素的上下文菜单
 
+void MoveToTop ()
 移动到界面顶部
 
+void MoveToBottom ()
 移动到界面底部
 
+bool IsRootElement ()
 判断当前元素是否为根节点
 
+UIElementGetRootElement ()
 获取当前元素所在界面树的根节点
 
+UIElementGetNextElement ()
 获取当前元素在界面树上的下一个节点,若已是最后一个节点则返回根节点
 
+UIElementGetNextTabStopElement ()
 获取下一个TabStop属性为true的元素
 
+Color GetRealBackColor ()
 获取当前要显示的背景颜色:当Transparent为true时获取到祖先节点中首个Transparent为false的背景颜色,否则返回当前元素的背景颜色
 
+Color GetRealTextColor ()
 获取当前要显示的文本颜色:当InheritTextColor为true时获取到祖先节点中首个InheritTextColor为false的文本颜色,否则返回当前元素的文本颜色
 
void SetCursor (HCURSOR hCursor)
 设置鼠标样式
 
void SetCursor (StandardCursor cursor)
 设置鼠标样式
 
+void ResetCursor ()
 将鼠标样式设置为默认样式
 
void SetAlignment (sw::HorizontalAlignment horz, sw::VerticalAlignment vert)
 设置对齐方式
 
virtual uint64_t GetTag () override
 获取Tag
 
virtual void SetTag (uint64_t tag) override
 设置Tag
 
virtual uint64_t GetLayoutTag () override
 获取布局标记
 
virtual int GetChildLayoutCount () override
 获取参与布局的子控件数量
 
virtual ILayoutGetChildLayoutAt (int index) override
 获取对应索引处的子控件,使用此函数前必须先调用GetChildLayoutCount
 
virtual Size GetDesireSize () override
 获取控件所需尺寸
 
virtual void SetDesireSize (const Size &size) override
 设置当前控件所需的尺寸
 
virtual void Measure (const Size &availableSize) override
 测量控件所需尺寸
 
virtual void Arrange (const sw::Rect &finalPosition) override
 安排控件位置
 
- Public 成员函数 继承自 sw::WndBase
+virtual ~WndBase ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
+void Show (int nCmdShow)
 该函数调用ShowWindow
 
+void Close ()
 发送关闭消息
 
+void Update ()
 该函数调用UpdateWindow
 
+void UpdateFont ()
 更新字体
 
+HFONT GetFontHandle ()
 获取字体句柄
 
void Redraw (bool erase=false)
 重画
 
+bool IsControl ()
 判断当前对象是否是控件
 
+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)
 打开或关闭指定的扩展样式
 
Point PointToScreen (const Point &point)
 获取用户区点在屏幕上点的位置
 
Point PointFromScreen (const Point &screenPoint)
 获取屏幕上点在当前用户区点的位置
 
+LRESULT SendMessageA (UINT uMsg, WPARAM wParam, LPARAM lParam)
 发送消息(ASCII)
 
+LRESULT SendMessageW (UINT uMsg, WPARAM wParam, LPARAM lParam)
 发送消息(UNICODE)
 
HitTestResult NcHitTest (const Point &testPoint)
 测试指定点在窗口的哪一部分
 
- 静态 Public 成员函数 继承自 sw::WndBase
static WndBaseGetWndBase (HWND hwnd)
 通过窗口句柄获取WndBase
 
- Public 属性 继承自 sw::StaticControl
+const Property< boolNotify
 获取或设置控件的SS_NOTIFY样式
 
- Public 属性 继承自 sw::UIElement
+const Property< ThicknessMargin
 边距
 
+const Property< HorizontalAlignment > HorizontalAlignment
 水平对齐方式
 
+const Property< VerticalAlignment > VerticalAlignment
 垂直对齐方式
 
+const ReadOnlyProperty< intChildCount
 子控件数量
 
+const Property< boolCollapseWhenHide
 是否在不可见时不参与布局
 
+const ReadOnlyProperty< UIElement * > Parent
 指向父元素的指针,当前元素为顶级窗口时该值为nullptr
 
+const Property< uint64_tTag
 储存用户自定义信息的标记
 
+const Property< uint64_tLayoutTag
 布局标记,对于不同的布局有不同含义
 
+const Property< sw::ContextMenu * > ContextMenu
 右键按下时弹出的菜单
 
+const Property< boolFloat
 元素是否悬浮,若元素悬浮则该元素不会随滚动条滚动而改变位置
 
+const Property< boolTabStop
 表示用户是否可以通过按下Tab键将焦点移动到当前元素
 
+const Property< ColorBackColor
 背景颜色,修改该属性会同时将Transparent属性设为false,对于部分控件该属性可能不生效
 
+const Property< ColorTextColor
 文本颜色,修改该属性会同时将InheritTextColor属性设为false,对于部分控件该属性可能不生效
 
+const Property< boolTransparent
 是否使用透明背景(此属性并非真正意义上的透明,将该属性设为true可继承父元素的背景颜色)
 
+const Property< boolInheritTextColor
 是否继承父元素的文本颜色
 
- Public 属性 继承自 sw::WndBase
+const ReadOnlyProperty< HWNDHandle
 窗口句柄
 
+const Property< sw::FontFont
 字体
 
+const Property< std::wstring > FontName
 字体名称
 
+const Property< doubleFontSize
 字体大小
 
+const Property< sw::FontWeight > FontWeight
 字体粗细
 
+const Property< sw::RectRect
 位置和尺寸
 
+const Property< doubleLeft
 左边
 
+const Property< doubleTop
 顶边
 
+const Property< doubleWidth
 宽度
 
+const Property< doubleHeight
 高度
 
+const ReadOnlyProperty< sw::RectClientRect
 用户区尺寸
 
+const ReadOnlyProperty< doubleClientWidth
 用户区宽度
 
+const ReadOnlyProperty< doubleClientHeight
 用户区高度
 
+const Property< boolEnabled
 窗口或控件是否可用
 
+const Property< boolVisible
 窗口或控件是否可见
 
+const Property< std::wstring > Text
 窗口标题或控件文本
 
+const Property< boolFocused
 窗口是否拥有焦点
 
+const ReadOnlyProperty< WndBase * > Parent
 父窗口
 
+const ReadOnlyProperty< boolIsDestroyed
 是否已销毁,当该值为true时不应该继续使用当前对象
 
+

详细描述

+

将Win32 window托管为SimpleWindow控件

+

成员函数说明

+ +

◆ BuildWindowCore()

+ +
+
+ + + + + +
+ + + + + + + +
virtual HWND sw::HwndHost::BuildWindowCore (HWND hParent)
+
+protectedpure virtual
+
+ +

HwndHost创建时会调用该函数,需在该函数中创建要被托管的窗口句柄,设置其父窗口并返回被托管的句柄

+
参数
+ + +
hParent需要给被托管窗口句柄设置的父窗口句柄
+
+
+
返回
被托管窗口句柄
+ +
+
+ +

◆ DestroyWindowCore()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::HwndHost::DestroyWindowCore (HWND hwnd)
+
+protectedpure virtual
+
+ +

HwndHost被销毁时会调用该函数来销毁被托管的窗口句柄

+
参数
+ + +
hwnd被托管窗口句柄
+
+
+ +
+
+ +

◆ OnDestroy()

+ +
+
+ + + + + +
+ + + + + + + +
virtual bool sw::HwndHost::OnDestroy ()
+
+overrideprotectedvirtual
+
+ +

接收到WM_DESTROY时调用该函数

+
返回
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

重载 sw::WndBase .

+ +
+
+ +

◆ OnSize()

+ +
+
+ + + + + +
+ + + + + + + +
virtual bool sw::HwndHost::OnSize (Size newClientSize)
+
+overrideprotectedvirtual
+
+ +

接收到WM_SIZE时调用该函数

+
参数
+ + +
newClientSize改变后的用户区尺寸
+
+
+
返回
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

重载 sw::UIElement .

+ +
+
+
该类的文档由以下文件生成: +
+
+ + + + diff --git a/docs/classsw_1_1_hwnd_host.js b/docs/classsw_1_1_hwnd_host.js new file mode 100644 index 00000000..9aac60c4 --- /dev/null +++ b/docs/classsw_1_1_hwnd_host.js @@ -0,0 +1,8 @@ +var classsw_1_1_hwnd_host = +[ + [ "BuildWindowCore", "classsw_1_1_hwnd_host.html#a9ac22adfa9d96348e7f89932d82cf3d3", null ], + [ "DestroyWindowCore", "classsw_1_1_hwnd_host.html#af644778e078302b01faf0ac2f5c7b75c", null ], + [ "InitHwndHost", "classsw_1_1_hwnd_host.html#aebdcab5949f812ae64ecd79633cacc49", null ], + [ "OnDestroy", "classsw_1_1_hwnd_host.html#a9535b63e17fbb079ce4f618c288cb9bd", null ], + [ "OnSize", "classsw_1_1_hwnd_host.html#a811a6d21dd8534addfc401bb79f829f7", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_hwnd_host.png b/docs/classsw_1_1_hwnd_host.png new file mode 100644 index 00000000..daedb792 Binary files /dev/null and b/docs/classsw_1_1_hwnd_host.png differ diff --git a/docs/classsw_1_1_read_only_property.html b/docs/classsw_1_1_read_only_property.html index 1a83f3f2..abb527f7 100644 --- a/docs/classsw_1_1_read_only_property.html +++ b/docs/classsw_1_1_read_only_property.html @@ -123,21 +123,22 @@ sw::Property< wchar_t > sw::Property< uint16_t > sw::Property< ProgressBarState > -sw::Property< sw::Orientation > -sw::Property< TabAlignment > -sw::Property< sw::Thickness > -sw::Property< HorizontalAlignment > -sw::Property< VerticalAlignment > -sw::Property< uint64_t > -sw::Property< sw::ContextMenu * > -sw::Property< sw::Color > -sw::Property< WindowStartupLocation > -sw::Property< WindowState > -sw::Property< sw::Menu * > -sw::Property< sw::Font > -sw::Property< sw::FontWeight > -sw::Property< sw::Rect > -sw::Property< T > +sw::Property< Orientation > +sw::Property< sw::Orientation > +sw::Property< TabAlignment > +sw::Property< sw::Thickness > +sw::Property< HorizontalAlignment > +sw::Property< VerticalAlignment > +sw::Property< uint64_t > +sw::Property< sw::ContextMenu * > +sw::Property< sw::Color > +sw::Property< WindowStartupLocation > +sw::Property< WindowState > +sw::Property< sw::Menu * > +sw::Property< sw::Font > +sw::Property< sw::FontWeight > +sw::Property< sw::Rect > +sw::Property< T >
diff --git a/docs/classsw_1_1_read_only_property.png b/docs/classsw_1_1_read_only_property.png index e934adfb..b5aa852b 100644 Binary files a/docs/classsw_1_1_read_only_property.png and b/docs/classsw_1_1_read_only_property.png differ diff --git a/docs/classsw_1_1_splitter-members.html b/docs/classsw_1_1_splitter-members.html new file mode 100644 index 00000000..6744dc43 --- /dev/null +++ b/docs/classsw_1_1_splitter-members.html @@ -0,0 +1,293 @@ + + + + + + + +SimpleWindow: 成员列表 + + + + + + + + + + + + + + + +
+
+
+ + + + + +
+
SimpleWindow +
+
+ + + + + + + + + +
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
载入中...
+
搜索中...
+
未找到
+
+
+
+
+ +
+
sw::Splitter 成员列表
+
+
+ +

成员的完整列表,这些成员属于 sw::Splitter,包括所有继承而来的类成员

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AddChild(UIElement *element)sw::UIElement
AddChild(UIElement &element)sw::UIElement
AddChild(UIElement *element, uint64_t layoutTag)sw::UIElement
AddChild(UIElement &element, uint64_t layoutTag)sw::UIElement
Arrange(const sw::Rect &finalPosition) overridesw::UIElementvirtual
BackColorsw::UIElement
ChildCountsw::UIElement
ClearChildren()sw::UIElement
ClientHeightsw::WndBase
ClientRectsw::WndBase
ClientWidthsw::WndBase
Close()sw::WndBase
CollapseWhenHidesw::UIElement
ContextMenusw::UIElement
Control()sw::Controlprotected
DefaultWndProc(const ProcMsg &refMsg)sw::WndBaseprotected
Enabledsw::WndBase
Floatsw::UIElement
Focusedsw::WndBase
Fontsw::WndBase
FontChanged(HFONT hfont)sw::WndBaseprotectedvirtual
FontNamesw::WndBase
FontSizesw::WndBase
FontWeightsw::WndBase
GetArrangeOffsetX()sw::UIElementprotected
GetArrangeOffsetY()sw::UIElementprotected
GetChildBottommost(bool update)sw::UIElementprotected
GetChildLayoutAt(int index) overridesw::UIElementvirtual
GetChildLayoutCount() overridesw::UIElementvirtual
GetChildRightmost(bool update)sw::UIElementprotected
GetDesireSize() overridesw::UIElementvirtual
GetExtendedStyle()sw::WndBase
GetExtendedStyle(LONG_PTR mask)sw::WndBase
GetFontHandle()sw::WndBase
GetLayoutTag() overridesw::UIElementvirtual
GetNextElement()sw::UIElement
GetNextTabStopElement()sw::UIElement
GetRealBackColor()sw::UIElement
GetRealTextColor()sw::UIElement
GetRootElement()sw::UIElement
GetStyle()sw::WndBase
GetStyle(LONG_PTR mask)sw::WndBase
GetTag() overridesw::UIElementvirtual
GetText()sw::WndBaseprotectedvirtual
GetWndBase(HWND hwnd)sw::WndBasestatic
Handlesw::WndBase
HandleChenged()sw::Controlprotectedvirtual
HandleInitialized(HWND hwnd)sw::WndBaseprotectedvirtual
Heightsw::WndBase
HorizontalAlignmentsw::UIElement
IndexOf(UIElement *element)sw::UIElement
IndexOf(UIElement &element)sw::UIElement
InheritTextColorsw::UIElement
InitControl(LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
InitWindow(LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
IsControl()sw::WndBase
IsDestroyedsw::WndBase
IsRootElement()sw::UIElement
IsRoutedEventRegistered(RoutedEventType eventType)sw::UIElement
IsVisible()sw::WndBase
LayoutTagsw::UIElement
Leftsw::WndBase
Marginsw::UIElement
Measure(const Size &availableSize) overridesw::UIElementvirtual
MoveToBottom()sw::UIElement
MoveToTop()sw::UIElement
NcHitTest(const Point &testPoint)sw::WndBase
Notifysw::StaticControl
NotifyLayoutUpdated()sw::UIElementprotected
OnAcceleratorCommand(int id)sw::WndBaseprotectedvirtual
OnAddedChild(UIElement &element)sw::UIElementprotectedvirtual
OnChar(wchar_t ch, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnClose() overridesw::UIElementprotectedvirtual
OnColor(HDC hdc, HBRUSH &hRetBrush) overridesw::UIElementprotectedvirtual
OnCommand(int code)sw::WndBaseprotectedvirtual
OnContextMenu(bool isKeyboardMsg, Point mousePosition) overridesw::UIElementprotectedvirtual
OnControlCommand(WndBase *pControl, int code, int id)sw::WndBaseprotectedvirtual
OnCreate()sw::WndBaseprotectedvirtual
OnCtlColor(WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)sw::WndBaseprotectedvirtual
OnDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnDestroy()sw::WndBaseprotectedvirtual
OnDrawFocusRect()sw::UIElementprotectedvirtual
OnDrawItem(int id, DRAWITEMSTRUCT *pDrawItem)sw::WndBaseprotectedvirtual
OnEnabledChanged(bool newValue)sw::WndBaseprotectedvirtual
OnEndPaint() overridesw::UIElementprotectedvirtual
OnEraseBackground(int &result)sw::WndBaseprotectedvirtual
OnHorizontalScroll(int event, int pos)sw::WndBaseprotectedvirtual
OnKeyDown(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKeyUp(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKillFocus(HWND hNextFocus) overridesw::UIElementprotectedvirtual
OnMenuCommand(int id) overridesw::UIElementprotectedvirtual
OnMouseLeave() overridesw::UIElementprotectedvirtual
OnMouseLeftButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseLeftButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseLeftButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseMiddleButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMove(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseRightButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseWheel(int wheelDelta, Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMove(Point newClientPosition) overridesw::UIElementprotectedvirtual
OnNcHitTest(const Point &testPoint, HitTestResult &result)sw::WndBaseprotectedvirtual
OnNotified(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnNotify(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnPaint() overridesw::Splitterprotectedvirtual
OnRemovedChild(UIElement &element)sw::UIElementprotectedvirtual
OnSetCursor(HWND hwnd, HitTestResult hitTest, int message, bool &result) overridesw::UIElementprotectedvirtual
OnSetFocus(HWND hPrevFocus) overridesw::UIElementprotectedvirtual
OnSize(Size newClientSize) overridesw::Splitterprotectedvirtual
OnSysChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyDown(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyUp(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnTabStop()sw::UIElementprotectedvirtual
OnTextChanged() overridesw::UIElementprotectedvirtual
OnVerticalScroll(int event, int pos)sw::WndBaseprotectedvirtual
operator=(const WndBase &)=delete (定义于 sw::WndBase)sw::WndBaseprotected
operator=(WndBase &&)=delete (定义于 sw::WndBase)sw::WndBaseprotected
operator[](int index) constsw::UIElement
Orientationsw::Splitter
Parentsw::UIElement
ParentChanged(WndBase *newParent) overridesw::UIElementprotectedvirtual
PointFromScreen(const Point &screenPoint)sw::WndBase
PointToScreen(const Point &point)sw::WndBase
RaiseRoutedEvent(RoutedEventType eventType)sw::UIElementprotected
RaiseRoutedEvent(RoutedEventArgs &eventArgs)sw::UIElementprotected
Rectsw::WndBase
Redraw(bool erase=false)sw::WndBase
RegisterRoutedEvent(RoutedEventType eventType, const RoutedEvent &handler)sw::UIElement
RegisterRoutedEvent(RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))sw::UIElementinline
RegisterRoutedEvent(std::function< void(UIElement &, TEventArgs &)> handler)sw::UIElementinline
RegisterRoutedEvent(THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))sw::UIElementinline
RemoveChild(UIElement *element)sw::UIElement
RemoveChild(UIElement &element)sw::UIElement
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
Splitter()sw::Splitter
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_splitter.html b/docs/classsw_1_1_splitter.html new file mode 100644 index 00000000..138274ec --- /dev/null +++ b/docs/classsw_1_1_splitter.html @@ -0,0 +1,866 @@ + + + + + + + +SimpleWindow: sw::Splitter类 参考 + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
载入中...
+
搜索中...
+
未找到
+
+
+
+
+ +
+ +
sw::Splitter类 参考
+
+
+ +

分隔条 + 更多...

+ +

#include <Splitter.h>

+
+类 sw::Splitter 继承关系图:
+
+
+ + +sw::StaticControl +sw::Control +sw::UIElement +sw::WndBase +sw::ILayout +sw::ITag + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public 成员函数

Splitter ()
 初始化分隔条
 
- Public 成员函数 继承自 sw::StaticControl
StaticControl ()
 初始化静态控件
 
- Public 成员函数 继承自 sw::Control
+virtual ~Control ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
- Public 成员函数 继承自 sw::UIElement
+virtual ~UIElement ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
void RegisterRoutedEvent (RoutedEventType eventType, const RoutedEvent &handler)
 注册路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename T >
void RegisterRoutedEvent (RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))
 注册成员函数作为路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename TEventArgs , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (std::function< void(UIElement &, TEventArgs &)> handler)
 根据事件参数类型注册路由事件
 
template<typename TEventArgs , typename THandleObj , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))
 根据事件参数类型注册成员函数作为路由事件
 
void UnregisterRoutedEvent (RoutedEventType eventType)
 取消对应类型路由事件的注册
 
bool IsRoutedEventRegistered (RoutedEventType eventType)
 判断路由事件是否已被注册
 
bool AddChild (UIElement *element)
 添加子控件
 
bool AddChild (UIElement &element)
 添加子控件
 
bool AddChild (UIElement *element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool AddChild (UIElement &element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool RemoveChildAt (int index)
 移除指定索引处的子控件
 
bool RemoveChild (UIElement *element)
 移除子控件
 
bool RemoveChild (UIElement &element)
 移除子控件
 
+void ClearChildren ()
 移除所有子控件
 
int IndexOf (UIElement *element)
 获取指定元素的索引
 
int IndexOf (UIElement &element)
 获取指定元素的索引
 
+UIElementoperator[] (int index) const
 通过索引获取子控件
 
void ShowContextMenu (const Point &point)
 弹出当前元素的上下文菜单
 
+void MoveToTop ()
 移动到界面顶部
 
+void MoveToBottom ()
 移动到界面底部
 
+bool IsRootElement ()
 判断当前元素是否为根节点
 
+UIElementGetRootElement ()
 获取当前元素所在界面树的根节点
 
+UIElementGetNextElement ()
 获取当前元素在界面树上的下一个节点,若已是最后一个节点则返回根节点
 
+UIElementGetNextTabStopElement ()
 获取下一个TabStop属性为true的元素
 
+Color GetRealBackColor ()
 获取当前要显示的背景颜色:当Transparent为true时获取到祖先节点中首个Transparent为false的背景颜色,否则返回当前元素的背景颜色
 
+Color GetRealTextColor ()
 获取当前要显示的文本颜色:当InheritTextColor为true时获取到祖先节点中首个InheritTextColor为false的文本颜色,否则返回当前元素的文本颜色
 
void SetCursor (HCURSOR hCursor)
 设置鼠标样式
 
void SetCursor (StandardCursor cursor)
 设置鼠标样式
 
+void ResetCursor ()
 将鼠标样式设置为默认样式
 
void SetAlignment (sw::HorizontalAlignment horz, sw::VerticalAlignment vert)
 设置对齐方式
 
virtual uint64_t GetTag () override
 获取Tag
 
virtual void SetTag (uint64_t tag) override
 设置Tag
 
virtual uint64_t GetLayoutTag () override
 获取布局标记
 
virtual int GetChildLayoutCount () override
 获取参与布局的子控件数量
 
virtual ILayoutGetChildLayoutAt (int index) override
 获取对应索引处的子控件,使用此函数前必须先调用GetChildLayoutCount
 
virtual Size GetDesireSize () override
 获取控件所需尺寸
 
virtual void SetDesireSize (const Size &size) override
 设置当前控件所需的尺寸
 
virtual void Measure (const Size &availableSize) override
 测量控件所需尺寸
 
virtual void Arrange (const sw::Rect &finalPosition) override
 安排控件位置
 
- Public 成员函数 继承自 sw::WndBase
+virtual ~WndBase ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
+void Show (int nCmdShow)
 该函数调用ShowWindow
 
+void Close ()
 发送关闭消息
 
+void Update ()
 该函数调用UpdateWindow
 
+void UpdateFont ()
 更新字体
 
+HFONT GetFontHandle ()
 获取字体句柄
 
void Redraw (bool erase=false)
 重画
 
+bool IsControl ()
 判断当前对象是否是控件
 
+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)
 打开或关闭指定的扩展样式
 
Point PointToScreen (const Point &point)
 获取用户区点在屏幕上点的位置
 
Point PointFromScreen (const Point &screenPoint)
 获取屏幕上点在当前用户区点的位置
 
+LRESULT SendMessageA (UINT uMsg, WPARAM wParam, LPARAM lParam)
 发送消息(ASCII)
 
+LRESULT SendMessageW (UINT uMsg, WPARAM wParam, LPARAM lParam)
 发送消息(UNICODE)
 
HitTestResult NcHitTest (const Point &testPoint)
 测试指定点在窗口的哪一部分
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public 属性

+const Property< Orientation > Orientation
 分隔条的方向,给该属性赋值同时会改变HorizontalAlignment和VerticalAlignment属性的值
 
- Public 属性 继承自 sw::StaticControl
+const Property< boolNotify
 获取或设置控件的SS_NOTIFY样式
 
- Public 属性 继承自 sw::UIElement
+const Property< ThicknessMargin
 边距
 
+const Property< HorizontalAlignment > HorizontalAlignment
 水平对齐方式
 
+const Property< VerticalAlignment > VerticalAlignment
 垂直对齐方式
 
+const ReadOnlyProperty< intChildCount
 子控件数量
 
+const Property< boolCollapseWhenHide
 是否在不可见时不参与布局
 
+const ReadOnlyProperty< UIElement * > Parent
 指向父元素的指针,当前元素为顶级窗口时该值为nullptr
 
+const Property< uint64_tTag
 储存用户自定义信息的标记
 
+const Property< uint64_tLayoutTag
 布局标记,对于不同的布局有不同含义
 
+const Property< sw::ContextMenu * > ContextMenu
 右键按下时弹出的菜单
 
+const Property< boolFloat
 元素是否悬浮,若元素悬浮则该元素不会随滚动条滚动而改变位置
 
+const Property< boolTabStop
 表示用户是否可以通过按下Tab键将焦点移动到当前元素
 
+const Property< ColorBackColor
 背景颜色,修改该属性会同时将Transparent属性设为false,对于部分控件该属性可能不生效
 
+const Property< ColorTextColor
 文本颜色,修改该属性会同时将InheritTextColor属性设为false,对于部分控件该属性可能不生效
 
+const Property< boolTransparent
 是否使用透明背景(此属性并非真正意义上的透明,将该属性设为true可继承父元素的背景颜色)
 
+const Property< boolInheritTextColor
 是否继承父元素的文本颜色
 
- Public 属性 继承自 sw::WndBase
+const ReadOnlyProperty< HWNDHandle
 窗口句柄
 
+const Property< sw::FontFont
 字体
 
+const Property< std::wstring > FontName
 字体名称
 
+const Property< doubleFontSize
 字体大小
 
+const Property< sw::FontWeight > FontWeight
 字体粗细
 
+const Property< sw::RectRect
 位置和尺寸
 
+const Property< doubleLeft
 左边
 
+const Property< doubleTop
 顶边
 
+const Property< doubleWidth
 宽度
 
+const Property< doubleHeight
 高度
 
+const ReadOnlyProperty< sw::RectClientRect
 用户区尺寸
 
+const ReadOnlyProperty< doubleClientWidth
 用户区宽度
 
+const ReadOnlyProperty< doubleClientHeight
 用户区高度
 
+const Property< boolEnabled
 窗口或控件是否可用
 
+const Property< boolVisible
 窗口或控件是否可见
 
+const Property< std::wstring > Text
 窗口标题或控件文本
 
+const Property< boolFocused
 窗口是否拥有焦点
 
+const ReadOnlyProperty< WndBase * > Parent
 父窗口
 
+const ReadOnlyProperty< boolIsDestroyed
 是否已销毁,当该值为true时不应该继续使用当前对象
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Protected 成员函数

virtual bool OnPaint () override
 接收到WM_PAINT时调用该函数
 
virtual bool OnSize (Size newClientSize) override
 接收到WM_SIZE时调用该函数
 
- Protected 成员函数 继承自 sw::Control
Control ()
 初始化控件
 
+void ResetHandle ()
 销毁控件句柄并重新初始化,该操作会创建新的句柄并设置样式、文本、字体等
 
+virtual void HandleChenged ()
 控件句柄发生改变时调用该函数
 
- Protected 成员函数 继承自 sw::UIElement
UIElement ()
 初始化UIElement
 
void RaiseRoutedEvent (RoutedEventType eventType)
 触发路由事件
 
void RaiseRoutedEvent (RoutedEventArgs &eventArgs)
 触发路由事件
 
+void NotifyLayoutUpdated ()
 通知顶级窗口布局改变
 
+doubleGetArrangeOffsetX ()
 获取Arrange时子元素的水平偏移量
 
+doubleGetArrangeOffsetY ()
 获取Arrange时子元素的垂直偏移量
 
double GetChildRightmost (bool update)
 获取所有子元素在当前元素中最右边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
double GetChildBottommost (bool update)
 获取所有子元素在当前元素中最底边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
+void UpdateChildrenZOrder ()
 更新子元素的Z轴位置
 
+void UpdateSiblingsZOrder ()
 更新兄弟元素的Z轴位置
 
+void SetNextTabStopFocus ()
 设置下一个TabStop属性为true的元素为焦点元素
 
virtual void SetBackColor (Color color, bool redraw)
 设置背景颜色
 
virtual void SetTextColor (Color color, bool redraw)
 设置文本颜色
 
virtual void OnAddedChild (UIElement &element)
 添加子元素后调用该函数
 
virtual void OnRemovedChild (UIElement &element)
 移除子元素后调用该函数
 
+virtual void OnTabStop ()
 通过tab键将焦点移动到当前元素时调用该函数
 
virtual void OnDrawFocusRect ()
 绘制虚线框时调用该函数
 
virtual bool SetParent (WndBase *parent) override
 设置父窗口
 
virtual void ParentChanged (WndBase *newParent) override
 父窗口改变时调用此函数
 
virtual void OnEndPaint () override
 在OnPaint函数完成之后调用该函数
 
virtual bool OnClose () override
 接收到WM_CLOSE时调用该函数
 
virtual bool OnMove (Point newClientPosition) override
 接收到WM_MOVE时调用该函数
 
virtual void OnTextChanged () override
 Text属性更改时调用此函数
 
virtual void VisibleChanged (bool newVisible) override
 Visible属性改变时调用此函数
 
virtual bool OnSetFocus (HWND hPrevFocus) override
 接收到WM_SETFOCUS时调用该函数
 
virtual bool OnKillFocus (HWND hNextFocus) override
 接收到WM_KILLFOCUS时调用该函数
 
virtual bool OnChar (wchar_t ch, KeyFlags flags) override
 接收到WM_CHAR时调用该函数
 
virtual bool OnKeyDown (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYDOWN时调用该函数
 
virtual bool OnKeyUp (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYUP时调用该函数
 
virtual bool OnMouseMove (Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEMOVE时调用该函数
 
virtual bool OnMouseLeave () override
 接收到WM_MOUSELEAVE时调用该函数
 
virtual bool OnMouseWheel (int wheelDelta, Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEWHEEL时调用该函数
 
virtual bool OnMouseLeftButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONDOWN时调用该函数
 
virtual bool OnMouseLeftButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONUP时调用该函数
 
virtual bool OnMouseRightButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONDOWN时调用该函数
 
virtual bool OnMouseRightButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONUP时调用该函数
 
virtual bool OnMouseMiddleButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONDOWN时调用该函数
 
virtual bool OnMouseMiddleButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONUP时调用该函数
 
virtual bool OnContextMenu (bool isKeyboardMsg, Point mousePosition) override
 接收到WM_CONTEXTMENU后调用目标控件的该函数
 
virtual void OnMenuCommand (int id) override
 当WM_COMMAND接收到菜单命令时调用该函数
 
virtual bool OnColor (HDC hdc, HBRUSH &hRetBrush) override
 父窗口接收到WM_CTLCOLORxxx时调用对应控件的该函数
 
virtual bool OnSetCursor (HWND hwnd, HitTestResult hitTest, int message, bool &result) override
 接收到WM_SETCURSOR消息时调用该函数
 
- Protected 成员函数 继承自 sw::WndBase
WndBase ()
 初始化WndBase
 
WndBase (const WndBase &)=delete
 
WndBase (WndBase &&)=delete
 
+WndBaseoperator= (const WndBase &)=delete
 
+WndBaseoperator= (WndBase &&)=delete
 
+void InitWindow (LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为窗口,该函数会调用CreateWindowExW
 
+void InitControl (LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为控件,该函数会调用CreateWindowExW
 
+LRESULT DefaultWndProc (const ProcMsg &refMsg)
 调用默认的WndProc,对于窗口则调用DefWindowProcW,控件则调用_controlOldWndProc
 
virtual LRESULT WndProc (const ProcMsg &refMsg)
 对WndProc的封装
 
+void UpdateText ()
 更新_text字段
 
virtual std::wstring & GetText ()
 获取窗口文本
 
virtual void SetText (const std::wstring &value)
 调用SetWindowTextW设置窗口文本
 
virtual bool OnCreate ()
 接收到WM_CREATE时调用该函数
 
virtual bool OnDestroy ()
 接收到WM_DESTROY时调用该函数
 
virtual bool OnMouseLeftButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_LBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseRightButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_RBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseMiddleButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_MBUTTONDBLCLK时调用该函数
 
virtual bool OnDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_DEADCHAR时调用该函数
 
virtual bool OnSysChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSCHAR时调用该函数
 
virtual bool OnSysDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSDEADCHAR时调用该函数
 
virtual bool OnSysKeyDown (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYDOWN时调用该函数
 
virtual bool OnSysKeyUp (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYUP时调用该函数
 
virtual void OnCommand (int code)
 当父窗口接收到控件的WM_COMMAND时调用该函数
 
virtual void OnControlCommand (WndBase *pControl, int code, int id)
 当WM_COMMAND接收到控件命令时调用该函数
 
virtual void OnAcceleratorCommand (int id)
 当WM_COMMAND接收到快捷键命令时调用该函数
 
virtual void HandleInitialized (HWND hwnd)
 窗口句柄初始化完成
 
virtual void FontChanged (HFONT hfont)
 字体改变时调用该函数
 
virtual bool OnNotify (NMHDR *pNMHDR)
 接收到WM_NOTIFY后调用该函数
 
virtual void OnNotified (NMHDR *pNMHDR)
 父窗口接收到WM_NOTIFY后调用发出通知控件的该函数
 
virtual bool OnVerticalScroll (int event, int pos)
 接收到WM_VSCROLL时调用目标控件的该函数
 
virtual bool OnHorizontalScroll (int event, int pos)
 接收到WM_HSCROLL时调用目标控件的该函数
 
virtual bool OnEnabledChanged (bool newValue)
 接收到WM_ENABLE时调用该函数
 
virtual bool OnCtlColor (WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)
 接收到WM_CTLCOLORxxx时调用该函数
 
virtual void OnNcHitTest (const Point &testPoint, HitTestResult &result)
 接收到WM_NCHITTEST后调用该函数
 
virtual bool OnEraseBackground (int &result)
 接收到WM_ERASEBKGND时调用该函数
 
virtual bool OnDrawItem (int id, DRAWITEMSTRUCT *pDrawItem)
 接收到WM_DRAWITEM时调用该函数
 
+ + + + + +

+额外继承的成员函数

- 静态 Public 成员函数 继承自 sw::WndBase
static WndBaseGetWndBase (HWND hwnd)
 通过窗口句柄获取WndBase
 
+

详细描述

+

分隔条

+

成员函数说明

+ +

◆ OnPaint()

+ +
+
+ + + + + +
+ + + + + + + +
virtual bool sw::Splitter::OnPaint ()
+
+overrideprotectedvirtual
+
+ +

接收到WM_PAINT时调用该函数

+
返回
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

重载 sw::WndBase .

+ +
+
+ +

◆ OnSize()

+ +
+
+ + + + + +
+ + + + + + + +
virtual bool sw::Splitter::OnSize (Size newClientSize)
+
+overrideprotectedvirtual
+
+ +

接收到WM_SIZE时调用该函数

+
参数
+ + +
newClientSize改变后的用户区尺寸
+
+
+
返回
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

重载 sw::UIElement .

+ +
+
+
该类的文档由以下文件生成: +
+
+ + + + diff --git a/docs/classsw_1_1_splitter.js b/docs/classsw_1_1_splitter.js new file mode 100644 index 00000000..ccc4424f --- /dev/null +++ b/docs/classsw_1_1_splitter.js @@ -0,0 +1,7 @@ +var classsw_1_1_splitter = +[ + [ "Splitter", "classsw_1_1_splitter.html#acc4ee8d727fd36e75444d014cbf1a1ff", null ], + [ "OnPaint", "classsw_1_1_splitter.html#a363276ad838de7235b53f76d767a408d", null ], + [ "OnSize", "classsw_1_1_splitter.html#a961677b3a6e12fc522bdb4e7b22690c2", null ], + [ "Orientation", "classsw_1_1_splitter.html#a9c922b8e13fa139978a664c1e8fab4d6", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_splitter.png b/docs/classsw_1_1_splitter.png new file mode 100644 index 00000000..5f43f0d2 Binary files /dev/null and b/docs/classsw_1_1_splitter.png differ diff --git a/docs/classsw_1_1_static_control.html b/docs/classsw_1_1_static_control.html index 56d8b58f..9668aea4 100644 --- a/docs/classsw_1_1_static_control.html +++ b/docs/classsw_1_1_static_control.html @@ -114,7 +114,9 @@ sw::WndBase sw::ILayout sw::ITag +sw::HwndHost sw::Label +sw::Splitter diff --git a/docs/classsw_1_1_static_control.png b/docs/classsw_1_1_static_control.png index 54ec8f60..03722eb7 100644 Binary files a/docs/classsw_1_1_static_control.png and b/docs/classsw_1_1_static_control.png differ diff --git a/docs/classsw_1_1_u_i_element.html b/docs/classsw_1_1_u_i_element.html index baec5d27..9d5dc4c5 100644 --- a/docs/classsw_1_1_u_i_element.html +++ b/docs/classsw_1_1_u_i_element.html @@ -2178,7 +2178,7 @@

sw::WndBase .

-

sw::Panel 重载.

+

sw::HwndHost, sw::Panel , 以及 sw::Splitter 重载.

diff --git a/docs/classsw_1_1_wnd_base.html b/docs/classsw_1_1_wnd_base.html index f4d1effd..678fc0eb 100644 --- a/docs/classsw_1_1_wnd_base.html +++ b/docs/classsw_1_1_wnd_base.html @@ -1118,7 +1118,7 @@

返回
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
-

sw::Window 重载.

+

sw::HwndHost , 以及 sw::Window 重载.

@@ -2100,7 +2100,7 @@

返回
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
-

sw::Panel , 以及 sw::Window 重载.

+

sw::Panel, sw::Splitter , 以及 sw::Window 重载.

@@ -2225,7 +2225,7 @@

返回
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
-

sw::Panel , 以及 sw::UIElement 重载.

+

sw::HwndHost, sw::Panel, sw::Splitter , 以及 sw::UIElement 重载.

diff --git a/docs/classsw_1_1_write_only_property.html b/docs/classsw_1_1_write_only_property.html index 27d9af24..9ee39990 100644 --- a/docs/classsw_1_1_write_only_property.html +++ b/docs/classsw_1_1_write_only_property.html @@ -123,21 +123,22 @@ sw::Property< wchar_t > sw::Property< uint16_t > sw::Property< ProgressBarState > -sw::Property< sw::Orientation > -sw::Property< TabAlignment > -sw::Property< sw::Thickness > -sw::Property< HorizontalAlignment > -sw::Property< VerticalAlignment > -sw::Property< uint64_t > -sw::Property< sw::ContextMenu * > -sw::Property< sw::Color > -sw::Property< WindowStartupLocation > -sw::Property< WindowState > -sw::Property< sw::Menu * > -sw::Property< sw::Font > -sw::Property< sw::FontWeight > -sw::Property< sw::Rect > -sw::Property< T > +sw::Property< Orientation > +sw::Property< sw::Orientation > +sw::Property< TabAlignment > +sw::Property< sw::Thickness > +sw::Property< HorizontalAlignment > +sw::Property< VerticalAlignment > +sw::Property< uint64_t > +sw::Property< sw::ContextMenu * > +sw::Property< sw::Color > +sw::Property< WindowStartupLocation > +sw::Property< WindowState > +sw::Property< sw::Menu * > +sw::Property< sw::Font > +sw::Property< sw::FontWeight > +sw::Property< sw::Rect > +sw::Property< T >

diff --git a/docs/classsw_1_1_write_only_property.png b/docs/classsw_1_1_write_only_property.png index 94cd3087..b0ca2b0a 100644 Binary files a/docs/classsw_1_1_write_only_property.png and b/docs/classsw_1_1_write_only_property.png differ diff --git a/docs/dir_ed5f6ece24ffcc4307a76d27c2494db3.html b/docs/dir_ed5f6ece24ffcc4307a76d27c2494db3.html index 4638d245..41693be0 100644 --- a/docs/dir_ed5f6ece24ffcc4307a76d27c2494db3.html +++ b/docs/dir_ed5f6ece24ffcc4307a76d27c2494db3.html @@ -143,6 +143,8 @@ + + @@ -207,6 +209,8 @@ + + diff --git a/docs/dir_ed5f6ece24ffcc4307a76d27c2494db3.js b/docs/dir_ed5f6ece24ffcc4307a76d27c2494db3.js index a8cf253c..37e07a49 100644 --- a/docs/dir_ed5f6ece24ffcc4307a76d27c2494db3.js +++ b/docs/dir_ed5f6ece24ffcc4307a76d27c2494db3.js @@ -23,6 +23,7 @@ var dir_ed5f6ece24ffcc4307a76d27c2494db3 = [ "GridLayout.h", "_grid_layout_8h_source.html", null ], [ "GroupBox.h", "_group_box_8h_source.html", null ], [ "HitTestResult.h", "_hit_test_result_8h_source.html", null ], + [ "HwndHost.h", "_hwnd_host_8h_source.html", null ], [ "Icon.h", "_icon_8h_source.html", null ], [ "ILayout.h", "_i_layout_8h_source.html", null ], [ "ITag.h", "_i_tag_8h_source.html", null ], @@ -55,6 +56,7 @@ var dir_ed5f6ece24ffcc4307a76d27c2494db3 = [ "SimpleWindow.h", "_simple_window_8h_source.html", null ], [ "Size.h", "_size_8h_source.html", null ], [ "Slider.h", "_slider_8h_source.html", null ], + [ "Splitter.h", "_splitter_8h_source.html", null ], [ "StackLayout.h", "_stack_layout_8h_source.html", null ], [ "StackLayoutH.h", "_stack_layout_h_8h_source.html", null ], [ "StackLayoutV.h", "_stack_layout_v_8h_source.html", null ], diff --git a/docs/doxygen_crawl.html b/docs/doxygen_crawl.html index 9760a8fb..3fa69710 100644 --- a/docs/doxygen_crawl.html +++ b/docs/doxygen_crawl.html @@ -31,6 +31,7 @@ + @@ -63,6 +64,7 @@ + @@ -150,6 +152,8 @@ + + @@ -240,6 +244,8 @@ + + diff --git a/docs/files.html b/docs/files.html index a6d2ebfc..ca1f4495 100644 --- a/docs/files.html +++ b/docs/files.html @@ -121,58 +121,60 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
 HitTestResult.h
 
 HwndHost.h
 
 Icon.h
 
 ILayout.h
 
 Slider.h
 
 Splitter.h
 
 StackLayout.h
 
 StackLayoutH.h
 GridLayout.h
 GroupBox.h
 HitTestResult.h
 Icon.h
 ILayout.h
 ITag.h
 ItemsControl.h
 Keys.h
 Label.h
 Layer.h
 LayoutHost.h
 List.h
 ListBox.h
 ListView.h
 Menu.h
 MenuBase.h
 MenuItem.h
 MsgBox.h
 Panel.h
 PanelBase.h
 PasswordBox.h
 Path.h
 Point.h
 ProcMsg.h
 ProgressBar.h
 Property.h
 RadioButton.h
 Rect.h
 RoutedEvent.h
 RoutedEventArgs.h
 Screen.h
 ScrollEnums.h
 SimpleWindow.h
 Size.h
 Slider.h
 StackLayout.h
 StackLayoutH.h
 StackLayoutV.h
 StackPanel.h
 StaticControl.h
 TabControl.h
 TextBox.h
 TextBoxBase.h
 Thickness.h
 UIElement.h
 UniformGrid.h
 UniformGridLayout.h
 Utils.h
 Window.h
 WndBase.h
 WndMsg.h
 WrapLayout.h
 WrapLayoutH.h
 WrapLayoutV.h
 WrapPanel.h
 HwndHost.h
 Icon.h
 ILayout.h
 ITag.h
 ItemsControl.h
 Keys.h
 Label.h
 Layer.h
 LayoutHost.h
 List.h
 ListBox.h
 ListView.h
 Menu.h
 MenuBase.h
 MenuItem.h
 MsgBox.h
 Panel.h
 PanelBase.h
 PasswordBox.h
 Path.h
 Point.h
 ProcMsg.h
 ProgressBar.h
 Property.h
 RadioButton.h
 Rect.h
 RoutedEvent.h
 RoutedEventArgs.h
 Screen.h
 ScrollEnums.h
 SimpleWindow.h
 Size.h
 Slider.h
 Splitter.h
 StackLayout.h
 StackLayoutH.h
 StackLayoutV.h
 StackPanel.h
 StaticControl.h
 TabControl.h
 TextBox.h
 TextBoxBase.h
 Thickness.h
 UIElement.h
 UniformGrid.h
 UniformGridLayout.h
 Utils.h
 Window.h
 WndBase.h
 WndMsg.h
 WrapLayout.h
 WrapLayoutH.h
 WrapLayoutV.h
 WrapPanel.h
diff --git a/docs/functions_b.html b/docs/functions_b.html index 43e9c096..a4945513 100644 --- a/docs/functions_b.html +++ b/docs/functions_b.html @@ -100,6 +100,7 @@

- b -

diff --git a/docs/functions_d.html b/docs/functions_d.html index 00031174..8d4e5584 100644 --- a/docs/functions_d.html +++ b/docs/functions_d.html @@ -95,6 +95,7 @@

- d -