I usually use a Mutex to keep my app from running twice and I
display a message to the user that it is running.
But rather than do that, if my app is running in the system tray and I try to re-launch my app,
how can I send a message to the running app to come up and show_normal ?
Tx
------------------
Scott Turchin
MCSE, MCP+I
Computer Creations Software http://www.tngbbs.com/ccs
[This message has been edited by Scott Turchin (edited January 08, 2006).]
display a message to the user that it is running.
But rather than do that, if my app is running in the system tray and I try to re-launch my app,
how can I send a message to the running app to come up and show_normal ?
Tx

Code:
Say I am here: If IsTrue App_PrevInstance(szClassName) Then MessageBox ByVal 0, "Another instance of " & g_szMine & " is already running!", ByVal StrPtr(g_szMine), ByVal %MB_ICONSTOP Exit Function Else hMutex = CreateMutex(ByVal %Null, 0, szClassName) End If I want to do something like this: If IsTrue App_PrevInstance(szClassName) Then lResult = MaximizeAlreadyRunningApp() Exit Function Else hMutex = CreateMutex(ByVal %Null, 0, szClassName) End If Function MaximizeAlreadyRunningApp() As Long ????????? End Function
Scott Turchin
MCSE, MCP+I
Computer Creations Software http://www.tngbbs.com/ccs
[This message has been edited by Scott Turchin (edited January 08, 2006).]
Comment