#ifdefed out Ole... functions for Cygwin.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1168 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -186,10 +186,12 @@ bool wxApp::Initialize()
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef __GNUWIN32__
|
||||||
// we need to initialize OLE library
|
// we need to initialize OLE library
|
||||||
if ( FAILED(::OleInitialize(NULL)) )
|
if ( FAILED(::OleInitialize(NULL)) )
|
||||||
wxFatalError(_("Cannot initialize OLE"));
|
wxFatalError(_("Cannot initialize OLE"));
|
||||||
|
#endif
|
||||||
|
|
||||||
#if CTL3D
|
#if CTL3D
|
||||||
if (!Ctl3dRegister(wxhInstance))
|
if (!Ctl3dRegister(wxhInstance))
|
||||||
@@ -502,7 +504,9 @@ void wxApp::CleanUp()
|
|||||||
if ( wxDisableButtonBrush )
|
if ( wxDisableButtonBrush )
|
||||||
::DeleteObject( wxDisableButtonBrush ) ;
|
::DeleteObject( wxDisableButtonBrush ) ;
|
||||||
|
|
||||||
|
#ifndef __GNUWIN32__
|
||||||
::OleUninitialize();
|
::OleUninitialize();
|
||||||
|
#endif
|
||||||
|
|
||||||
#if CTL3D
|
#if CTL3D
|
||||||
Ctl3dUnregister(wxhInstance);
|
Ctl3dUnregister(wxhInstance);
|
||||||
|
Reference in New Issue
Block a user