Any error in my code! [modified]
-
Hi everybody! I wrote a code to display a messagebox when WM_QUERYENDSESSION message is posted.This is the code i wrote! bool CMainWnd::OnQueryEndSession() { MessageBox(NULL,"QueryEndSession message is posted",MB_OK); } Is this correct! I expected to get a messagebox when i wanted to logoff the system. But it didnt work!Is anything wrong with my code!If so,I humbly request you to respond me! Thanks in advance! Regards Shalini -- modified at 6:55 Friday 2nd March, 2007
-
Hi everybody! I wrote a code to display a messagebox when WM_QUERYENDSESSION message is posted.This is the code i wrote! bool CMainWnd::OnQueryEndSession() { MessageBox(NULL,"QueryEndSession message is posted",MB_OK); } Is this correct! I expected to get a messagebox when i wanted to logoff the system. But it didnt work!Is anything wrong with my code!If so,I humbly request you to respond me! Thanks in advance! Regards Shalini -- modified at 6:55 Friday 2nd March, 2007
ShaluMalu wrote:
Is anything wrong with my code
No. Are yo sure
ON_WM_QUERYENDSESSION()
is there is message map.Prasad Notifier using ATL | Operator new[],delete[][^]