Background Bitmap in CMDIFrameWnd

How do I display a bitmap, or pattern in the frame window of an MDI application? I would like to display a logo etc when no Child windows are open.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

            CBitmapClient m_wndClient;
         //OnCreate(LPCREATESTRUCT lpCreateStruct)
            TRACE("Failed Load BitMap");
            return -1;

//CBitmapClient Haeder File
// BitmapClient.h : header file

// CBitmapClient window
class CBitmapClient : public CWnd
// Construction

// Attributes

// Operations

// Overrides
      // ClassWizard generated virtual function overrides

// Implementation
      virtual ~CBitmapClient();

      // Generated message map functions
      afx_msg void OnSize(UINT nType, int cx, int cy);
      afx_msg BOOL OnEraseBkgnd(CDC* pDC);
      afx_msg void OnMouseMove(UINT nFlags, CPoint point);
      afx_msg void OnLButtonUp(UINT nFlags, CPoint point);


// BitmapClient.cpp : implementation file

#include "stdafx.h"
#include "ViewG.h"
#include "BitmapClient.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;

// CBitmapClient




// CBitmapClient message handlers

void CBitmapClient::OnSize(UINT nType, int cx, int cy)
      CWnd::OnSize(nType, cx, cy);
      RedrawWindow(NULL, NULL,
      return ;  

BOOL CBitmapClient::OnEraseBkgnd(CDC* pDC)
         //Here BitMap File Load
   return TRUE;

void CBitmapClient::OnMouseMove(UINT nFlags, CPoint point)
      // TODO: Add your message handler code here and/or call default
      CWnd::OnMouseMove(nFlags, point);

void CBitmapClient::OnLButtonUp(UINT nFlags, CPoint point)
      // TODO: Add your message handler code here and/or call default
      CWnd::OnLButtonUp(nFlags, point);


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
cjsAuthor Commented:

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.