Solved

Drawing above whole content in CView

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Question regarding Copy/Paste 16 95
Creating Labels and Frequency list style reports in SAS code 9 98
ShiftLeft challenge 21 80
unix example issues 18 89
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

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

10 Experts available now in Live!

Get 1:1 Help Now