怎么改变MainFrame的背景色?

thrXY2 thrXY2 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
我看到一个例子是这样的,但有点不懂:
Create a new class derived from CWnd. Let's call it CMDIClient.

Add a member variable of CMDIClient to your CMDIFrameWnd derived class, in this case CMainFrame:

#include "MDIClient.h"
class CMainFrame : public CMDIFrameWnd
{
...
protected:
CMDIClient m_wndMDIClient;
}
Override CMDIFrameWnd::OnCreateClient in your CMainFrame class and subclass the existing client window that CMDIFrameWnd owns:
bool CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
if ( CMDIFrameWnd::OnCreateClient(lpcs, pContext) )
{
m_wndMDIClient.SubclassWindow(m_hWndMDIClient);
return TRUE;
}
else
return FALSE;
}
问题是::::
m_wndMDIClient.SubclassWindow(m_hWndMDIClient); 这个是什么意思,m_hWndMDIClient是什么变量?大家有没有更好的解决的办法?
随便问一下,有什么书是关于介绍写界面方面的书?写界面感觉好难。
...全文

相关推荐

评论 7
收藏 已收藏
分享
返回顶部
thrXY2
界面 15,976 成员 115,866 内容