Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Background Bitmap in CMDIFrameWnd

Posted on 1998-03-15
Medium Priority
Last Modified: 2013-11-20
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.
Question by:cjs
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Accepted Solution

scroll0 earned 200 total points
ID: 1316996
            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);


Author Comment

ID: 1316997


Featured Post

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

704 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question