Solved

Drawing above whole content in CView

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

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
post4 challenge 28 113
Modbus - whats the maximum I can store in one register? 4 82
Fibonacci challenge 11 136
JQuery serialize and unserialize 8 199
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: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.

733 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