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
Retired Geek Outlook for the MAC with Yahoo accounts now very broken Using Outlook 6
S Outlook 2002- "Send" button has disappeared. Help please. Using Outlook 1
L How Stop Outlook Nag Messages Using Outlook 1
TomHuckstep Remove Send/Receive All Folders (IMAP/POP) button from Outlook 365 Ribbon Using Outlook 1
L I Cannot Sign Into My Outlook Account? Outlook VBA and Custom Forms 0
icacream Outlook 2021 - Google calendar in the peek Using Outlook 0
e_a_g_l_e_p_i Question about installing my Gmail account on my iPhone but still getting messages downloaded to my desktop Outlook. Using Outlook 3
F Want to add second email to Outlook for business use Using Outlook 3
kburrows Outlook Email Body Text Disappears/Overlaps, Folders Switch Around when You Hover, Excel Opens Randomly and Runs in the Background - Profile Corrupt? Using Outlook 0
M using excel to sort outlook appointment items Outlook VBA and Custom Forms 4
e_a_g_l_e_p_i MY Outlook 2021 changed the format of the shortcuts for mail, calendar etc. Using Outlook 10
Z Outlook 2021 Outlook new emails notification not working Using Outlook 5
K Changing the Deleted Items location in Outlook 2019 Using Outlook 2
J Outlook 365 Outlook Macro to Sort emails by column "Received" to view the latest email received Outlook VBA and Custom Forms 0
V How to use Comas in a picklist in Outlook forms Outlook VBA and Custom Forms 3
e_a_g_l_e_p_i Question about reinstalling Outlook 2021 Using Outlook 5
A Outlook 365 Outlook (part of 365) now working offline - argh Using Outlook 5
M Outlook Macro to save as Email with a file name format : Date_Timestamp_Sender initial_Email subject Outlook VBA and Custom Forms 0
G LinkedIn tab missing in Outlook 365 (but working in OWA) Using Outlook 0
Jay Freedman Outlook forgets "not junk" marking Using Outlook 0
KurtLass Opening Graphics Attachments in Outlook 2021 Using Outlook 0
P now on office 365 but getting error messages about missing Outlook 2013 cache folders Using Outlook 2
B Outlook config download Outlook VBA and Custom Forms 1
M Short term workaround for when Outlook searching stopped functioning Using Outlook 0
D Outlook 2016 Creating an outlook Macro to select and approve Outlook VBA and Custom Forms 0

Similar threads

Top