added a few #ifdefs needed to build a smaller library (patch 751523)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21147 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -156,19 +156,24 @@ public:
|
|||||||
Create(str, cursor, cursorHotspot);
|
Create(str, cursor, cursorHotspot);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if wxUSE_TREECTRL
|
||||||
wxGenericDragImage(const wxTreeCtrl& treeCtrl, wxTreeItemId& id)
|
wxGenericDragImage(const wxTreeCtrl& treeCtrl, wxTreeItemId& id)
|
||||||
{
|
{
|
||||||
Init();
|
Init();
|
||||||
|
|
||||||
Create(treeCtrl, id);
|
Create(treeCtrl, id);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if wxUSE_LISTCTRL
|
||||||
wxGenericDragImage(const wxListCtrl& listCtrl, long id)
|
wxGenericDragImage(const wxListCtrl& listCtrl, long id)
|
||||||
{
|
{
|
||||||
Init();
|
Init();
|
||||||
|
|
||||||
Create(listCtrl, id);
|
Create(listCtrl, id);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
~wxGenericDragImage();
|
~wxGenericDragImage();
|
||||||
|
|
||||||
// Attributes
|
// Attributes
|
||||||
@@ -213,11 +218,15 @@ public:
|
|||||||
return Create(str, cursor);
|
return Create(str, cursor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if wxUSE_TREECTRL
|
||||||
// Create a drag image for the given tree control item
|
// Create a drag image for the given tree control item
|
||||||
bool Create(const wxTreeCtrl& treeCtrl, wxTreeItemId& id);
|
bool Create(const wxTreeCtrl& treeCtrl, wxTreeItemId& id);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if wxUSE_LISTCTRL
|
||||||
// Create a drag image for the given list control item
|
// Create a drag image for the given list control item
|
||||||
bool Create(const wxListCtrl& listCtrl, long id);
|
bool Create(const wxListCtrl& listCtrl, long id);
|
||||||
|
#endif
|
||||||
|
|
||||||
// Begin drag. hotspot is the location of the drag position relative to the upper-left
|
// Begin drag. hotspot is the location of the drag position relative to the upper-left
|
||||||
// corner of the image.
|
// corner of the image.
|
||||||
|
@@ -154,19 +154,23 @@ public:
|
|||||||
Create(str, cursor, cursorHotspot);
|
Create(str, cursor, cursorHotspot);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if wxUSE_TREECTRL
|
||||||
wxDragImage(const wxTreeCtrl& treeCtrl, wxTreeItemId& id)
|
wxDragImage(const wxTreeCtrl& treeCtrl, wxTreeItemId& id)
|
||||||
{
|
{
|
||||||
Init();
|
Init();
|
||||||
|
|
||||||
Create(treeCtrl, id);
|
Create(treeCtrl, id);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if wxUSE_LISTCTRL
|
||||||
wxDragImage(const wxListCtrl& listCtrl, long id)
|
wxDragImage(const wxListCtrl& listCtrl, long id)
|
||||||
{
|
{
|
||||||
Init();
|
Init();
|
||||||
|
|
||||||
Create(listCtrl, id);
|
Create(listCtrl, id);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
~wxDragImage();
|
~wxDragImage();
|
||||||
|
|
||||||
@@ -200,11 +204,15 @@ public:
|
|||||||
return Create(str, cursor);
|
return Create(str, cursor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if wxUSE_TREECTRL
|
||||||
// Create a drag image for the given tree control item
|
// Create a drag image for the given tree control item
|
||||||
bool Create(const wxTreeCtrl& treeCtrl, wxTreeItemId& id);
|
bool Create(const wxTreeCtrl& treeCtrl, wxTreeItemId& id);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if wxUSE_LISTCTRL
|
||||||
// Create a drag image for the given list control item
|
// Create a drag image for the given list control item
|
||||||
bool Create(const wxListCtrl& listCtrl, long id);
|
bool Create(const wxListCtrl& listCtrl, long id);
|
||||||
|
#endif
|
||||||
|
|
||||||
// Begin drag. hotspot is the location of the drag position relative to the upper-left
|
// Begin drag. hotspot is the location of the drag position relative to the upper-left
|
||||||
// corner of the image.
|
// corner of the image.
|
||||||
|
@@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
#include "wx/tbarbase.h"
|
#include "wx/tbarbase.h"
|
||||||
|
|
||||||
#if wxUSE_TOOLBAR_SIMPLE
|
#if wxUSE_TOOLBAR && wxUSE_TOOLBAR_SIMPLE
|
||||||
|
|
||||||
class WXDLLEXPORT wxMemoryDC;
|
class WXDLLEXPORT wxMemoryDC;
|
||||||
|
|
||||||
|
@@ -547,7 +547,9 @@ void wxPreviewFrame::OnCloseWindow(wxCloseEvent& WXUNUSED(event))
|
|||||||
|
|
||||||
void wxPreviewFrame::Initialize()
|
void wxPreviewFrame::Initialize()
|
||||||
{
|
{
|
||||||
|
#if wxUSE_STATUSBAR
|
||||||
CreateStatusBar();
|
CreateStatusBar();
|
||||||
|
#endif
|
||||||
CreateCanvas();
|
CreateCanvas();
|
||||||
CreateControlBar();
|
CreateControlBar();
|
||||||
|
|
||||||
@@ -780,14 +782,16 @@ bool wxPrintPreviewBase::RenderPage(int pageNum)
|
|||||||
|
|
||||||
memoryDC.SelectObject(wxNullBitmap);
|
memoryDC.SelectObject(wxNullBitmap);
|
||||||
|
|
||||||
wxChar buf[200];
|
#if wxUSE_STATUSBAR
|
||||||
|
wxString status;
|
||||||
if (m_maxPage != 0)
|
if (m_maxPage != 0)
|
||||||
wxSprintf(buf, _("Page %d of %d"), pageNum, m_maxPage);
|
status = wxString::Format(_("Page %d of %d"), pageNum, m_maxPage);
|
||||||
else
|
else
|
||||||
wxSprintf(buf, _("Page %d"), pageNum);
|
status = wxString::Format(_("Page %d"), pageNum);
|
||||||
|
|
||||||
if (m_previewFrame)
|
if (m_previewFrame)
|
||||||
m_previewFrame->SetStatusText(buf);
|
m_previewFrame->SetStatusText(status);
|
||||||
|
#endif
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
@@ -163,7 +163,7 @@ bool wxTimerBase::Start(int milliseconds, bool oneShot)
|
|||||||
// wxStopWatch
|
// wxStopWatch
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
#if wxUSE_LONGLONG
|
#if wxUSE_STOPWATCH && wxUSE_LONGLONG
|
||||||
|
|
||||||
void wxStopWatch::Start(long t)
|
void wxStopWatch::Start(long t)
|
||||||
{
|
{
|
||||||
@@ -404,5 +404,5 @@ wxLongLong wxGetLocalTimeMillis()
|
|||||||
#endif // time functions
|
#endif // time functions
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // wxUSE_LONGLONG
|
#endif // #if wxUSE_STOPWATCH && wxUSE_LONGLONG
|
||||||
|
|
||||||
|
@@ -172,19 +172,23 @@ bool wxGenericDragImage::Create(const wxString& str, const wxCursor& cursor)
|
|||||||
return Create(bitmap, cursor);
|
return Create(bitmap, cursor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if wxUSE_TREECTRL
|
||||||
// Create a drag image for the given tree control item
|
// Create a drag image for the given tree control item
|
||||||
bool wxGenericDragImage::Create(const wxTreeCtrl& treeCtrl, wxTreeItemId& id)
|
bool wxGenericDragImage::Create(const wxTreeCtrl& treeCtrl, wxTreeItemId& id)
|
||||||
{
|
{
|
||||||
wxString str = treeCtrl.GetItemText(id);
|
wxString str = treeCtrl.GetItemText(id);
|
||||||
return Create(str);
|
return Create(str);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if wxUSE_LISTCTRL
|
||||||
// Create a drag image for the given list control item
|
// Create a drag image for the given list control item
|
||||||
bool wxGenericDragImage::Create(const wxListCtrl& listCtrl, long id)
|
bool wxGenericDragImage::Create(const wxListCtrl& listCtrl, long id)
|
||||||
{
|
{
|
||||||
wxString str = listCtrl.GetItemText(id);
|
wxString str = listCtrl.GetItemText(id);
|
||||||
return Create(str);
|
return Create(str);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// Begin drag
|
// Begin drag
|
||||||
bool wxGenericDragImage::BeginDrag(const wxPoint& hotspot,
|
bool wxGenericDragImage::BeginDrag(const wxPoint& hotspot,
|
||||||
|
@@ -28,7 +28,7 @@
|
|||||||
#pragma hdrstop
|
#pragma hdrstop
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if wxUSE_TOOLBAR_SIMPLE
|
#if wxUSE_TOOLBAR && wxUSE_TOOLBAR_SIMPLE
|
||||||
|
|
||||||
#ifndef WX_PRECOMP
|
#ifndef WX_PRECOMP
|
||||||
#include "wx/settings.h"
|
#include "wx/settings.h"
|
||||||
|
@@ -2280,7 +2280,7 @@ static bool AlphaBlt(HDC hdcDst,
|
|||||||
wxASSERT_MSG( hdcDst && hdcSrc, _T("AlphaBlt(): invalid HDC") );
|
wxASSERT_MSG( hdcDst && hdcSrc, _T("AlphaBlt(): invalid HDC") );
|
||||||
|
|
||||||
// do we have AlphaBlend() and company in the headers?
|
// do we have AlphaBlend() and company in the headers?
|
||||||
#ifdef AC_SRC_OVER
|
#if defined(AC_SRC_OVER) && wxUSE_DYNLIB_CLASS
|
||||||
// yes, now try to see if we have it during run-time
|
// yes, now try to see if we have it during run-time
|
||||||
typedef BOOL (WINAPI *AlphaBlend_t)(HDC,int,int,int,int,
|
typedef BOOL (WINAPI *AlphaBlend_t)(HDC,int,int,int,int,
|
||||||
HDC,int,int,int,int,
|
HDC,int,int,int,int,
|
||||||
|
@@ -237,6 +237,7 @@ bool wxDragImage::Create(const wxString& str, const wxCursor& cursor)
|
|||||||
return Create(wxBitmap(image), cursor);
|
return Create(wxBitmap(image), cursor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if wxUSE_TREECTRL
|
||||||
// Create a drag image for the given tree control item
|
// Create a drag image for the given tree control item
|
||||||
bool wxDragImage::Create(const wxTreeCtrl& treeCtrl, wxTreeItemId& id)
|
bool wxDragImage::Create(const wxTreeCtrl& treeCtrl, wxTreeItemId& id)
|
||||||
{
|
{
|
||||||
@@ -245,7 +246,9 @@ bool wxDragImage::Create(const wxTreeCtrl& treeCtrl, wxTreeItemId& id)
|
|||||||
m_hImageList = (WXHIMAGELIST) TreeView_CreateDragImage((HWND) treeCtrl.GetHWND(), (HTREEITEM) (WXHTREEITEM) id);
|
m_hImageList = (WXHIMAGELIST) TreeView_CreateDragImage((HWND) treeCtrl.GetHWND(), (HTREEITEM) (WXHTREEITEM) id);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if wxUSE_LISTCTRL
|
||||||
// Create a drag image for the given list control item
|
// Create a drag image for the given list control item
|
||||||
bool wxDragImage::Create(const wxListCtrl& listCtrl, long id)
|
bool wxDragImage::Create(const wxListCtrl& listCtrl, long id)
|
||||||
{
|
{
|
||||||
@@ -256,6 +259,7 @@ bool wxDragImage::Create(const wxListCtrl& listCtrl, long id)
|
|||||||
m_hImageList = (WXHIMAGELIST) ListView_CreateDragImage((HWND) listCtrl.GetHWND(), id, & pt);
|
m_hImageList = (WXHIMAGELIST) ListView_CreateDragImage((HWND) listCtrl.GetHWND(), id, & pt);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// Begin drag
|
// Begin drag
|
||||||
bool wxDragImage::BeginDrag(const wxPoint& hotspot, wxWindow* window, bool fullScreen, wxRect* rect)
|
bool wxDragImage::BeginDrag(const wxPoint& hotspot, wxWindow* window, bool fullScreen, wxRect* rect)
|
||||||
|
@@ -31,6 +31,8 @@
|
|||||||
#ifndef WX_PRECOMP
|
#ifndef WX_PRECOMP
|
||||||
#endif //WX_PRECOMP
|
#endif //WX_PRECOMP
|
||||||
|
|
||||||
|
#if wxUSE_POPUPWIN
|
||||||
|
|
||||||
#include "wx/popupwin.h"
|
#include "wx/popupwin.h"
|
||||||
|
|
||||||
#include "wx/msw/private.h" // for GetDesktopWindow()
|
#include "wx/msw/private.h" // for GetDesktopWindow()
|
||||||
@@ -85,3 +87,4 @@ WXHWND wxPopupWindow::MSWGetParent() const
|
|||||||
return (WXHWND)::GetDesktopWindow();
|
return (WXHWND)::GetDesktopWindow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // #if wxUSE_POPUPWIN
|
||||||
|
@@ -27,7 +27,7 @@
|
|||||||
#include "wx/dcclient.h"
|
#include "wx/dcclient.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__WIN95__) && wxUSE_NATIVE_STATUSBAR
|
#if wxUSE_STATUSBAR && defined(__WIN95__) && wxUSE_NATIVE_STATUSBAR
|
||||||
|
|
||||||
#include "wx/intl.h"
|
#include "wx/intl.h"
|
||||||
#include "wx/log.h"
|
#include "wx/log.h"
|
||||||
|
Reference in New Issue
Block a user