怎么改变MainFrame的背景色?
我看到一个例子是这样的,但有点不懂:
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是什么变量?大家有没有更好的解决的办法?
随便问一下,有什么书是关于介绍写界面方面的书?写界面感觉好难。