Click here to Skip to main content
15,908,931 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: behavior of strlen() Pin
David Crow12-Mar-08 5:43
David Crow12-Mar-08 5:43 
GeneralRe: behavior of strlen() modified Pin
koumodaki12-Mar-08 5:44
koumodaki12-Mar-08 5:44 
GeneralRe: behavior of strlen() modified Pin
David Crow12-Mar-08 5:47
David Crow12-Mar-08 5:47 
GeneralRe: behavior of strlen() modified Pin
koumodaki12-Mar-08 5:54
koumodaki12-Mar-08 5:54 
GeneralRe: behavior of strlen() modified Pin
Rajkumar R12-Mar-08 5:47
Rajkumar R12-Mar-08 5:47 
GeneralRe: behavior of strlen() modified Pin
koumodaki12-Mar-08 5:54
koumodaki12-Mar-08 5:54 
GeneralRe: behavior of strlen() modified Pin
Chris Losinger12-Mar-08 8:16
professionalChris Losinger12-Mar-08 8:16 
GeneralQuery about Tray Icon Pin
ramana.g12-Mar-08 5:16
ramana.g12-Mar-08 5:16 
Hi all,
I have developed a dialog based application. In CMyDialog::OnInitDialog() i wrote code to add TrayIcon.

HICON hIcon = NULL;
m_NotifyIconData.cbSize = sizeof(NOTIFYICONDATA);
m_NotifyIconData.hWnd = m_hWnd;
m_NotifyIconData.uID = IDR_MAINFRAME;
m_NotifyIconData.uFlags = NIF_ICON | NIF_MESSAGE | NIF_TIP;
m_NotifyIconData.uCallbackMessage = ID_TRAY_MESSAGE; //WM_USER + 1
hIcon = (HICON) LoadIcon(AfxGetInstanceHandl(),MAKEINTRESOURCE (IDR_MAINFRAME));
m_NotifyIconData.hIcon = hIcon;
strcpy(m_NotifyIconData.szTip, "My Tray Icon");
Shell_NotifyIcon(NIM_ADD, &m_NotifyIconData);
if (hIcon)
DestroyIcon(hIcon);

It successfully added Tray Icon to the Notification area.

My sample application is running well. But, when i kill windows "explorer.exe" process from task manager and start "explorer" again, TrayIcon is missing in Notification area. I want Tray icon to be added again in this scenario. How to do this?

Thank you...
GeneralRe: Query about Tray Icon Pin
David Crow12-Mar-08 5:44
David Crow12-Mar-08 5:44 
GeneralRe: Query about Tray Icon Pin
ramana.g12-Mar-08 6:00
ramana.g12-Mar-08 6:00 
QuestionHow to count no. of folders in a directory? Pin
vandana712-Mar-08 5:15
vandana712-Mar-08 5:15 
AnswerRe: How to count no. of folders in a directory? Pin
Justin Perez12-Mar-08 5:17
Justin Perez12-Mar-08 5:17 
AnswerRe: How to count no. of folders in a directory? Pin
Mark Salsbery12-Mar-08 5:22
Mark Salsbery12-Mar-08 5:22 
AnswerRe: How to count no. of folders in a directory? Pin
ptr_Electron12-Mar-08 5:59
ptr_Electron12-Mar-08 5:59 
AnswerRe: How to count no. of folders in a directory? Pin
Hamid_RT12-Mar-08 7:46
Hamid_RT12-Mar-08 7:46 
GeneralRe: How to count no. of folders in a directory? Pin
ThatsAlok1-Apr-09 19:04
ThatsAlok1-Apr-09 19:04 
GeneralRAM disk driver for windows 2000 onwards. Pin
vikramlinux12-Mar-08 4:53
vikramlinux12-Mar-08 4:53 
GeneralRe: RAM disk driver for windows 2000 onwards. Pin
Iain Clarke, Warrior Programmer12-Mar-08 5:04
Iain Clarke, Warrior Programmer12-Mar-08 5:04 
GeneralRe: RAM disk driver for windows 2000 onwards. Pin
vikramlinux12-Mar-08 19:42
vikramlinux12-Mar-08 19:42 
QuestionRe: RAM disk driver for windows 2000 onwards. Pin
Maxwell Chen12-Mar-08 19:52
Maxwell Chen12-Mar-08 19:52 
GeneralSegment selected region from the video frames Pin
ptr_Electron12-Mar-08 3:17
ptr_Electron12-Mar-08 3:17 
GeneralRe: Segment selected region from the video frames Pin
Rajkumar R12-Mar-08 3:42
Rajkumar R12-Mar-08 3:42 
GeneralRe: Segment selected region from the video frames Pin
ptr_Electron12-Mar-08 5:46
ptr_Electron12-Mar-08 5:46 
GeneralRe: Segment selected region from the video frames Pin
Rajkumar R12-Mar-08 5:55
Rajkumar R12-Mar-08 5:55 
GeneralRe: Segment selected region from the video frames Pin
ptr_Electron12-Mar-08 6:04
ptr_Electron12-Mar-08 6:04 

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.