Click here to Skip to main content
15,916,030 members
Home / Discussions / COM
   

COM

 
GeneralRe: CHtmlView Pin
Rob Manderson25-Mar-04 12:27
protectorRob Manderson25-Mar-04 12:27 
GeneralRe: CHtmlView Pin
alex.barylski25-Mar-04 13:00
alex.barylski25-Mar-04 13:00 
GeneralRe: CHtmlView Pin
Rob Manderson25-Mar-04 13:14
protectorRob Manderson25-Mar-04 13:14 
GeneralRe: CHtmlView Pin
alex.barylski25-Mar-04 15:27
alex.barylski25-Mar-04 15:27 
GeneralRe: CHtmlView Pin
Rob Manderson25-Mar-04 15:50
protectorRob Manderson25-Mar-04 15:50 
GeneralRe: CHtmlView Pin
alex.barylski25-Mar-04 16:30
alex.barylski25-Mar-04 16:30 
GeneralRe: CHtmlView Pin
alex.barylski26-Mar-04 13:40
alex.barylski26-Mar-04 13:40 
GeneralRe: CHtmlView Pin
Rob Manderson26-Mar-04 13:56
protectorRob Manderson26-Mar-04 13:56 
It's the other way around. You create an IHTMLEditDesigner object somehow (it need not be a COM object in the sense of being createable via CoCreateInstance). You then notify the document object (via the AddDesigner() method) that it should pass editor events to your object. It's just a souped up way of setting a callback.

In my code I implemented the designer as a c++ class derived from IHTMLEditDesigner because those are the rules (AddDesigner() wants to see something derived from IHTMLEditDesigner). But the instance of the class that I pass to the document object (incidentally I use IHTMLDocument2 rather than IWebBrowser2) is statically created as a member variable in my view class.

For what it's worth, I think the MSDN samples are needlessly complex.

Rob Manderson

Colin Davies wrote: I'm sure Americans could use more of it, and thus reduce the world supply faster. This of course would be good, because the faster we run out globally, the less chance of pollution there will be. (Talking about the price of petrol) The Soapbox, March 5 2004
GeneralSafeArray freak Pin
El'Cachubrey24-Mar-04 5:46
El'Cachubrey24-Mar-04 5:46 
QuestionMake a Composite Control (COM) be an OLE container? Pin
mangellj24-Mar-04 5:30
mangellj24-Mar-04 5:30 
QuestionActiveX storing data to be picked up by another ActiveX later? Pin
SysLo23-Mar-04 0:57
SysLo23-Mar-04 0:57 
AnswerRe: ActiveX storing data to be picked up by another ActiveX later? Pin
igor196024-Mar-04 15:01
igor196024-Mar-04 15:01 
GeneralRe: ActiveX storing data to be picked up by another ActiveX later? Pin
SysLo25-Mar-04 1:49
SysLo25-Mar-04 1:49 
GeneralI am unable to retrieve Combuilder in Matlab Pin
vil_0922-Mar-04 20:08
vil_0922-Mar-04 20:08 
QuestionWhat are issues when renaming a COM component? Pin
User 21559722-Mar-04 17:42
User 21559722-Mar-04 17:42 
AnswerRe: What are issues when renaming a COM component? Pin
Steve S22-Mar-04 22:07
Steve S22-Mar-04 22:07 
GeneralRe: What are issues when renaming a COM component? Pin
User 21559723-Mar-04 0:00
User 21559723-Mar-04 0:00 
Generaluse VB COM in C++ Pin
Cuu22-Mar-04 5:18
Cuu22-Mar-04 5:18 
GeneralRe: use VB COM in C++ Pin
Nick Parker22-Mar-04 18:07
protectorNick Parker22-Mar-04 18:07 
QuestionHow to register a proxy/stub DLL on the client? Pin
pelos21-Mar-04 10:54
pelos21-Mar-04 10:54 
AnswerRe: How to register a proxy/stub DLL on the client? Pin
pelos21-Mar-04 21:07
pelos21-Mar-04 21:07 
GeneralRe: How to register a proxy/stub DLL on the client? Pin
Nissim Salomon23-Mar-04 0:49
Nissim Salomon23-Mar-04 0:49 
GeneralActivesX design questions Pin
Cedric Moonen19-Mar-04 1:03
Cedric Moonen19-Mar-04 1:03 
GeneralRe: ActivesX design questions Pin
Cedric Moonen19-Mar-04 2:10
Cedric Moonen19-Mar-04 2:10 
QuestionAnybody know the future of MMC ? Pin
Richard John18-Mar-04 18:15
Richard John18-Mar-04 18:15 

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.