Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTTrayIcon
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTTrayIcon

 Post Reply Post Reply
Author
Message
manoj View Drop Down
Newbie
Newbie
Avatar

Joined: 26 October 2004
Location: India
Status: Offline
Points: 31
Post Options Post Options   Thanks (0) Thanks(0)   Quote manoj Quote  Post ReplyReply Direct Link To This Post Topic: CXTTrayIcon
    Posted: 26 October 2004 at 7:55am

I want to Maximize my application from system tray by another instance of application.

in main dialog class

//////////////////////////////////////////////////////////// //////////////
//System Tray

CXTTrayIcon m_TrayIcon;


m_TrayIcon.Create( LoadString(IDS_APP_NAME),
this ,IDR_MAINFRAME,IDR_MENU_SYSTEMTRAY,ID_SYSTEMTRAY_SHOWMAINWIN DOW);
m_TrayIcon.HideIcon();

In initInstanece Function

{

CString strClassName;

strClassName.LoadString(IDS_APP_TITLE);

HWND hWndPrevious = ::FindWindow("#32770", strClassName);

if (hWndPrevious)

{

if (::IsIconic(hWndPrevious))

::ShowWindow(hWndPrevious,SW_RESTORE );

::SetForegroundWindow(::GetLastActivePopup (hWndPrevious));

}

}

return FALSE;

this problem occur if i am using CXTTrayIcon

If I use SDK then above function is working perfectly

Please reply ASAP

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.