📄 subject_26482.htm
字号:
<p>
序号:26482 发表者:somy 发表日期:2003-01-01 22:20:40
<br>主题:如何在CSheet类上添加其它控件
<br>内容:如何在CSheet类上添加其它控件如按钮等
<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>回复者:shiyu 回复日期:2003-01-02 09:02:33
<br>内容:BOOL CxxSheet::OnInitDialog() <BR>{<BR> BOOL bResult = CPropertySheet::OnInitDialog(); <BR> // TODO: Add your specialized code here <BR> RECT rc;<BR> GetWindowRect (&rc);<BR> // 属性表的高度增加 30<BR> rc.bottom += 30;<BR> // 调整属性表大小<BR> MoveWindow (rc.left, rc.top, rc.right-rc.left, rc.bottom-rc.top);<BR> // Convert to client coordinates<BR> ScreenToClient (&rc);<BR> // m_BtOk m_BtCancel is of type CButton and is a member of CxxSheet<BR> m_BtOk.Create ("确定(&O)", WS_CHILD | WS_VISIBLE | WS_TABSTOP,<BR> CRect (rc.right-345, rc.bottom-35, rc.right-195, rc.bottom- 5),this, IDC_MYBUTTONOK);<BR> m_BtCancel.Create("取消(&C)",WS_CHILD |WS_VISIBLE |WS_TABSTOP,<BR> CRect(rc.right-170,rc.bottom-35,rc.right-25,rc.bottom- 5),this,IDC_MYBUTTONCANCEL);<BR>}<BR>IDC_MYBUTTONOK,IDC_MYBUTTONCANCEL 在资源中定义即可
<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 + -