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
 
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
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
A Outlook can't remember outlook.com, Exchange password. Using Outlook 0
S Related messages show in main Outlook window vice new Advanced Find windows Using Outlook 1
H Force Outlook 2019 with GMail 2-Step to Require Login? Using Outlook 0
G Retaining Tabs in outlook body Using Outlook 2
V Setting up Outlook 2021 on new computer Using Outlook 2
G Add Map It button to Custom Contacts Form in Outlook Outlook VBA and Custom Forms 1
X Custom icon (not from Office 365) for a macro in Outlook Outlook VBA and Custom Forms 1
Victor_50 Problem - Google Workspace will stop "unsafe" access to Outlook end 2024 Using Outlook 3
C New pc, new outlook, is it possible to import auto-complete emailaddress Using Outlook 4
T Outlook 365 won't take new working password Using Outlook 0
S Create Outlook Task from Template and append Body with Email Body Outlook VBA and Custom Forms 4
P Can't add custom field to custom Outlook form, it always adds to the Folder instead Outlook VBA and Custom Forms 2
B Sync Outlook Public Folders to Contacts Using Outlook 2
D Delete Outlook emails from MS server Using Outlook 12
B Outlook tasks and PDF Using Outlook 4
D Outlook 2019 is no longer asking for password ... Using Outlook 5
Kika Melo How to mark as Junk any message not from Contacts (in Outlook.com) Using Outlook 3
L Outlook attachments from OneDrive as links Using Outlook 0
G Outlook 365 My iCloud Outlook doesn’t work after reinstalling Microsoft365 on Windows 10 PC – now I get error message on contacts and calendar Using Outlook 1
T How to Export & Import GMAIL Contacts into Outlook 2021 ? Using Outlook 4
M Synchronization and backup of Outlook from local to server. Using Outlook 8
T How to get an EVENT COLOR option in Outlook 2021 ? Using Outlook 0
K How can I delete an e-mail from Outlook Using Outlook 1
V Outlook Error The Attempted operation Failed. An Object Could Not be found Outlook VBA and Custom Forms 0
P Yahoo/IMAP folder rename by Outlook desktop 365 Using Outlook 0

Similar threads

Back
Top