Solved

Drawing above whole content in CView

Posted on 2009-07-16
4
339 Views
Last Modified: 2013-11-20
Hi,

is it possible to draw over the content of a CView? We have a wrapper class for embedding webbrowser control into a CView and we would like to be able to draw over the browser.

The browser is on top of the CView and we need to specify something like z-index in CSS to put it in the background and draw on the layer above it. Any suggestion appreciated, thank you!
0
Comment
Question by:StraySod
  • 2
4 Comments
 
LVL 31

Expert Comment

by:Zoppo
ID: 24869119
Hi StraySod,

if the browser control is a child of the CView it should be possible to override a WM_PAINT message handler which as first calls CWnd::Default() (this will do the default drawing including the drawing of the children) and then create a DC (i.e. a CClientDC) in which you do the drawing actions you want to do.

Hope that helps,

ZOPPO
0
 
LVL 44

Accepted Solution

by:
AndyAinscow earned 500 total points
ID: 24869212
Use a transparent window in front of the View for your custom stuff ?
0
 
LVL 7

Author Comment

by:StraySod
ID: 24878008
Thank you both, we will try it as soon as possible and let you know.
0
 
LVL 7

Author Closing Comment

by:StraySod
ID: 31604222
Thank you for your suggestion
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

919 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

17 Experts available now in Live!

Get 1:1 Help Now