Get Inspector Ptr In Outlook 2007.

  • Thread starter Thread starter KarthikonIT
  • Start date Start date
Status
Not open for further replies.
K

KarthikonIT

Hi,

I m creating a plugin in MS Outlook in VC++

I have implemented the "_IDTExtensibility2" & "IRibbonExtensibility"

I have few doubts

Ques 1:

I have added a button to the tab "idMso=\"TabReadMessage" in OUtlook 2007

ribbon controls. It gives me IDispatch* in the call back function, but i m

not able to get the

"Outlook::_InspectorPtr" by QueryInterface method. It returns null for

Outlook::_InspectorPtr.

whereas I was able to ge the "Outlook::_InspectorPtr" from the LPDISPATCH

para of the Callback fn. of Outlook 2003

How do I get the inspector ptr of the email opened(double click of message)

in OUtlook 2007.

code snippet of call back

STDMETHODIMP CConnect::ButtonClicked(IDispatch * RibbonControl)

{

Outlook::_InspectorPtr spInspctrPtr;

RibbonControl->QueryInterface(__uuidof(Outlook::_InspectorPtr),(void **)

&spInspctrPtr;); //spInspctrPtr -> is always null.

}

Ques 2:

I have added a button to the ribbon control and set an image to it.

If i give a bmp file, it is loading up in MS Outlook. whereas If i give a png

file(transparent one) it's not loading up..

Is there any specific dimention or property i need to set in the png file?

Thanks..


201001
 
1. QI RibbonControl parameter for IRibbonControl, then read the

IRibbonControl.Context property, then QI it for IInspector.

2. Don't know, sorry.

Dmitry Streblechenko (MVP)

-

"KarthikonIT " <u54961@uwe> wrote in message

news:a1f40365c8ff0@uwe...
> Hi,
> I m creating a plugin in MS Outlook in VC++
> I have implemented the "_IDTExtensibility2" & "IRibbonExtensibility"

> I have few doubts
> Ques 1:
> I have added a button to the tab "idMso=\"TabReadMessage" in OUtlook
> 2007
> ribbon controls. It gives me IDispatch* in the call back function, but i m
> not able to get the
> "Outlook::_InspectorPtr" by QueryInterface method. It returns null for
> Outlook::_InspectorPtr.

> whereas I was able to ge the "Outlook::_InspectorPtr" from the
> LPDISPATCH
> para of the Callback fn. of Outlook 2003

> How do I get the inspector ptr of the email opened(double click of
> message)
> in OUtlook 2007.

> code snippet of call back

> STDMETHODIMP CConnect::ButtonClicked(IDispatch * RibbonControl)
> {
> Outlook::_InspectorPtr spInspctrPtr;

> RibbonControl->QueryInterface(__uuidof(Outlook::_InspectorPtr),(void
> **)
> &spInspctrPtr;); //spInspctrPtr -> is always null.

> }

> Ques 2:

> I have added a button to the ribbon control and set an image to it.
> If i give a bmp file, it is loading up in MS Outlook. whereas If i give a
> png
> file(transparent one) it's not loading up..

> Is there any specific dimention or property i need to set in the png file?

> Thanks..

> >
> 201001
>
 
Dmitry Streblechenko wrote:
> 1. QI RibbonControl parameter for IRibbonControl, then read the
> IRibbonControl.Context property, then QI it for IInspector.
> 2. Don't know, sorry.
>
> > Hi,
> > I m creating a plugin in MS Outlook in VC++

> [quoted text clipped - 39 lines]
>

>> Thanks..


Hi Dmitry,

Thnk u so much!!! It works


201001
 
Regarding question 2, you'd have to post the code you're using to load

