Solved

MDI Background image

Posted on 2006-07-20
3
740 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
[X]
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
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Macro to save highlighted rows as a separate file 5 51
How to know only "File created" with EventLog 3 35
viewing source code from eclipse 13 111
zeroMAx challenge 20 135
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

734 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