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

C / C++ / MFC

 
GeneralRe: Property Sheet in Toolbar Pin
Chris Richardson19-Dec-02 18:06
Chris Richardson19-Dec-02 18:06 
GeneralModeless dialog in Console app Pin
Jonathan de Halleux18-Dec-02 23:17
Jonathan de Halleux18-Dec-02 23:17 
GeneralRe: Modeless dialog in Console app Pin
Rage18-Dec-02 23:20
professionalRage18-Dec-02 23:20 
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 
i have an mfc dialog based app.
in the initInstance function, I'm creating an object of the dialog box (provided by the wizard) and creating a tray icon using NotifyIconData.(without showing the dialog box).

NOW i want to show this dialog box when i right click on this icon but multiple instances of dialog box appear even if i move my mouse over the icon, while i have used WM_LBUTTONDBLCLK in the code below (InitInstance)?

how do i go about it?
this is my src code


CSchdDlg dlg;

m_NotifyIconData.cbSize = sizeof m_NotifyIconData;
m_NotifyIconData.hWnd =dlg.GetSafeHwnd();
m_NotifyIconData.uID = 1;
m_NotifyIconData.uCallbackMessage = WM_LBUTTONDBLCLK ;
m_NotifyIconData.uFlags = NIF_MESSAGE|NIF_ICON|NIF_TIP;
m_NotifyIconData.hIcon = LoadIcon(IDR_MAINFRAME);
strcpy(m_NotifyIconData.szTip, AfxGetAppName());

Shell_NotifyIcon(NIM_ADD, &m_NotifyIconData);


a quick & detailed response will be heartly appreciated!

thanx
rishabhs



rishabhs
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 
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 

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.