|
-
April 29th, 1999, 10:02 PM
#1
Bitmap
I want to display a bitmap on the background of the mainframe in an MDI application.
Could somebody help me...
-
April 30th, 1999, 12:54 AM
#2
Subclass CMDIClient
Subclass the CMDIClient member in CMainframe::OnCreateClient like this:
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
if (CMDIFrameWnd::OnCreateClient(lpcs, pContext))
{
m_wndMdiClient.SubclassWindow(m_hWndMDIClient);
m_wndMdiClient.SetBitmap(IDB_MDI_BGND);
return TRUE;
}
else
return FALSE;
}
In this code m_wndMDIClient is a CWnd derived class (CMyMDIClient) which implemets the drawing of the background in CMyMDIClient::OnEraseBkgnd(). Here you can put your code to color the background or to display a bitmap.
Hope this helps
-
May 1st, 1999, 09:02 PM
#3
-
February 21st, 2006, 05:59 AM
#4
Re: Bitmap
How we can change the position of the bitmap ?
Thanks in advance 
Nico
-
February 21st, 2006, 06:23 AM
#5
Re: Bitmap
Could somebody help me... ???
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|