the image and return it to Outlook.
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
B Auto Preview Attachment in Inspector Reading Pane Outlook VBA and Custom Forms 1
D help with Item/Inspector close event Outlook VBA and Custom Forms 1
T New Inspector word editor crash Outlook 2003 Outlook VBA and Custom Forms 3
A running code after the new inspector is visible Outlook VBA and Custom Forms 1
N Modal form is not properly working on inspector Outlook VBA and Custom Forms 10
K add a designed group into a existing inspector ribbon Outlook VBA and Custom Forms 7
E Accessing a Form Region from an Inspector Outlook VBA and Custom Forms 3
E Accessing a Form Region from an Inspector Outlook VBA and Custom Forms 3
T How to get Inspector object from Window handle Outlook VBA and Custom Forms 2
T How to get Inspector or MailItem from wordEditor Outlook VBA and Custom Forms 6
S PR_MESSAGEFLAGS & Compose/Read - Inspector Outlook VBA and Custom Forms 4
S Error 287 on Inspector.Close() Outlook VBA and Custom Forms 4
K Buttons are added multiple times in New Inspector window Outlook VBA and Custom Forms 4
V How to find mailitem in the inspector is a brand new one Outlook VBA and Custom Forms 2
A active inspector in memory Outlook VBA and Custom Forms 1
B How to get the path from an outlook.Inspector Outlook VBA and Custom Forms 4
M How to get active inspector window handle? Outlook VBA and Custom Forms 3
A disable a menu in active inspector Outlook VBA and Custom Forms 1
S inspector toolbar buttons get multiple events Outlook VBA and Custom Forms 3
S Quick access toolbar in inspector window Outlook VBA and Custom Forms 3
T Using Ribbon in Inspector window Outlook VBA and Custom Forms 2
P Inspector.WordEditor always returns null Outlook VBA and Custom Forms 3
Q Inspector Bug/Question Outlook VBA and Custom Forms 3
Z Inspector.CurrentItem causes Shared Calendar Issue Outlook VBA and Custom Forms 5
M Outlook not logging in to server Using Outlook 0
J Outlook macro to run before email is being send Outlook VBA and Custom Forms 0
R Outlook 2021 change view Using Outlook 2
K Outlook font corrupted in some point sizes, resets on close/open Using Outlook 2
J Is the Windows Outlook Tasks module really going to be gone? Using Outlook 3
F Outlook 2010 and Hotmail Using Outlook 1
A Outlook 2021 needs 'enter' for people search Using Outlook 2
HarvMan Outlook 365 Inbox Font Using Outlook 8
Retired Geek Outlook on MAC delete duplicate Sent emails Using Outlook 0
S New Outlook - IMAP ISSUES and support for addins? Using Outlook 1
C outlook.com fonts Using Outlook 2
mickymakz Common challenges organizations face when integrating SharePoint and Outlook? Exchange Server Administration 0
R Outlook with several IMAP accounts generating folders with 1111 suffix Using Outlook 0
D Send email from Outlook Alias using Mac? Using Outlook 0
G Reply a selected message and remove blank space before signature Outlook 365 version 2406 64BIT Outlook VBA and Custom Forms 2
G Reply a selected message and remove blank space before signature Outlook 365 version 2406 64BIT Outlook VBA and Custom Forms 0
kburrows "New" Outlook Desktop App Mailbox Size Using Outlook 4
N Best way to sync calendar and contacts between Outlook 365 and Outlook on iPhone Using Outlook 4
H Macro to Delete Duplicate items in Outlook calendar where title is the same and date is the same Outlook VBA and Custom Forms 0
Y The New Outlook - Q's & Thoughts Using Outlook 28
M Start Outlook 365 at unified inbox Using Outlook 2
B Requesting VBA code to make Outlook prompt for confirmation when deleting a task? Outlook VBA and Custom Forms 4
T In-line reply style in Outlook II Outlook VBA and Custom Forms 1
G Outlook Contact Item.Restrict where FullName is NULL Outlook VBA and Custom Forms 3
J Emails with .ICS calendar invitations attached don't contents when received in Outlook 365 Using Outlook 6
W Outlook 2021 Hanging on "Sending Emails" Using Outlook 3

Similar threads

Back
Top