Skip to content

Commit

Permalink
Merge pull request #20 from Mzying2001/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
Mzying2001 committed Mar 12, 2024
2 parents b6ff374 + f31a4a5 commit f03d512
Show file tree
Hide file tree
Showing 166 changed files with 7,150 additions and 4,562 deletions.
9 changes: 6 additions & 3 deletions docs/_control_8h_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,14 @@
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> <span class="keyword">protected</span>:</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"><a class="line" href="classsw_1_1_control.html#ac6593e51639858796dfa85f3910ccba9"> 28</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_control.html#ac6593e51639858796dfa85f3910ccba9">ResetHandle</a>();</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> </div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"><a class="line" href="classsw_1_1_control.html#ad16158c308954eedf12dad4603ef17db"> 33</a></span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_control.html#ad16158c308954eedf12dad4603ef17db">HandleChenged</a>();</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> };</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"><a class="line" href="classsw_1_1_control.html#a22f117bd4d39c273cfe625d9ce00361a"> 35</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_control.html#a22f117bd4d39c273cfe625d9ce00361a">ResetHandle</a>(DWORD style, DWORD exStyle);</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> </div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"><a class="line" href="classsw_1_1_control.html#ad16158c308954eedf12dad4603ef17db"> 40</a></span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_control.html#ad16158c308954eedf12dad4603ef17db">HandleChenged</a>();</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> };</div>
</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span>}</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span>}</div>
<div class="ttc" id="aclasssw_1_1_control_html"><div class="ttname"><a href="classsw_1_1_control.html">sw::Control</a></div><div class="ttdoc">控件</div><div class="ttdef"><b>Definition</b> Control.h:11</div></div>
<div class="ttc" id="aclasssw_1_1_control_html_a22f117bd4d39c273cfe625d9ce00361a"><div class="ttname"><a href="classsw_1_1_control.html#a22f117bd4d39c273cfe625d9ce00361a">sw::Control::ResetHandle</a></div><div class="ttdeci">void ResetHandle(DWORD style, DWORD exStyle)</div><div class="ttdoc">销毁控件句柄并重新初始化,并修改样式,该操作会创建新的句柄并设置样式、文本、字体等</div></div>
<div class="ttc" id="aclasssw_1_1_control_html_ab2c00cbb6c776111096e9711c19735e7"><div class="ttname"><a href="classsw_1_1_control.html#ab2c00cbb6c776111096e9711c19735e7">sw::Control::~Control</a></div><div class="ttdeci">virtual ~Control()=0</div><div class="ttdoc">析构函数,这里用纯虚函数使该类成为抽象类</div></div>
<div class="ttc" id="aclasssw_1_1_control_html_ac6593e51639858796dfa85f3910ccba9"><div class="ttname"><a href="classsw_1_1_control.html#ac6593e51639858796dfa85f3910ccba9">sw::Control::ResetHandle</a></div><div class="ttdeci">void ResetHandle()</div><div class="ttdoc">销毁控件句柄并重新初始化,该操作会创建新的句柄并设置样式、文本、字体等</div></div>
<div class="ttc" id="aclasssw_1_1_control_html_ad16158c308954eedf12dad4603ef17db"><div class="ttname"><a href="classsw_1_1_control.html#ad16158c308954eedf12dad4603ef17db">sw::Control::HandleChenged</a></div><div class="ttdeci">virtual void HandleChenged()</div><div class="ttdoc">控件句柄发生改变时调用该函数</div></div>
Expand Down
170 changes: 170 additions & 0 deletions docs/_date_time_picker_8h_source.html

Large diffs are not rendered by default.

