Re: Drawing in CHtmlView
- From: nexolite <nexolite@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 9 Apr 2009 05:32:01 -0700
....and two persons will be on different computers connected to each other on
LAN.
"nexolite" wrote:
I am trying to create a software for collaborative browsing(two person.
browsing together), so there will be a browser(which i m creating) on both
the sides and in that browser I want to display a mouse cursor which will
represent the other person's cursor, so this cursor is what I want to draw
somehow!
that cursor will also move according to the coordinates received from the
other person's browser.
"AliR (VC++ MVP)" wrote:
More or less yes. What is it exactly that you are trying to accomplish? Are
you loading a random page and then want to draw on it?
AliR.
"nexolite" <nexolite@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:10C7E1A3-6FB5-48AB-866B-DB1728BEDB8C@xxxxxxxxxxxxxxxx
Thanks Alir.
But please tell me more about how do it using the html?
I think I must get the HTML doument make changes to it(drawing) and then
put
it back?
"AliR (VC++ MVP)" wrote:
It is not going to be easy, if possible at all. If you want to draw
CHtmlView is a CFormView that has a browser window inside of it that
takes
up the entire area of the CFormView (m_wndBrowser).
All the drawing is done by and in that control. You will be fighting
with
control.
In order to draw something in that window you will have to replace that
control with your own so that you can catch its WM_PAINT message. This
means that you have to create your own CHTMLView class from scratch, and
instead of using CWnd as the base for m_wndBrowser, you can use CMyWnd
derived from CWnd which can catch the WM_PAINT message and do your own
drawing.
With all that said, I'm not sure if the browser control will simply paint
over what you have painted.
You might also be able to subclass the m_wndBrowser using SetWindowLong,
to
change it's default window proc.
AliR.
"nexolite" <nexolite@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:043133A4-385E-44D0-9BC0-5657B91ED744@xxxxxxxxxxxxxxxx
Please tell me how can I draw in a CHtmlView or how can I get the
device
context of CHtmlView?
- References:
- Drawing in CHtmlView
- From: nexolite
- Re: Drawing in CHtmlView
- From: AliR \(VC++ MVP\)
- Re: Drawing in CHtmlView
- From: nexolite
- Re: Drawing in CHtmlView
- From: AliR \(VC++ MVP\)
- Re: Drawing in CHtmlView
- From: nexolite
- Drawing in CHtmlView
- Prev by Date: Re: Drawing in CHtmlView
- Next by Date: deleting separators from pop up menu of a CMFCMenuBar
- Previous by thread: Re: Drawing in CHtmlView
- Next by thread: Display error message in a modal CDialog
- Index(es):
Relevant Pages
|