single instance checker addition for MSW

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16180 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Chris Elliott
2002-07-15 11:40:18 +00:00
parent 650ff63d99
commit d08d71a844
2 changed files with 111 additions and 1 deletions

View File

@@ -50,7 +50,16 @@ public:
// is another copy of this program already running?
bool IsAnotherRunning() const;
#ifdef __WXMSW__
// Activates Previous Instance if a window whose Title contains the search string is found
bool ActivatePrevInstance(const wxString & sSearch);
// Activates Previous Instance and passes CommandLine to wxCommandLineEvent
// if a window with matching Title is found
bool PassCommandLineToPrevInstance(const wxString & sSearch, const wxString & sCmdLine);
#endif
// dtor is not virtual, this class is not meant to be used polymorphically
~wxSingleInstanceChecker();