⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 subject_17584.htm

📁 一些关于vc的问答
💻 HTM
字号:
<p>
序号:17584 发表者:Jackie 发表日期:2002-10-13 12:05:08
<br>主题:如何在单文档窗口自定义一个子窗口
<br>内容:我按以下代码创建了一个窗口,为什么不显示?怎样得到视图DC?<BR>m_pMiniWnd =new CWnd;<BR>m_pMiniWnd-&gt;Create(NULL, NULL, WS_VISIBLE, CRect(200,100,400,200), this, 1, NULL); <BR>&nbsp;&nbsp; //((CWnd *)m_pMiniWnd)-&gt;Create(NULL,"微调窗口",r);<BR> m_pMiniWnd-&gt;ShowWindow(SW_SHOW);<BR><BR><BR>virtual BOOL Create( LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);<BR>在此函数中,LPCTSTR lpszClassName,CWnd* pParentWnd, UINT nID, CCreateContext* pContext 参数怎么设置?<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>回复者:Half_C 回复日期:2002-10-13 17:14:18
<br>内容:你在第三个参数加上|WS_CHILD看看!
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:iwill 回复日期:2002-10-14 09:08:51
<br>内容:m_pMiniWnd =new CFrameWnd;<BR>m_pMiniWnd-&gt;Create(NULL,"1234", WS_VISIBLE, CRect(200,100,400,200), this, 1, NULL); <BR>m_pMiniWnd-&gt;ShowWindow(SW_SHOW);<BR><BR>动态创建的CFrameWnd对象不用delete,而CWnd对象必须手工delete
<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 + -