?
Solved

MDI Background image

Posted on 2006-07-20
3
Medium Priority
?
744 Views
Last Modified: 2013-11-20
Hi,

I have a standard MDI application. Can someone tell me how to draw a bitmap in the client area of the main frame? (A complete working example would be great).

Thanks
0
Comment
Question by:BazookaJoeZone
  • 2
3 Comments
 
LVL 22

Accepted Solution

by:
mahesh1402 earned 1000 total points
ID: 17151519
look at this :

Drawing Image on MDI Main Frame background
http://www.codeproject.com/dialog/mdibackgroundimage.asp

-MAHESH
0
 
LVL 3

Author Comment

by:BazookaJoeZone
ID: 17160516
Hi Mahesh,

Alright I gave it a try. The sample uses:

    SetWindowLong(hMain, GWL_WNDPROC, (long)pfnNewWndProc);

to override the size and erase bg messages in a new message loop function. Is it possible to accomplish the same thing with the standard MFC message mappings?

If not, is it possible to selectively use the new message handler at runtime?

    if (bSomething) {
        SetWindowLong(hMain, GWL_WNDPROC, (long)pfnNewWndProc);
    }
    else {
        SetWindowLong(hMain, GWL_WNDPROC, (long)pfnOriginalWndProc);
    }

Thanks
0
 
LVL 22

Expert Comment

by:mahesh1402
ID: 17161995
You can subclass window procedure as above with SetWindowLong

-MAHESH
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
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…
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.
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses
Course of the Month15 days, 11 hours left to enroll

850 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