]> git.saurik.com Git - wxWidgets.git/commitdiff
added wxSetInstance()
authorRobin Dunn <robin@alldunn.com>
Fri, 19 Feb 1999 19:35:30 +0000 (19:35 +0000)
committerRobin Dunn <robin@alldunn.com>
Fri, 19 Feb 1999 19:35:30 +0000 (19:35 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1731 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/msw/private.h
src/msw/app.cpp

index dcf23526ab4b51c6fcccf1f99e9ed811dc1413eb..4e95ca8b5bcd12acac682dbce9a429abc99696d9 100644 (file)
@@ -34,6 +34,7 @@ WXDLLEXPORT_DATA(extern HICON) wxDEFAULT_MDICHILDFRAME_ICON;
 WXDLLEXPORT_DATA(extern HFONT) wxSTATUS_LINE_FONT;
 
 WXDLLEXPORT HINSTANCE wxGetInstance();
+WXDLLEXPORT void wxSetInstance(HINSTANCE hInst);
 WXDLLEXPORT void wxFillLogFont(LOGFONT *logFont, wxFont *font);
 WXDLLEXPORT wxFont wxCreateFontFromLogFont(LOGFONT *logFont); // , bool createNew = TRUE);
 
index 16b58ba2f9ab12b594a1c6a50ddc2f7d595afcd1..ba4a42af25a08958b3e8eae381e2e0e7e51f00d7 100644 (file)
@@ -1126,6 +1126,11 @@ HINSTANCE wxGetInstance()
   return wxhInstance;
 }
 
+void wxSetInstance(HINSTANCE hInst)
+{
+    wxhInstance = hInst;
+}
+
 // For some reason, with MSVC++ 1.5, WinMain isn't linked in properly
 // if in a separate file. So include it here to ensure it's linked.
 #if (defined(__VISUALC__) && !defined(__WIN32__)) || (defined(__GNUWIN32__) && !defined(__TWIN32__))