📄 subject_41455.htm
字号:
<p>
序号:41455 发表者:gaolea 发表日期:2003-05-27 10:25:10
<br>主题:about resize
<br>内容:I have set up a dialog.In this dialog, i inserted a control list. When i resize the Dialog, how to let the control list also resize. In MSDN, they told me:<BR>void CMyView::OnSize(UINT nType, int cx, int cy) <BR>{<BR> CView::OnSize(nType, cx, cy);<BR> // Resize list to fill the whole view.<BR> m_List.MoveWindow (0, 0, cx, cy);<BR>}<BR>I have try it. but not work.<BR><BR>请大侠赐教
<br><a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p>
<hr size=1>
<blockquote><p>
<font color=red>答案被接受</font><br>回复者:michael 回复日期:2003-05-27 11:34:57
<br>内容: Try it like this:<BR><BR>void CMyView::OnSize(UINT nType, int cx, int cy) <BR>{<BR> CView::OnSize(nType, cx, cy);<BR> // Resize list to fill the whole view.<BR> if (m_List.GetSafeHwnd()) <BR> m_List.MoveWindow (0, 0, cx, cy);<BR>}<BR><BR> It will be OK.
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:gaolea 回复日期:2003-05-27 21:28:14
<br>内容:Thanks a lot.
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -