Skip to content

Commit

Permalink
Merge pull request #19 from Mzying2001/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
Mzying2001 authored Mar 5, 2024
2 parents 4379edd + 9dcef14 commit b6ff374
Show file tree
Hide file tree
Showing 199 changed files with 10,785 additions and 5,918 deletions.
189 changes: 189 additions & 0 deletions docs/_bmp_box_8h_source.html

Large diffs are not rendered by default.

9 changes: 3 additions & 6 deletions docs/_cursor_8h_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -137,15 +137,12 @@
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> </div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"><a class="line" href="classsw_1_1_cursor_helper.html#a00f191c252dec31acb75dc15a8a427b3"> 54</a></span> <span class="keyword">static</span> HCURSOR <a class="code hl_function" href="classsw_1_1_cursor_helper.html#a00f191c252dec31acb75dc15a8a427b3">GetCursorHandle</a>(HINSTANCE hInstance, <span class="keywordtype">int</span> resourceId);</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> </div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"><a class="line" href="classsw_1_1_cursor_helper.html#a125c89031f9e41193be7eaf5ec64490e"> 62</a></span> <span class="keyword">static</span> HCURSOR <a class="code hl_function" href="classsw_1_1_cursor_helper.html#a125c89031f9e41193be7eaf5ec64490e">GetCursorHandle</a>(HINSTANCE hInstance, <span class="keyword">const</span> std::wstring &amp;cursorName);</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> </div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"><a class="line" href="classsw_1_1_cursor_helper.html#a1542d9698d89360ed60437826386116f"> 69</a></span> <span class="keyword">static</span> HCURSOR <a class="code hl_function" href="classsw_1_1_cursor_helper.html#a1542d9698d89360ed60437826386116f">GetCursorHandle</a>(<span class="keyword">const</span> std::wstring &amp;fileName);</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> };</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"><a class="line" href="classsw_1_1_cursor_helper.html#a1542d9698d89360ed60437826386116f"> 61</a></span> <span class="keyword">static</span> HCURSOR <a class="code hl_function" href="classsw_1_1_cursor_helper.html#a1542d9698d89360ed60437826386116f">GetCursorHandle</a>(<span class="keyword">const</span> std::wstring &amp;fileName);</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> };</div>
</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span>}</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span>}</div>
<div class="ttc" id="aclasssw_1_1_cursor_helper_html"><div class="ttname"><a href="classsw_1_1_cursor_helper.html">sw::CursorHelper</a></div><div class="ttdoc">用于获取鼠标句柄的工具类</div><div class="ttdef"><b>Definition</b> Cursor.h:36</div></div>
<div class="ttc" id="aclasssw_1_1_cursor_helper_html_a00f191c252dec31acb75dc15a8a427b3"><div class="ttname"><a href="classsw_1_1_cursor_helper.html#a00f191c252dec31acb75dc15a8a427b3">sw::CursorHelper::GetCursorHandle</a></div><div class="ttdeci">static HCURSOR GetCursorHandle(HINSTANCE hInstance, int resourceId)</div><div class="ttdoc">从指定模块中获取鼠标句柄</div></div>
<div class="ttc" id="aclasssw_1_1_cursor_helper_html_a125c89031f9e41193be7eaf5ec64490e"><div class="ttname"><a href="classsw_1_1_cursor_helper.html#a125c89031f9e41193be7eaf5ec64490e">sw::CursorHelper::GetCursorHandle</a></div><div class="ttdeci">static HCURSOR GetCursorHandle(HINSTANCE hInstance, const std::wstring &amp;cursorName)</div><div class="ttdoc">从指定模块中获取鼠标句柄</div></div>
<div class="ttc" id="aclasssw_1_1_cursor_helper_html_a1542d9698d89360ed60437826386116f"><div class="ttname"><a href="classsw_1_1_cursor_helper.html#a1542d9698d89360ed60437826386116f">sw::CursorHelper::GetCursorHandle</a></div><div class="ttdeci">static HCURSOR GetCursorHandle(const std::wstring &amp;fileName)</div><div class="ttdoc">从文件加载鼠标句柄</div></div>
<div class="ttc" id="aclasssw_1_1_cursor_helper_html_a1b41b564e3d9a417028b212e01c700fc"><div class="ttname"><a href="classsw_1_1_cursor_helper.html#a1b41b564e3d9a417028b212e01c700fc">sw::CursorHelper::GetCursorHandle</a></div><div class="ttdeci">static HCURSOR GetCursorHandle(StandardCursor cursor)</div><div class="ttdoc">获取系统标准鼠标样式句柄</div></div>
</div><!-- fragment --></div><!-- contents -->
Expand Down
24 changes: 14 additions & 10 deletions docs/_hwnd_host_8h_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -111,25 +111,29 @@
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span> <span class="keyword">private</span>:</div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">HWND</a> _hWindowCore{<a class="code hl_class" href="classsw_1_1_dictionary.html">NULL</a>};</div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span> </div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> <span class="keyword">protected</span>:</div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"><a class="line" href="classsw_1_1_hwnd_host.html#aebdcab5949f812ae64ecd79633cacc49"> 22</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_hwnd_host.html#aebdcab5949f812ae64ecd79633cacc49">InitHwndHost</a>();</div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> <span class="keyword">public</span>:</div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"><a class="line" href="classsw_1_1_hwnd_host.html#af050f409c9407b9cf5e6670392830688"> 22</a></span> <a class="code hl_function" href="classsw_1_1_hwnd_host.html#af050f409c9407b9cf5e6670392830688">HwndHost</a>();</div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span> </div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"><a class="line" href="classsw_1_1_hwnd_host.html#a811a6d21dd8534addfc401bb79f829f7"> 29</a></span> <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_hwnd_host.html#a811a6d21dd8534addfc401bb79f829f7">OnSize</a>(<a class="code hl_struct" href="structsw_1_1_size.html">Size</a> newClientSize) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> </div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"><a class="line" href="classsw_1_1_hwnd_host.html#a9535b63e17fbb079ce4f618c288cb9bd"> 35</a></span> <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_hwnd_host.html#a9535b63e17fbb079ce4f618c288cb9bd">OnDestroy</a>() <span class="keyword">override</span>;</div>
<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_hwnd_host.html#aebdcab5949f812ae64ecd79633cacc49"> 28</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_hwnd_host.html#aebdcab5949f812ae64ecd79633cacc49">InitHwndHost</a>();</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> </div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"><a class="line" href="classsw_1_1_hwnd_host.html#a811a6d21dd8534addfc401bb79f829f7"> 35</a></span> <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_hwnd_host.html#a811a6d21dd8534addfc401bb79f829f7">OnSize</a>(<a class="code hl_struct" href="structsw_1_1_size.html">Size</a> newClientSize) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> </div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"><a class="line" href="classsw_1_1_hwnd_host.html#a9ac22adfa9d96348e7f89932d82cf3d3"> 42</a></span> <span class="keyword">virtual</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">HWND</a> <a class="code hl_function" href="classsw_1_1_hwnd_host.html#a9ac22adfa9d96348e7f89932d82cf3d3">BuildWindowCore</a>(<a class="code hl_class" href="classsw_1_1_dictionary.html">HWND</a> hParent) = 0;</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> </div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"><a class="line" href="classsw_1_1_hwnd_host.html#af644778e078302b01faf0ac2f5c7b75c"> 48</a></span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_hwnd_host.html#af644778e078302b01faf0ac2f5c7b75c">DestroyWindowCore</a>(<a class="code hl_class" href="classsw_1_1_dictionary.html">HWND</a> hwnd) = 0;</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> };</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"><a class="line" href="classsw_1_1_hwnd_host.html#a9535b63e17fbb079ce4f618c288cb9bd"> 41</a></span> <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_hwnd_host.html#a9535b63e17fbb079ce4f618c288cb9bd">OnDestroy</a>() <span class="keyword">override</span>;</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> </div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"><a class="line" href="classsw_1_1_hwnd_host.html#a9ac22adfa9d96348e7f89932d82cf3d3"> 48</a></span> <span class="keyword">virtual</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">HWND</a> <a class="code hl_function" href="classsw_1_1_hwnd_host.html#a9ac22adfa9d96348e7f89932d82cf3d3">BuildWindowCore</a>(<a class="code hl_class" href="classsw_1_1_dictionary.html">HWND</a> hParent) = 0;</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> </div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"><a class="line" href="classsw_1_1_hwnd_host.html#af644778e078302b01faf0ac2f5c7b75c"> 54</a></span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_hwnd_host.html#af644778e078302b01faf0ac2f5c7b75c">DestroyWindowCore</a>(<a class="code hl_class" href="classsw_1_1_dictionary.html">HWND</a> hwnd) = 0;</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> };</div>
</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span>}</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</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_hwnd_host_html"><div class="ttname"><a href="classsw_1_1_hwnd_host.html">sw::HwndHost</a></div><div class="ttdoc">将Win32 window托管为SimpleWindow控件</div><div class="ttdef"><b>Definition</b> HwndHost.h:11</div></div>
<div class="ttc" id="aclasssw_1_1_hwnd_host_html_a811a6d21dd8534addfc401bb79f829f7"><div class="ttname"><a href="classsw_1_1_hwnd_host.html#a811a6d21dd8534addfc401bb79f829f7">sw::HwndHost::OnSize</a></div><div class="ttdeci">virtual bool OnSize(Size newClientSize) override</div><div class="ttdoc">接收到WM_SIZE时调用该函数</div></div>
<div class="ttc" id="aclasssw_1_1_hwnd_host_html_a9535b63e17fbb079ce4f618c288cb9bd"><div class="ttname"><a href="classsw_1_1_hwnd_host.html#a9535b63e17fbb079ce4f618c288cb9bd">sw::HwndHost::OnDestroy</a></div><div class="ttdeci">virtual bool OnDestroy() override</div><div class="ttdoc">接收到WM_DESTROY时调用该函数</div></div>
<div class="ttc" id="aclasssw_1_1_hwnd_host_html_a9ac22adfa9d96348e7f89932d82cf3d3"><div class="ttname"><a href="classsw_1_1_hwnd_host.html#a9ac22adfa9d96348e7f89932d82cf3d3">sw::HwndHost::BuildWindowCore</a></div><div class="ttdeci">virtual HWND BuildWindowCore(HWND hParent)=0</div><div class="ttdoc">HwndHost创建时会调用该函数,需在该函数中创建要被托管的窗口句柄,设置其父窗口并返回被托管的句柄</div></div>
<div class="ttc" id="aclasssw_1_1_hwnd_host_html_aebdcab5949f812ae64ecd79633cacc49"><div class="ttname"><a href="classsw_1_1_hwnd_host.html#aebdcab5949f812ae64ecd79633cacc49">sw::HwndHost::InitHwndHost</a></div><div class="ttdeci">void InitHwndHost()</div><div class="ttdoc">子类需要调用该函数以初始化HwndHost,该函数会调用BuildWindowCore</div></div>
<div class="ttc" id="aclasssw_1_1_hwnd_host_html_af050f409c9407b9cf5e6670392830688"><div class="ttname"><a href="classsw_1_1_hwnd_host.html#af050f409c9407b9cf5e6670392830688">sw::HwndHost::HwndHost</a></div><div class="ttdeci">HwndHost()</div><div class="ttdoc">创建HwndHost对象</div></div>
<div class="ttc" id="aclasssw_1_1_hwnd_host_html_af644778e078302b01faf0ac2f5c7b75c"><div class="ttname"><a href="classsw_1_1_hwnd_host.html#af644778e078302b01faf0ac2f5c7b75c">sw::HwndHost::DestroyWindowCore</a></div><div class="ttdeci">virtual void DestroyWindowCore(HWND hwnd)=0</div><div class="ttdoc">HwndHost被销毁时会调用该函数来销毁被托管的窗口句柄</div></div>
<div class="ttc" id="aclasssw_1_1_static_control_html"><div class="ttname"><a href="classsw_1_1_static_control.html">sw::StaticControl</a></div><div class="ttdoc">静态控件</div><div class="ttdef"><b>Definition</b> StaticControl.h:11</div></div>
<div class="ttc" id="astructsw_1_1_size_html"><div class="ttname"><a href="structsw_1_1_size.html">sw::Size</a></div><div class="ttdoc">尺寸</div><div class="ttdef"><b>Definition</b> Size.h:11</div></div>
Expand Down
9 changes: 3 additions & 6 deletions docs/_icon_8h_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -127,17 +127,14 @@
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> </div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"><a class="line" href="classsw_1_1_icon_helper.html#ad66bbd3e3f3df25fe58eccf500343450"> 44</a></span> <span class="keyword">static</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">HICON</a> <a class="code hl_function" href="classsw_1_1_icon_helper.html#ad66bbd3e3f3df25fe58eccf500343450">GetIconHandle</a>(<a class="code hl_class" href="classsw_1_1_dictionary.html">HINSTANCE</a> <a class="code hl_class" href="classsw_1_1_dictionary.html">hInstance</a>, <span class="keywordtype">int</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">resourceId</a>);</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> </div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"><a class="line" href="classsw_1_1_icon_helper.html#acc37834cca123d041c1476951d65fc5e"> 52</a></span> <span class="keyword">static</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">HICON</a> <a class="code hl_function" href="classsw_1_1_icon_helper.html#acc37834cca123d041c1476951d65fc5e">GetIconHandle</a>(<a class="code hl_class" href="classsw_1_1_dictionary.html">HINSTANCE</a> <a class="code hl_class" href="classsw_1_1_dictionary.html">hInstance</a>, <span class="keyword">const</span> std::wstring &amp;<a class="code hl_class" href="classsw_1_1_dictionary.html">iconName</a>);</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> </div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"><a class="line" href="classsw_1_1_icon_helper.html#a8d59ebd96d73c3ca998133aaa7e9194f"> 59</a></span> <span class="keyword">static</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">HICON</a> <a class="code hl_function" href="classsw_1_1_icon_helper.html#a8d59ebd96d73c3ca998133aaa7e9194f">GetIconHandle</a>(<span class="keyword">const</span> std::wstring &amp;<a class="code hl_class" href="classsw_1_1_dictionary.html">fileName</a>);</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> };</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"><a class="line" href="classsw_1_1_icon_helper.html#a8d59ebd96d73c3ca998133aaa7e9194f"> 51</a></span> <span class="keyword">static</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">HICON</a> <a class="code hl_function" href="classsw_1_1_icon_helper.html#a8d59ebd96d73c3ca998133aaa7e9194f">GetIconHandle</a>(<span class="keyword">const</span> std::wstring &amp;<a class="code hl_class" href="classsw_1_1_dictionary.html">fileName</a>);</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> };</div>
</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span>}</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</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_icon_helper_html"><div class="ttname"><a href="classsw_1_1_icon_helper.html">sw::IconHelper</a></div><div class="ttdoc">用于获取图标句柄的工具类</div><div class="ttdef"><b>Definition</b> Icon.h:26</div></div>
<div class="ttc" id="aclasssw_1_1_icon_helper_html_a1e1d63e74eb37284350c4721d29d1527"><div class="ttname"><a href="classsw_1_1_icon_helper.html#a1e1d63e74eb37284350c4721d29d1527">sw::IconHelper::GetIconHandle</a></div><div class="ttdeci">static HICON GetIconHandle(StandardIcon icon)</div><div class="ttdoc">获取系统标准图标句柄</div></div>
<div class="ttc" id="aclasssw_1_1_icon_helper_html_a8d59ebd96d73c3ca998133aaa7e9194f"><div class="ttname"><a href="classsw_1_1_icon_helper.html#a8d59ebd96d73c3ca998133aaa7e9194f">sw::IconHelper::GetIconHandle</a></div><div class="ttdeci">static HICON GetIconHandle(const std::wstring &amp;fileName)</div><div class="ttdoc">从文件加载图标句柄</div></div>
<div class="ttc" id="aclasssw_1_1_icon_helper_html_acc37834cca123d041c1476951d65fc5e"><div class="ttname"><a href="classsw_1_1_icon_helper.html#acc37834cca123d041c1476951d65fc5e">sw::IconHelper::GetIconHandle</a></div><div class="ttdeci">static HICON GetIconHandle(HINSTANCE hInstance, const std::wstring &amp;iconName)</div><div class="ttdoc">从指定模块中获取图标句柄</div></div>
<div class="ttc" id="aclasssw_1_1_icon_helper_html_ad66bbd3e3f3df25fe58eccf500343450"><div class="ttname"><a href="classsw_1_1_icon_helper.html#ad66bbd3e3f3df25fe58eccf500343450">sw::IconHelper::GetIconHandle</a></div><div class="ttdeci">static HICON GetIconHandle(HINSTANCE hInstance, int resourceId)</div><div class="ttdoc">从指定模块中获取图标句柄</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
Expand Down
Loading

0 comments on commit b6ff374

Please sign in to comment.