Solved

Drawing above whole content in CView

Posted on 2009-07-16
4
338 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 30

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
sum28 challenge 31 95
haveThree challenge 22 100
Annoying "thing" blocks my view 4 49
Not needed 13 53
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

708 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

15 Experts available now in Live!

Get 1:1 Help Now