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 » Outlook - General Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to suppress Reminder dialog box programatically



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old December 11th 06, 10:56 AM posted to microsoft.public.outlook
UB
external usenet poster
 
Posts: 1
Default How to suppress Reminder dialog box programatically

I am trying to register my interface with IConnectionPoint of outlook
reminders to capture BeforeReminderShow event and having some
issues. Here goes the pseudo code

int APIENTRY _tWinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine,
int nCmdShow)
{
//Register class CMyEventHandler : public IDispatch with
IConnectionPoint of Outlook reminder

//Removed Wizard generated code for registering the widow class and
initializing the window

// And Main message loop:
while (GetMessage(&msg, NULL, 0, 0))
{
if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}

return (int) msg.wParam;

}

If this is the code I do get control back in CMyEventHandler::Invoke()
when some Reminder event occurs as a notification from outlook.

But if I replace the message loop with while(1){} I dont get any such
notifications, instead outlook hangs.

Looking at the Main message loop, it seems that its also a infinite
loop unless GetMessge() returns Zero for WM_QUIT. What I want to know
is why i dont get notified by Outlook if there is actual infinite loop
instead of message loop? What make message loop different than
while(1){} ?

Thanks in advance

 




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
Spell check dialog box scrolls to the bottom Spell check dialog box scrolls to the bottom repeatedly, Tom Tessier Outlook Express 7 November 11th 06 03:31 PM
How to Suppress Address and Name details dialog box through VBScript Satish Boddapati Outlook - Using Forms 0 November 10th 06 05:50 AM
How to Suppress Address and Name details dialog box through VBScript Satish Boddapati Outlook - General Queries 0 November 10th 06 05:49 AM
always hide this dialog box Lynn Outlook - General Queries 5 August 26th 06 04:15 PM
my flagged items are not popping up in the "reminder dialog box", Karla Camarata Outlook - Using Contacts 0 January 10th 06 06:57 PM


All times are GMT +1. The time now is 05:16 PM.


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.