remove the ugly INSTANCE macro
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57557 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -29,13 +29,11 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "wx/private/socket.h"
|
#include "wx/private/socket.h"
|
||||||
|
#include "wx/msw/private.h" // for wxGetInstance()
|
||||||
#include "wx/apptrait.h"
|
#include "wx/apptrait.h"
|
||||||
#include "wx/thread.h"
|
#include "wx/thread.h"
|
||||||
#include "wx/dynlib.h"
|
#include "wx/dynlib.h"
|
||||||
|
|
||||||
extern "C" WXDLLIMPEXP_BASE HINSTANCE wxGetInstance();
|
|
||||||
#define INSTANCE wxGetInstance()
|
|
||||||
|
|
||||||
#ifdef __WXWINCE__
|
#ifdef __WXWINCE__
|
||||||
/*
|
/*
|
||||||
* As WSAAsyncSelect is not present on WinCE, it now uses WSACreateEvent,
|
* As WSAAsyncSelect is not present on WinCE, it now uses WSACreateEvent,
|
||||||
@@ -258,7 +256,7 @@ void wxSocketMSWManager::OnExit()
|
|||||||
#endif
|
#endif
|
||||||
/* Destroy internal window */
|
/* Destroy internal window */
|
||||||
DestroyWindow(hWin);
|
DestroyWindow(hWin);
|
||||||
UnregisterClass(CLASSNAME, INSTANCE);
|
UnregisterClass(CLASSNAME, wxGetInstance());
|
||||||
|
|
||||||
WSACleanup();
|
WSACleanup();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user