Solved

MDI Background image

Posted on 2006-07-20
3
738 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 250 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Replacement selected text 2 61
Named range not carried over 10 63
ASCII Non-Printable characters/codes and their HTML equivalents 6 113
no14 challenge 14 66
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: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
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.

813 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now