A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Toolbar problem -Help



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old May 25th 07, 11:27 AM posted to microsoft.public.outlook.program_addins
lencastro
external usenet poster
 
Posts: 8
Default Toolbar problem -Help


I'm in need to check the opened window...and i have insert toolbar
accoring to the window opened

HRESULT CKGAddIn::Invoke(DISPID dispidMember,REFIID riid,LCID lcid,
WORD wFlags,
DISPPARAMS* pDispParams, VARIANT* pvarResult,
EXCEPINFO* pExcepInfo, UINT* puArgErr)
{
if (dispidMember==0xf001)
{
if (!pDispParams)
return E_INVALIDARG;

if (pDispParams-cArgs 0)
{

ATLASSERT(m_pApp);
CComQIPtrOutlook::_InspectorspInsp;
m_pApp-ActiveInspector(&spInsp);
ATLASSERT(spInsp);----(****FAILING HERE****)
IDispatch *spItem;
spInsp-get_CurrentItem(&spItem);----(****FAILING HERE****)
ATLASSERT(spItem);
CComQIPtrOutlook::_MailItemspMailItem;
CComQIPtrOutlook::Recipients spRecipients;

BSTR bstrBody;
BSTR bstrHTMLBody;
LONG count;

spMailItem-get_Body(&bstrBody);
spMailItem-get_HTMLBody(&bstrHTMLBody);

spMailItem-get_Recipients(&spRecipients);
spRecipients-get_Count(&count);


}

}

return TRUE;
}
if count==0 then it is a compose window
This is how i planned to check,can any one tell me what is wrong with
my code...
Also tell me is there any other way to do it....

Thank you
Lencastro

Ads
 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Toolbar problem lencastro Add-ins for Outlook 1 May 27th 07 10:27 PM
Toolbar problem -Help lencastro Add-ins for Outlook 0 May 25th 07 11:20 AM
Toolbar problem lencastro Add-ins for Outlook 0 May 25th 07 11:17 AM
TOOLBAR PROBLEM its_my_dime Outlook - General Queries 0 December 26th 06 09:09 PM
Toolbar problem Lesley Outlook Express 7 August 30th 06 10:19 AM


All times are GMT +1. The time now is 08:21 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.