53 changes: 28 additions & 25 deletions docs/_routed_event_8h_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -206,34 +206,37 @@
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> </div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> <span class="comment">// SelectedIndex属性被改变,参数类型为sw::RoutedEventArgs</span></div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> TabControl_SelectedIndexChanged,</div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> };</div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> </div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> <span class="comment">/*================================================================================*/</span></div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> </div>
<div class="foldopen" id="foldopen00118" data-start="{" data-end="};">
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"><a class="line" href="structsw_1_1_routed_event_args.html"> 118</a></span> <span class="keyword">struct </span><a class="code hl_struct" href="structsw_1_1_routed_event_args.html">RoutedEventArgs</a> {</div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"><a class="line" href="structsw_1_1_routed_event_args.html#a46df8118b89dcc6c494cdbded901b082"> 122</a></span> RoutedEventType <a class="code hl_variable" href="structsw_1_1_routed_event_args.html#a46df8118b89dcc6c494cdbded901b082">eventType</a>;</div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span> </div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"><a class="line" href="structsw_1_1_routed_event_args.html#a9fb971eec1e6ba4aee1366c3f9c20bfd"> 127</a></span> <span class="keywordtype">bool</span> <a class="code hl_variable" href="structsw_1_1_routed_event_args.html#a9fb971eec1e6ba4aee1366c3f9c20bfd">handled</a> = <span class="keyword">false</span>;</div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> </div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"><a class="line" href="structsw_1_1_routed_event_args.html#ac299c564c53fa039f47a06d08272d969"> 132</a></span> <span class="keywordtype">bool</span> <a class="code hl_variable" href="structsw_1_1_routed_event_args.html#ac299c564c53fa039f47a06d08272d969">handledMsg</a> = <span class="keyword">false</span>;</div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> </div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"><a class="line" href="structsw_1_1_routed_event_args.html#ad6e6da62f114abfabb682afd38b6f7a3"> 137</a></span> <a class="code hl_function" href="structsw_1_1_routed_event_args.html#ad6e6da62f114abfabb682afd38b6f7a3">RoutedEventArgs</a>(RoutedEventType <a class="code hl_variable" href="structsw_1_1_routed_event_args.html#a46df8118b89dcc6c494cdbded901b082">eventType</a>);</div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"> 138</span> };</div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> </div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> <span class="comment">// DateTimePicker控件的时间改变,参数类型为sw::DateTimePickerTimeChangedEventArgs</span></div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> DateTimePicker_TimeChanged,</div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> };</div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> </div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> <span class="comment">/*================================================================================*/</span></div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> </div>
<div class="foldopen" id="foldopen00121" data-start="{" data-end="};">
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"><a class="line" href="structsw_1_1_routed_event_args.html"> 121</a></span> <span class="keyword">struct </span><a class="code hl_struct" href="structsw_1_1_routed_event_args.html">RoutedEventArgs</a> {</div>
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"><a class="line" href="structsw_1_1_routed_event_args.html#a46df8118b89dcc6c494cdbded901b082"> 125</a></span> RoutedEventType <a class="code hl_variable" href="structsw_1_1_routed_event_args.html#a46df8118b89dcc6c494cdbded901b082">eventType</a>;</div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> </div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"><a class="line" href="structsw_1_1_routed_event_args.html#a9fb971eec1e6ba4aee1366c3f9c20bfd"> 130</a></span> <span class="keywordtype">bool</span> <a class="code hl_variable" href="structsw_1_1_routed_event_args.html#a9fb971eec1e6ba4aee1366c3f9c20bfd">handled</a> = <span class="keyword">false</span>;</div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span> </div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"><a class="line" href="structsw_1_1_routed_event_args.html#ac299c564c53fa039f47a06d08272d969"> 135</a></span> <span class="keywordtype">bool</span> <a class="code hl_variable" href="structsw_1_1_routed_event_args.html#ac299c564c53fa039f47a06d08272d969">handledMsg</a> = <span class="keyword">false</span>;</div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> </div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"><a class="line" href="structsw_1_1_routed_event_args.html#ad6e6da62f114abfabb682afd38b6f7a3"> 140</a></span> <a class="code hl_function" href="structsw_1_1_routed_event_args.html#ad6e6da62f114abfabb682afd38b6f7a3">RoutedEventArgs</a>(RoutedEventType <a class="code hl_variable" href="structsw_1_1_routed_event_args.html#a46df8118b89dcc6c494cdbded901b082">eventType</a>);</div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> };</div>
</div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span> </div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> <span class="comment">/*================================================================================*/</span></div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> </div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> <span class="keyword">class </span><a class="code hl_class" href="classsw_1_1_u_i_element.html">UIElement</a>; <span class="comment">// UIElement.h</span></div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> </div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span> <span class="keyword">using </span>RoutedEvent = std::function&lt;<a class="code hl_class" href="classsw_1_1_dictionary.html">void</a>(<a class="code hl_class" href="classsw_1_1_u_i_element.html">UIElement</a> &amp;, <a class="code hl_struct" href="structsw_1_1_routed_event_args.html">RoutedEventArgs</a> &amp;)&gt;;</div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span>}</div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> </div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> <span class="comment">/*================================================================================*/</span></div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span> </div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> <span class="keyword">class </span><a class="code hl_class" href="classsw_1_1_u_i_element.html">UIElement</a>; <span class="comment">// UIElement.h</span></div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> </div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span> <span class="keyword">using </span>RoutedEvent = std::function&lt;<a class="code hl_class" href="classsw_1_1_dictionary.html">void</a>(<a class="code hl_class" href="classsw_1_1_u_i_element.html">UIElement</a> &amp;, <a class="code hl_struct" href="structsw_1_1_routed_event_args.html">RoutedEventArgs</a> &amp;)&gt;;</div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span>}</div>
<div class="ttc" id="aclasssw_1_1_dictionary_html"><div class="ttname"><a href="classsw_1_1_dictionary.html">sw::Dictionary</a></div><div class="ttdoc">字典类,内部维护了一个指向std::map的智能指针</div><div class="ttdef"><b>Definition</b> Dictionary.h:24</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html"><div class="ttname"><a href="classsw_1_1_u_i_element.html">sw::UIElement</a></div><div class="ttdoc">表示界面中的元素</div><div class="ttdef"><b>Definition</b> UIElement.h:24</div></div>
<div class="ttc" id="astructsw_1_1_routed_event_args_html"><div class="ttname"><a href="structsw_1_1_routed_event_args.html">sw::RoutedEventArgs</a></div><div class="ttdoc">路由事件的参数</div><div class="ttdef"><b>Definition</b> RoutedEvent.h:118</div></div>
<div class="ttc" id="astructsw_1_1_routed_event_args_html_a46df8118b89dcc6c494cdbded901b082"><div class="ttname"><a href="structsw_1_1_routed_event_args.html#a46df8118b89dcc6c494cdbded901b082">sw::RoutedEventArgs::eventType</a></div><div class="ttdeci">RoutedEventType eventType</div><div class="ttdoc">事件类型</div><div class="ttdef"><b>Definition</b> RoutedEvent.h:122</div></div>
<div class="ttc" id="astructsw_1_1_routed_event_args_html_a9fb971eec1e6ba4aee1366c3f9c20bfd"><div class="ttname"><a href="structsw_1_1_routed_event_args.html#a9fb971eec1e6ba4aee1366c3f9c20bfd">sw::RoutedEventArgs::handled</a></div><div class="ttdeci">bool handled</div><div class="ttdoc">事件是否已被处理,若将此字段设为true,则事件不会继续往上传递</div><div class="ttdef"><b>Definition</b> RoutedEvent.h:127</div></div>
<div class="ttc" id="astructsw_1_1_routed_event_args_html_ac299c564c53fa039f47a06d08272d969"><div class="ttname"><a href="structsw_1_1_routed_event_args.html#ac299c564c53fa039f47a06d08272d969">sw::RoutedEventArgs::handledMsg</a></div><div class="ttdeci">bool handledMsg</div><div class="ttdoc">表示是否已处理事件所对应的Windows消息,对于部分消息将字段设为true可取消对DefaultWndProc的调用,若当前事件无对应消息则该字段无意义</div><div class="ttdef"><b>Definition</b> RoutedEvent.h:132</div></div>
<div class="ttc" id="astructsw_1_1_routed_event_args_html"><div class="ttname"><a href="structsw_1_1_routed_event_args.html">sw::RoutedEventArgs</a></div><div class="ttdoc">路由事件的参数</div><div class="ttdef"><b>Definition</b> RoutedEvent.h:121</div></div>
<div class="ttc" id="astructsw_1_1_routed_event_args_html_a46df8118b89dcc6c494cdbded901b082"><div class="ttname"><a href="structsw_1_1_routed_event_args.html#a46df8118b89dcc6c494cdbded901b082">sw::RoutedEventArgs::eventType</a></div><div class="ttdeci">RoutedEventType eventType</div><div class="ttdoc">事件类型</div><div class="ttdef"><b>Definition</b> RoutedEvent.h:125</div></div>
<div class="ttc" id="astructsw_1_1_routed_event_args_html_a9fb971eec1e6ba4aee1366c3f9c20bfd"><div class="ttname"><a href="structsw_1_1_routed_event_args.html#a9fb971eec1e6ba4aee1366c3f9c20bfd">sw::RoutedEventArgs::handled</a></div><div class="ttdeci">bool handled</div><div class="ttdoc">事件是否已被处理,若将此字段设为true,则事件不会继续往上传递</div><div class="ttdef"><b>Definition</b> RoutedEvent.h:130</div></div>
<div class="ttc" id="astructsw_1_1_routed_event_args_html_ac299c564c53fa039f47a06d08272d969"><div class="ttname"><a href="structsw_1_1_routed_event_args.html#ac299c564c53fa039f47a06d08272d969">sw::RoutedEventArgs::handledMsg</a></div><div class="ttdeci">bool handledMsg</div><div class="ttdoc">表示是否已处理事件所对应的Windows消息,对于部分消息将字段设为true可取消对DefaultWndProc的调用,若当前事件无对应消息则该字段无意义</div><div class="ttdef"><b>Definition</b> RoutedEvent.h:135</div></div>
<div class="ttc" id="astructsw_1_1_routed_event_args_html_ad6e6da62f114abfabb682afd38b6f7a3"><div class="ttname"><a href="structsw_1_1_routed_event_args.html#ad6e6da62f114abfabb682afd38b6f7a3">sw::RoutedEventArgs::RoutedEventArgs</a></div><div class="ttdeci">RoutedEventArgs(RoutedEventType eventType)</div><div class="ttdoc">RoutedEventArgs构造函数</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
Expand Down
Loading

0 comments on commit f03d512

Please sign in to comment.