Click here to Skip to main content
15,902,492 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow Get Cookie from server Pin
Sumit Kapoor13-Aug-04 21:55
Sumit Kapoor13-Aug-04 21:55 
GeneralFlat button without MFC Pin
Igor Mihailov13-Aug-04 17:14
Igor Mihailov13-Aug-04 17:14 
QuestionLea allocator - can somebody please help me ? Pin
Marcello13-Aug-04 17:06
Marcello13-Aug-04 17:06 
Questionhow to draw on the console Pin
yingkou13-Aug-04 16:13
yingkou13-Aug-04 16:13 
AnswerRe: how to draw on the console Pin
xpis13-Aug-04 17:19
xpis13-Aug-04 17:19 
GeneralRe: how to draw on the console Pin
Archer28214-Aug-04 6:57
Archer28214-Aug-04 6:57 
GeneralUsers of the System Pin
Neelesh K J Jain13-Aug-04 15:40
Neelesh K J Jain13-Aug-04 15:40 
QuestionMFC message maps??? Pin
alex.barylski13-Aug-04 12:54
alex.barylski13-Aug-04 12:54 
MFC6 has the CHtmlView class and like most classes in MFC using visual studio you can quickly add an handler for the events fired by the IWebBrowser2 actually according to MSDN (AFAIK)
it's the WebBrowser...cuz IWebBrowser2 doesn't seem to have events Confused | :confused:

BEGIN_EVENTSINK_MAP(CHtmlView, CFormView)
	ON_EVENT(CHtmlView, AFX_IDW_PANE_FIRST, 104 /* DownloadComplete */, OnDownloadComplete, VTS_BSTR)
END_EVENTSINK_MAP()


Then in your derived CHtmlView class you override a virtual function OnDownloadComplete and voila you now have the ability to tell when a document has been fully loaded.

How does MFC accomplish this task of event sinking, etc all with a couple of macros? I looked at the macros and I couldn't make anything of them WTF | :WTF:

Basically I want to use this same technique, but on a different interface...so I can avoid all the mumbo jumbo that goes along with capturing events sent from IHTMLDocument2, etc...

Thanx in advance Smile | :)

Cheers

How do I print my voice mail?
GeneralVS.NET Debugging issues Pin
brdavid13-Aug-04 11:24
brdavid13-Aug-04 11:24 
GeneralRe: VS.NET Debugging issues Pin
Marcello13-Aug-04 18:09
Marcello13-Aug-04 18:09 
GeneralCSocket Data lost Pin
phongle11913-Aug-04 9:12
phongle11913-Aug-04 9:12 
GeneralRe: CSocket Data lost Pin
mahade113-Aug-04 22:20
mahade113-Aug-04 22:20 
GeneralRe: CSocket Data lost Pin
phongle11915-Aug-04 16:42
phongle11915-Aug-04 16:42 
GeneralRe: CSocket Data lost Pin
Anonymous15-Aug-04 4:49
Anonymous15-Aug-04 4:49 
GeneralChart problem with visual studio 2005 Pin
pamela_fernando13-Aug-04 6:56
pamela_fernando13-Aug-04 6:56 
Generaltell filesystem to reload after I write Pin
Henry miller13-Aug-04 5:19
Henry miller13-Aug-04 5:19 
GeneralRe: tell filesystem to reload after I write Pin
Ravi Bhavnani13-Aug-04 10:47
professionalRavi Bhavnani13-Aug-04 10:47 
GeneralRe: tell filesystem to reload after I write Pin
Henry miller16-Aug-04 4:20
Henry miller16-Aug-04 4:20 
GeneralRe: tell filesystem to reload after I write Pin
Marcello14-Aug-04 5:34
Marcello14-Aug-04 5:34 
GeneralMulitline Edit Box Pin
Johnny Peszek13-Aug-04 5:08
Johnny Peszek13-Aug-04 5:08 
GeneralRe: Mulitline Edit Box Pin
David Crow13-Aug-04 5:25
David Crow13-Aug-04 5:25 
GeneralRe: Mulitline Edit Box Pin
Johnny Peszek13-Aug-04 5:42
Johnny Peszek13-Aug-04 5:42 
GeneralRe: Mulitline Edit Box Pin
Shi Zhu14-Aug-04 5:32
Shi Zhu14-Aug-04 5:32 
GeneralRe: Mulitline Edit Box Pin
Johnny Peszek16-Aug-04 1:53
Johnny Peszek16-Aug-04 1:53 
GeneralRe: Mulitline Edit Box Pin
Jeremy Falcon13-Aug-04 6:54
professionalJeremy Falcon13-Aug-04 6:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.