Get Inspector Ptr In Outlook 2007.

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
 
D

Dmitry Streblechenko

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
>
 
K

KarthikonIT

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
 
C

cainrandom

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
M Outlook 2010 How could I globally redesign an outlook template form/region/inspector template used to display mail lists or an individual mails? Outlook VBA and Custom Forms 0
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
L Duplicate calendar entries in Outlook 365 Using Outlook 2
V Outlook 2021 Can anyone explain why my Outlook views keep changing?! Using Outlook 2
AlphonseG Outlook 365 Outlook Crashes on setting SaveSentMessageFolder Outlook VBA and Custom Forms 2
S Outlook 2021 How to customize colors Outlook 2021 & Office 2021 on PC Using Outlook 0
D Outlook 2007 Recovering E-Mails Using Outlook 0
G Stop Outlook 365 adding meetings to calendar Using Outlook 0
HarvMan Using Emojis in Outlook 365 Using Outlook 3
T Outlook 2019 Not Using Auto Compete After Deletion of 365 Using Outlook 1
D Gmail mail is being delivered to a different email inbox in Outlook App 2021 Using Outlook 2
Albert McCann Outlook 2021 Outlook Display of HTML Email from two senders is glitchy Using Outlook 0
richardwing Outlook 365 VBA to access "Other Actions" menu for incoming emails in outlook Outlook VBA and Custom Forms 0
J Unable to delete folders in Outlook 2019 / Windows Using Outlook 1
K Outlook for Mac problems Using Outlook 0
D Outlook app 2021 & iCloud PST issues Using Outlook 2
M c# vsto Outlook.ApplicationEvents_11_NewMailEx Outlook VBA and Custom Forms 1
J Event/Meeting in Outlook Does Not Align with SharePoint Calendar Using Outlook 5
Christopher M Is it me, or is Outlook 365 BUGGY? Using Outlook 3
U Outlook on the iPhone cannot approve filtered Emails Using Outlook 0
J GoDaddy migrated to Office365 - Outlook Wont Add Account Exchange Server Administration 21
K Outlook 365 After migrating to Outlook 365, some contacts display in emails with prefixes Using Outlook 1
J Outlook Rules VBA Run a Script - Multiple Rules Outlook VBA and Custom Forms 0
Horsepower Cannot delete gmail in iPhone Outlook outbox Using Outlook 1
F Outlook 2019 Outlook 2019 Add and Sync to New computer Comcast server Using Outlook 2
M Understanding Outlook Identities Using Outlook 1
kburrows Outlook or Phone Combining Contacts? Using Outlook 0

Similar threads

Top