Click here to Skip to main content
15,890,123 members
Home / Discussions / COM
   

COM

 
AnswerRe: Using MSHTML/CHtmlView in a thread Pin
Keith Worden30-Jun-06 1:04
Keith Worden30-Jun-06 1:04 
GeneralRe: Using MSHTML/CHtmlView in a thread Pin
Neville Franks30-Jun-06 1:38
Neville Franks30-Jun-06 1:38 
AnswerRe: Using MSHTML/CHtmlView in a thread Pin
peterchen8-Jul-06 5:37
peterchen8-Jul-06 5:37 
QuestionError registering dll Pin
Keith Worden29-Jun-06 7:33
Keith Worden29-Jun-06 7:33 
AnswerRe: Error registering dll Pin
Stephen Hewitt29-Jun-06 14:08
Stephen Hewitt29-Jun-06 14:08 
GeneralRe: Error registering dll Pin
Keith Worden30-Jun-06 0:19
Keith Worden30-Jun-06 0:19 
AnswerRe: Error registering dll Pin
Keith Worden30-Jun-06 0:54
Keith Worden30-Jun-06 0:54 
QuestionOutlook addin / paste clipboard content in message window Pin
Nicolas Richeton28-Jun-06 23:02
Nicolas Richeton28-Jun-06 23:02 
Hi,

I'm trying to paste clipboard content in an outlook message window (new mail/reply) from an outlook addin (when a button is pushed)

I'm using VC++ 6, and the addin is based on several good articles from codeproject.
I was able to create a button in the message window, but I didn't found a way to paste content in this window through the Office API.

So I used SPY++ to get the structure of an Outlook message window and sent a WM_PASTE event to the body control handle. (Using Active window, FindWindowEx and SendMessage)

This works fine for text and rich text emails ('RichText20' window class), but I can't make it work for HTML mails (Window class is 'Internet Explorer_Server').

Since WM_PASTE event was not working, I managed to get an IHTMLDocument2 pointer on this control and tried to use execCommand( _T( "Paste" ) , ...) but nothing happens. On the contrary, when I use execCommand( _T( "SelectAll"), ... ), it works.

I'm running out of ideas on this, so i'm looking for hints.
Basically , I only want to insert text/links at the cursor position.

I think that if I can get an IWebBrowser2 pointer for this control, I should by able to send the event using execWB (I already did it in IE)


How Internet Server_Explorer handles Ctrl-C events ? Is it using another control ?
Do you know a better way to do this ?

Thanks
--
Nicolas




AnswerRe: Outlook addin / paste clipboard content in message window Pin
Nicolas Richeton29-Jun-06 4:59
Nicolas Richeton29-Jun-06 4:59 
QuestionIs COM supported on operating systems other than windows? Pin
Ajax9528-Jun-06 14:43
Ajax9528-Jun-06 14:43 
QuestionGetting Exception when two instance of ActiveX control are opened using Ctrl+N in IE Pin
Muhammad Azam28-Jun-06 4:10
Muhammad Azam28-Jun-06 4:10 
AnswerRe: Getting Exception when two instance of ActiveX control are opened using Ctrl+N in IE Pin
Mike Dimmick3-Jul-06 3:25
Mike Dimmick3-Jul-06 3:25 
GeneralRe: Getting Exception when two instance of ActiveX control are opened using Ctrl+N in IE Pin
Muhammad Azam4-Jul-06 23:21
Muhammad Azam4-Jul-06 23:21 
QuestionImporting and using an OCX Pin
Sean Capstick28-Jun-06 3:45
Sean Capstick28-Jun-06 3:45 
Questionchanges in idl file generated by an ocx [modified] Pin
nikhil_ag198528-Jun-06 0:31
nikhil_ag198528-Jun-06 0:31 
AnswerRe: changes in idl file generated by an ocx Pin
Mike Dimmick28-Jun-06 8:54
Mike Dimmick28-Jun-06 8:54 
GeneralRe: changes in idl file generated by an ocx Pin
nikhil_ag198528-Jun-06 15:24
nikhil_ag198528-Jun-06 15:24 
GeneralRe: changes in idl file generated by an ocx Pin
nikhil_ag19855-Jul-06 20:11
nikhil_ag19855-Jul-06 20:11 
QuestionAdding picture to outlook command button Pin
Laxman Auti28-Jun-06 0:00
Laxman Auti28-Jun-06 0:00 
AnswerRe: Adding picture to outlook command button Pin
_AnsHUMAN_ 28-Jun-06 0:28
_AnsHUMAN_ 28-Jun-06 0:28 
GeneralRe: Adding picture to outlook command button Pin
Laxman Auti28-Jun-06 0:31
Laxman Auti28-Jun-06 0:31 
AnswerRe: Adding picture to outlook command button Pin
Ganesh_T28-Jun-06 0:48
Ganesh_T28-Jun-06 0:48 
GeneralRe: Adding picture to outlook command button Pin
Laxman Auti28-Jun-06 1:08
Laxman Auti28-Jun-06 1:08 
QuestionInserting ActiveX control in ActiveX server Pin
ptiJean27-Jun-06 21:44
ptiJean27-Jun-06 21:44 
AnswerRe: Inserting ActiveX control in ActiveX server Pin
Muhammad Azam28-Jun-06 4:18
Muhammad Azam28-Jun-06 4:18 

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.