git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21147
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Create(str, cursor, cursorHotspot);
}
Create(str, cursor, cursorHotspot);
}
wxGenericDragImage(const wxTreeCtrl& treeCtrl, wxTreeItemId& id)
{
Init();
Create(treeCtrl, id);
}
wxGenericDragImage(const wxTreeCtrl& treeCtrl, wxTreeItemId& id)
{
Init();
Create(treeCtrl, id);
}
wxGenericDragImage(const wxListCtrl& listCtrl, long id)
{
Init();
Create(listCtrl, id);
}
wxGenericDragImage(const wxListCtrl& listCtrl, long id)
{
Init();
Create(listCtrl, id);
}
~wxGenericDragImage();
// Attributes
~wxGenericDragImage();
// Attributes
return Create(str, cursor);
}
return Create(str, cursor);
}
// Create a drag image for the given tree control item
bool Create(const wxTreeCtrl& treeCtrl, wxTreeItemId& id);
// Create a drag image for the given tree control item
bool Create(const wxTreeCtrl& treeCtrl, wxTreeItemId& id);
// Create a drag image for the given list control item
bool Create(const wxListCtrl& listCtrl, long id);
// Create a drag image for the given list control item
bool Create(const wxListCtrl& listCtrl, long id);
// Begin drag. hotspot is the location of the drag position relative to the upper-left
// corner of the image.
// Begin drag. hotspot is the location of the drag position relative to the upper-left
// corner of the image.
Create(str, cursor, cursorHotspot);
}
Create(str, cursor, cursorHotspot);
}
wxDragImage(const wxTreeCtrl& treeCtrl, wxTreeItemId& id)
{
Init();
Create(treeCtrl, id);
}
wxDragImage(const wxTreeCtrl& treeCtrl, wxTreeItemId& id)
{
Init();
Create(treeCtrl, id);
}
wxDragImage(const wxListCtrl& listCtrl, long id)
{
Init();
Create(listCtrl, id);
}
wxDragImage(const wxListCtrl& listCtrl, long id)
{
Init();
Create(listCtrl, id);
}
return Create(str, cursor);
}
return Create(str, cursor);
}
// Create a drag image for the given tree control item
bool Create(const wxTreeCtrl& treeCtrl, wxTreeItemId& id);
// Create a drag image for the given tree control item
bool Create(const wxTreeCtrl& treeCtrl, wxTreeItemId& id);
// Create a drag image for the given list control item
bool Create(const wxListCtrl& listCtrl, long id);
// Create a drag image for the given list control item
bool Create(const wxListCtrl& listCtrl, long id);
// Begin drag. hotspot is the location of the drag position relative to the upper-left
// corner of the image.
// Begin drag. hotspot is the location of the drag position relative to the upper-left
// corner of the image.
-#if wxUSE_TOOLBAR_SIMPLE
+#if wxUSE_TOOLBAR && wxUSE_TOOLBAR_SIMPLE
class WXDLLEXPORT wxMemoryDC;
class WXDLLEXPORT wxMemoryDC;
void wxPreviewFrame::Initialize()
{
void wxPreviewFrame::Initialize()
{
CreateCanvas();
CreateControlBar();
CreateCanvas();
CreateControlBar();
memoryDC.SelectObject(wxNullBitmap);
memoryDC.SelectObject(wxNullBitmap);
+#if wxUSE_STATUSBAR
+ wxString status;
- wxSprintf(buf, _("Page %d of %d"), pageNum, m_maxPage);
+ status = wxString::Format(_("Page %d of %d"), pageNum, m_maxPage);
- wxSprintf(buf, _("Page %d"), pageNum);
+ status = wxString::Format(_("Page %d"), pageNum);
- m_previewFrame->SetStatusText(buf);
+ m_previewFrame->SetStatusText(status);
+#endif
// wxStopWatch
// ----------------------------------------------------------------------------
// wxStopWatch
// ----------------------------------------------------------------------------
+#if wxUSE_STOPWATCH && wxUSE_LONGLONG
void wxStopWatch::Start(long t)
{
void wxStopWatch::Start(long t)
{
#endif // time functions
}
#endif // time functions
}
-#endif // wxUSE_LONGLONG
+#endif // #if wxUSE_STOPWATCH && wxUSE_LONGLONG
return Create(bitmap, cursor);
}
return Create(bitmap, cursor);
}
// Create a drag image for the given tree control item
bool wxGenericDragImage::Create(const wxTreeCtrl& treeCtrl, wxTreeItemId& id)
{
wxString str = treeCtrl.GetItemText(id);
return Create(str);
}
// Create a drag image for the given tree control item
bool wxGenericDragImage::Create(const wxTreeCtrl& treeCtrl, wxTreeItemId& id)
{
wxString str = treeCtrl.GetItemText(id);
return Create(str);
}
// Create a drag image for the given list control item
bool wxGenericDragImage::Create(const wxListCtrl& listCtrl, long id)
{
wxString str = listCtrl.GetItemText(id);
return Create(str);
}
// Create a drag image for the given list control item
bool wxGenericDragImage::Create(const wxListCtrl& listCtrl, long id)
{
wxString str = listCtrl.GetItemText(id);
return Create(str);
}
// Begin drag
bool wxGenericDragImage::BeginDrag(const wxPoint& hotspot,
// Begin drag
bool wxGenericDragImage::BeginDrag(const wxPoint& hotspot,
-#if wxUSE_TOOLBAR_SIMPLE
+#if wxUSE_TOOLBAR && wxUSE_TOOLBAR_SIMPLE
#ifndef WX_PRECOMP
#include "wx/settings.h"
#ifndef WX_PRECOMP
#include "wx/settings.h"
wxASSERT_MSG( hdcDst && hdcSrc, _T("AlphaBlt(): invalid HDC") );
// do we have AlphaBlend() and company in the headers?
wxASSERT_MSG( hdcDst && hdcSrc, _T("AlphaBlt(): invalid HDC") );
// do we have AlphaBlend() and company in the headers?
+#if defined(AC_SRC_OVER) && wxUSE_DYNLIB_CLASS
// yes, now try to see if we have it during run-time
typedef BOOL (WINAPI *AlphaBlend_t)(HDC,int,int,int,int,
HDC,int,int,int,int,
// yes, now try to see if we have it during run-time
typedef BOOL (WINAPI *AlphaBlend_t)(HDC,int,int,int,int,
HDC,int,int,int,int,
return Create(wxBitmap(image), cursor);
}
return Create(wxBitmap(image), cursor);
}
// Create a drag image for the given tree control item
bool wxDragImage::Create(const wxTreeCtrl& treeCtrl, wxTreeItemId& id)
{
// Create a drag image for the given tree control item
bool wxDragImage::Create(const wxTreeCtrl& treeCtrl, wxTreeItemId& id)
{
m_hImageList = (WXHIMAGELIST) TreeView_CreateDragImage((HWND) treeCtrl.GetHWND(), (HTREEITEM) (WXHTREEITEM) id);
return TRUE;
}
m_hImageList = (WXHIMAGELIST) TreeView_CreateDragImage((HWND) treeCtrl.GetHWND(), (HTREEITEM) (WXHTREEITEM) id);
return TRUE;
}
// Create a drag image for the given list control item
bool wxDragImage::Create(const wxListCtrl& listCtrl, long id)
{
// Create a drag image for the given list control item
bool wxDragImage::Create(const wxListCtrl& listCtrl, long id)
{
m_hImageList = (WXHIMAGELIST) ListView_CreateDragImage((HWND) listCtrl.GetHWND(), id, & pt);
return TRUE;
}
m_hImageList = (WXHIMAGELIST) ListView_CreateDragImage((HWND) listCtrl.GetHWND(), id, & pt);
return TRUE;
}
// Begin drag
bool wxDragImage::BeginDrag(const wxPoint& hotspot, wxWindow* window, bool fullScreen, wxRect* rect)
// Begin drag
bool wxDragImage::BeginDrag(const wxPoint& hotspot, wxWindow* window, bool fullScreen, wxRect* rect)
#ifndef WX_PRECOMP
#endif //WX_PRECOMP
#ifndef WX_PRECOMP
#endif //WX_PRECOMP
#include "wx/popupwin.h"
#include "wx/msw/private.h" // for GetDesktopWindow()
#include "wx/popupwin.h"
#include "wx/msw/private.h" // for GetDesktopWindow()
return (WXHWND)::GetDesktopWindow();
}
return (WXHWND)::GetDesktopWindow();
}
+#endif // #if wxUSE_POPUPWIN
#include "wx/dcclient.h"
#endif
#include "wx/dcclient.h"
#endif
-#if defined(__WIN95__) && wxUSE_NATIVE_STATUSBAR
+#if wxUSE_STATUSBAR && defined(__WIN95__) && wxUSE_NATIVE_STATUSBAR
#include "wx/intl.h"
#include "wx/log.h"
#include "wx/intl.h"
#include "wx/log.h"