Click here to Skip to main content
16,011,585 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Modeless dialog in Console app Pin
Hans Ruck18-Dec-02 23:54
Hans Ruck18-Dec-02 23:54 
GeneralRe: Modeless dialog in Console app Pin
Rage19-Dec-02 0:08
professionalRage19-Dec-02 0:08 
Generalcin and modeless Pin
Jonathan de Halleux19-Dec-02 0:12
Jonathan de Halleux19-Dec-02 0:12 
GeneralRe: cin and modeless Pin
Hans Ruck19-Dec-02 0:59
Hans Ruck19-Dec-02 0:59 
Generaltray icon problem Pin
r i s h a b h s18-Dec-02 23:14
r i s h a b h s18-Dec-02 23:14 
GeneralRe: tray icon problem Pin
Zdenek Navratil19-Dec-02 0:07
Zdenek Navratil19-Dec-02 0:07 
GeneralRe: tray icon problem Pin
r i s h a b h s19-Dec-02 0:15
r i s h a b h s19-Dec-02 0:15 
GeneralRe: tray icon problem Pin
Zdenek Navratil19-Dec-02 1:14
Zdenek Navratil19-Dec-02 1:14 
I suppose a Class Wizard has created a
BEGIN_MESSAGE_MAP(CYourDialog, CDialog)...END_MESSAGE_MAP()
sequence for CYourDialog.
Using your editor, paste a line
ON_MESSAGE(UWM_ICONNOTIFY, OnSystemTrayIconNotify)
there (for example just below the BEGIN_MESSAGE_MAP() macro line).
Avoid a temptation to put it somewhere between
//{{AFX_MSG_MAP(CYourDialog)
//}}AFX_MSG_MAP
since Class Wizard might get confused.
Insert the declaration of your icon message handler OnSystemTrayIconNotify
into CYourDialog class. Like this:
afx_msg LRESULT OnSystemTrayIconNotify(WPARAM, LPARAM);

That's all.
Zdenek
GeneralRe: tray icon problem Pin
Fredrik Skog19-Dec-02 0:12
Fredrik Skog19-Dec-02 0:12 
GeneralRe: tray icon problem Pin
r i s h a b h s19-Dec-02 0:47
r i s h a b h s19-Dec-02 0:47 
GeneralRe: tray icon problem Pin
Fredrik Skog19-Dec-02 0:50
Fredrik Skog19-Dec-02 0:50 
GeneralRe: tray icon problem Pin
r i s h a b h s19-Dec-02 1:22
r i s h a b h s19-Dec-02 1:22 
GeneralRe: tray icon problem Pin
Fredrik Skog19-Dec-02 1:24
Fredrik Skog19-Dec-02 1:24 
QuestionListing network paths? Pin
scy7he18-Dec-02 23:08
scy7he18-Dec-02 23:08 
AnswerRe: Listing network paths? Pin
Andreas Saurwein19-Dec-02 1:22
Andreas Saurwein19-Dec-02 1:22 
QuestionDifferent versions of ODBC drivers accept different parameters (Execute())?? Pin
Wenrich18-Dec-02 22:29
Wenrich18-Dec-02 22:29 
AnswerRe: Different versions of ODBC drivers accept different parameters (Execute())?? Pin
Pavel Klocek18-Dec-02 22:47
Pavel Klocek18-Dec-02 22:47 
GeneralRe: Different versions of ODBC drivers accept different parameters (Execute())?? Pin
Wenrich19-Dec-02 13:42
Wenrich19-Dec-02 13:42 
GeneralRe: Different versions of ODBC drivers accept different parameters (Execute())?? Pin
Pavel Klocek20-Dec-02 0:35
Pavel Klocek20-Dec-02 0:35 
QuestionHandle of a Bitmap Image ? Pin
ArunKGoyal18-Dec-02 22:26
ArunKGoyal18-Dec-02 22:26 
AnswerRe: Handle of a Bitmap Image ? Pin
PDStone18-Dec-02 22:34
PDStone18-Dec-02 22:34 
AnswerRe: Handle of a Bitmap Image ? Pin
Dominik Reichl18-Dec-02 22:39
Dominik Reichl18-Dec-02 22:39 
GeneralRe: Problem with CFileDialog Pin
PDStone18-Dec-02 22:24
PDStone18-Dec-02 22:24 
QuestionMessage transfer between two classes? Pin
chen18-Dec-02 21:32
chen18-Dec-02 21:32 
AnswerRe: Message transfer between two classes? Pin
Rage18-Dec-02 21:42
professionalRage18-Dec-02 21:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.