![]() But when i loggoff the system and then loggin, the tray icon is freezed!!! the system tray icon appears and it performs the apporpriate functions. The application works very fine when i restrat the system i.e. dialog boxes are displayed, some background operations are performed, etc.) On double clicking the icon the application starts (ie. The application starts with an icon in the System tray. I have made my application run as a service. I am developing an application using MFC VC++ Version 6.0 for Windows 2000. Re: Popup menu by Right-click overlaps with Taskbar menus Is this a VC7 bug? Or am I missing anything? MnItem1->TrackPopupMenu( TPM_RIGHTBUTTON | TPM_RIGHTALIGN, Void CAutoUpdatesDlg::ShowTrayPopupMenu()ĬMenu *mnItem1 = mnTrayPopup.GetSubMenu(0) ![]() I followed the exact steps that were posted on MSDN, such as,Īfx_msg LONG CAutoUpdatesDlg::OnSysTrayIconClick( WPARAM wParam, LPARAM lParam ) In other words, if I click again, then both menus are displayed. ![]() If I right-click one more time, then only my menus are displayed. When I right-click on the icon, not only my popup menus but also the taskbar popup menu, such as, "Toolbars", "Adjust Date/Time", etc. I wrote an MFC program whose icon, tooltip and menus are available in systray. I'd REALLY appreciate it if anyone can show me how to resolve this. If I right-click one more time, then only "Restore" menu is displayed. are displayed, so "Restore" menu is displayed behind the taskbar menus and eventually it is hidden. when I right-click on the icon, not only your "Restore" popup menus but also the taskbar popup menu, such as, "Toolbars", "Adjust Date/Time", etc. After I saw your post, I was hoping that I could use yours, but when I tested, yours also behaved the same, i.e. ![]() Hi I've been looking for the small nuisance that my application currently has, so I posted a help to MSDN newsgroup but no one answered so far. This will be the onclick for the hide button // in order to call that the app is minimised. TPM_RIGHTBUTTON,pt.x, pt.y, AfxGetMainWnd()) ![]() LONG CYourDlg::OnTrayNotify ( WPARAM wParam, LPARAM lParam ) Remove icon from taskbar tray if (m_pTray) M_pTray = new CTrayNot ( this,WM_TRAY_NOTIFY, ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |