PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook Program Addins Office 2003 Beta

Reply

Office 2003 Beta

 
Thread Tools Rate Thread
Old 30-06-2003, 10:45 PM   #1
Soumitra Banerjee
Guest
 
Posts: n/a
Default Office 2003 Beta


Hello Everybody,

I have an Addin, that basically displays a modal dialog. This works fine in
Outlook 2002. In Office 2003 version, the dialog is no longer modal. Is
there a way of making this dialog modal? Any help would be highly
appreciated.

My Code snippet is as follows:
*****************************************************
//Get the handle to the main window

// QI() for _Application
CComQIPtr <Outlook::_Application> spApp(Application);
ATLASSERT(spApp);


m_pOutLookApp = spApp.Detach ();

CComPtr<Outlook::_Explorer> spExplorer;
m_pOutLookApp->ActiveExplorer(&spExplorer);



CComPtr<IOleWindow> spOleWindow;
spExplorer.QueryInterface(&spOleWindow);

if (spOleWindow)
{
spOleWindow->GetWindow(&m_hWnd);
}
..........
****************************************************
...........
//Display the modal dialog.

if (bHasBinderPkg == FALSE)
{
MessageBox(m_hWnd, _T("xxxxxxxxxxxxxxxxx."), _T("XXXXXXXX"),
MB_OK|MB_ICONSTOP);
throw -1;
}

CCSelectAttachment dlg(attachments) ;

dlg.DoModal(m_hWnd);



*****************************************************

Thanks,
Regards,

Soumitra Banerjee


  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

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