Applied patch [ 731195 ] More #if/#endif's to build a smaller library
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20451 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -183,6 +183,7 @@ wxWindow* wxWindow::CreateWindowFromHWND(wxWindow* parent, WXHWND hWnd)
|
|||||||
{
|
{
|
||||||
win = new wxRadioButton;
|
win = new wxRadioButton;
|
||||||
}
|
}
|
||||||
|
#if wxUSE_BMPBUTTON
|
||||||
#if defined(__WIN32__) && defined(BS_BITMAP)
|
#if defined(__WIN32__) && defined(BS_BITMAP)
|
||||||
else if (style & BS_BITMAP)
|
else if (style & BS_BITMAP)
|
||||||
{
|
{
|
||||||
@@ -201,6 +202,7 @@ wxWindow* wxWindow::CreateWindowFromHWND(wxWindow* parent, WXHWND hWnd)
|
|||||||
// with a switch in the drawing code. Call default proc if BS_BITMAP.
|
// with a switch in the drawing code. Call default proc if BS_BITMAP.
|
||||||
win = new wxBitmapButton;
|
win = new wxBitmapButton;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
else if ((style1 == BS_PUSHBUTTON) || (style1 == BS_DEFPUSHBUTTON))
|
else if ((style1 == BS_PUSHBUTTON) || (style1 == BS_DEFPUSHBUTTON))
|
||||||
{
|
{
|
||||||
win = new wxButton;
|
win = new wxButton;
|
||||||
@@ -256,6 +258,7 @@ wxWindow* wxWindow::CreateWindowFromHWND(wxWindow* parent, WXHWND hWnd)
|
|||||||
|
|
||||||
if ((style1 == SS_LEFT) || (style1 == SS_RIGHT) || (style1 == SS_SIMPLE))
|
if ((style1 == SS_LEFT) || (style1 == SS_RIGHT) || (style1 == SS_SIMPLE))
|
||||||
win = new wxStaticText;
|
win = new wxStaticText;
|
||||||
|
#if wxUSE_STATBMP
|
||||||
#if defined(__WIN32__) && defined(BS_BITMAP)
|
#if defined(__WIN32__) && defined(BS_BITMAP)
|
||||||
else if (style1 == SS_BITMAP)
|
else if (style1 == SS_BITMAP)
|
||||||
{
|
{
|
||||||
@@ -265,6 +268,7 @@ wxWindow* wxWindow::CreateWindowFromHWND(wxWindow* parent, WXHWND hWnd)
|
|||||||
wxLogError(wxT("Please make SS_BITMAP statics into owner-draw buttons."));
|
wxLogError(wxT("Please make SS_BITMAP statics into owner-draw buttons."));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#endif /* wxUSE_STATBMP */
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@@ -60,7 +60,7 @@ bool IsIidFromList(REFIID riid, const IID *aIids[], size_t nCount)
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if wxUSE_DRAG_AND_DROP
|
#if wxUSE_DATAOBJ
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// Debug support
|
// Debug support
|
||||||
|
@@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
#include "wx/setup.h"
|
#include "wx/setup.h"
|
||||||
|
|
||||||
#if wxUSE_OLE && wxUSE_DRAG_AND_DROP
|
#if wxUSE_OLE && ( wxUSE_DRAG_AND_DROP || (__WXDEBUG__ && wxUSE_DATAOBJ) )
|
||||||
|
|
||||||
// standard headers
|
// standard headers
|
||||||
#if wxCHECK_W32API_VERSION( 1, 0 )
|
#if wxCHECK_W32API_VERSION( 1, 0 )
|
||||||
|
Reference in New Issue
Block a user