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
C I don't understand Outlook or Microsoft, anymore Using Outlook 0
P My Feedback to Microsoft and their response; also New Outlook roadmap Using Outlook 0
A New Outlook - Cannot drag IMAP emails to Task List in MyDay Using Outlook 1
L Android Outlook Doesn't Update PC Notification Changes Using Outlook 0
A How to open Excel file saved in Outlook folder? Outlook VBA and Custom Forms 4
D.Moore Outlook desktop client suggested searches question Using Outlook 19
Y Outlook 2016 (64-bit) Copy Local Cal. Events to Another Cal. with Modified Reminder time Using Outlook 2
T Outlook 2019 While connecting an IMAP account in "classic" Outlook 2024 I caused a massive duplication of emails on the server (death loop) Using Outlook 5
D Cannot logon to Outlook.com, or outlook on Mac, outlook not updating on ipad, iphone Using Outlook 1
J unable to get my new install of Outlook to display mailboxes in the single-line format. Using Outlook 1
D Legacy Microsoft Outlook for Mac Support will end in Oct 2025 Using Outlook 5
C Nasty Bug Lurking In Outlook For Years. The Trigger. Any Fix Or Workaround? Using Outlook 11
R Auto clicking Hyperlink in outlook Outlook VBA and Custom Forms 7
ughlook Open multiple contacts in NEW Outlook? Using Outlook 3
G Outlook translation feature is off Using Outlook 2
J Outlook 2010 does not let me put any account Using Outlook.com accounts in Outlook 3
P 3 of 5 PST files don't install from d:\outlook but only from D:\ Using Outlook 7
HarvMan January Windows 10 preview update force installs new Outlook Using Outlook 1
L Outlook 2010 - new installation on Windows 11 - aplzod32.dll is not a valid Add-in Using Outlook 12
J Outlook troubleshooting/logging - option grayed out Using Outlook 2
B Arrows missing from Outlook emails vertical scrollbar Using Outlook 0
G Outlook 2021 (New) doesn't respect default browser Using Outlook 9
B Outlook or iPhone turning tabs into spaces in Outlook Notes Using Outlook 1
P newly installed Office 365 includes OLD Outlook Using Outlook 6
R Outlook ribbon menu default? Using Outlook 7
H Spam email in Gmail not visible in Outlook Using Outlook 3

Similar threads

Back
Top