Drawing above whole content in CView

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!
LVL 7
StraySodAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
AndyAinscowConnect With a Mentor Freelance programmer / ConsultantCommented:
Use a transparent window in front of the View for your custom stuff ?
0
 
ZoppoCommented:
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
 
StraySodAuthor Commented:
Thank you both, we will try it as soon as possible and let you know.
0
 
StraySodAuthor Commented:
Thank you for your suggestion
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.