Include wx/dcmemory.h according to precompiled headers of wx/wx.h (with other minor cleaning).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39106 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/log.h"
|
||||
#include "wx/dcmemory.h"
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: effects.cpp
|
||||
// Name: src/common/effects.cpp
|
||||
// Purpose: wxEffects implementation
|
||||
// Author: Julian Smart
|
||||
// Modified by:
|
||||
@@ -13,14 +13,18 @@
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include "wx/effects.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/dcmemory.h"
|
||||
#endif //WX_PRECOMP
|
||||
|
||||
#include "wx/gdicmn.h"
|
||||
#include "wx/pen.h"
|
||||
#include "wx/dcmemory.h"
|
||||
#include "wx/settings.h"
|
||||
#include "wx/effects.h"
|
||||
|
||||
/*
|
||||
* wxEffects: various 3D effects
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: rgncmn.cpp
|
||||
// Name: src/common/rgncmn.cpp
|
||||
// Purpose: Methods of wxRegion that have a generic implementation
|
||||
// Author: Robin Dunn
|
||||
// Modified by:
|
||||
@@ -13,15 +13,20 @@
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include "wx/region.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/dcmemory.h"
|
||||
#endif //WX_PRECOMP
|
||||
|
||||
#include "wx/bitmap.h"
|
||||
|
||||
#if wxUSE_IMAGE
|
||||
#include "wx/image.h"
|
||||
#include "wx/image.h"
|
||||
#endif
|
||||
#include "wx/dcmemory.h"
|
||||
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
@@ -24,9 +24,9 @@
|
||||
#include "wx/log.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/dcmemory.h"
|
||||
#endif // WX_PRECOMP
|
||||
|
||||
#include "wx/dcmemory.h"
|
||||
#include "wx/image.h"
|
||||
#include "wx/prntbase.h"
|
||||
#include "wx/generic/prntdlgg.h"
|
||||
|
@@ -12,6 +12,7 @@
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/app.h"
|
||||
#include "wx/dcmemory.h"
|
||||
#endif
|
||||
|
||||
#include "wx/bitmap.h"
|
||||
@@ -19,7 +20,6 @@
|
||||
#include "wx/icon.h"
|
||||
#include "wx/filefn.h"
|
||||
#include "wx/image.h"
|
||||
#include "wx/dcmemory.h"
|
||||
|
||||
#include "wx/rawbmp.h"
|
||||
// need this to get gdk_image_new_bitmap()
|
||||
|
@@ -18,9 +18,9 @@
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/log.h"
|
||||
#include "wx/dcmemory.h"
|
||||
#endif
|
||||
|
||||
#include "wx/dcmemory.h"
|
||||
#include "wx/image.h"
|
||||
#include "wx/module.h"
|
||||
#include "wx/fontutil.h"
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: dcmemory.cpp
|
||||
// Name: src/gtk/dcmemory.cpp
|
||||
// Purpose:
|
||||
// Author: Robert Roebling
|
||||
// RCS-ID: $Id$
|
||||
@@ -23,7 +23,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC,wxWindowDC)
|
||||
|
||||
wxMemoryDC::wxMemoryDC() : wxWindowDC()
|
||||
{
|
||||
m_ok = FALSE;
|
||||
m_ok = false;
|
||||
|
||||
m_cmap = gtk_widget_get_default_colormap();
|
||||
|
||||
@@ -38,7 +38,7 @@ wxMemoryDC::wxMemoryDC() : wxWindowDC()
|
||||
wxMemoryDC::wxMemoryDC( wxDC *WXUNUSED(dc) )
|
||||
: wxWindowDC()
|
||||
{
|
||||
m_ok = FALSE;
|
||||
m_ok = false;
|
||||
|
||||
m_cmap = gtk_widget_get_default_colormap();
|
||||
|
||||
@@ -70,13 +70,13 @@ void wxMemoryDC::SelectObject( const wxBitmap& bitmap )
|
||||
|
||||
m_selected.PurgeOtherRepresentations(wxBitmap::Pixmap);
|
||||
|
||||
m_isMemDC = TRUE;
|
||||
m_isMemDC = true;
|
||||
|
||||
SetUpDC();
|
||||
}
|
||||
else
|
||||
{
|
||||
m_ok = FALSE;
|
||||
m_ok = false;
|
||||
m_window = (GdkWindow *) NULL;
|
||||
}
|
||||
}
|
||||
@@ -158,5 +158,3 @@ void wxMemoryDC::DoGetSize( int *width, int *height ) const
|
||||
if (height) (*height) = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@@ -21,6 +21,7 @@
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/log.h"
|
||||
#include "wx/dcmemory.h"
|
||||
#endif
|
||||
|
||||
#include "wx/math.h"
|
||||
@@ -28,7 +29,6 @@
|
||||
#include "wx/gtk/private.h"
|
||||
#include "wx/module.h"
|
||||
#include "wx/dynlib.h"
|
||||
#include "wx/dcmemory.h"
|
||||
#include "wx/icon.h"
|
||||
|
||||
#include <libgnomeprint/gnome-print.h>
|
||||
|
@@ -14,13 +14,13 @@
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/app.h"
|
||||
#include "wx/dcmemory.h"
|
||||
#endif // WX_PRECOMP
|
||||
|
||||
#include "wx/palette.h"
|
||||
#include "wx/icon.h"
|
||||
#include "wx/filefn.h"
|
||||
#include "wx/image.h"
|
||||
#include "wx/dcmemory.h"
|
||||
|
||||
#include <gdk/gdk.h>
|
||||
#include <gtk/gtk.h>
|
||||
|
@@ -18,9 +18,9 @@
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/log.h"
|
||||
#include "wx/dcmemory.h"
|
||||
#endif
|
||||
|
||||
#include "wx/dcmemory.h"
|
||||
#include "wx/image.h"
|
||||
#include "wx/module.h"
|
||||
#include "wx/fontutil.h"
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: dcmemory.cpp
|
||||
// Name: src/gtk1/dcmemory.cpp
|
||||
// Purpose:
|
||||
// Author: Robert Roebling
|
||||
// RCS-ID: $Id$
|
||||
@@ -23,7 +23,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC,wxWindowDC)
|
||||
|
||||
wxMemoryDC::wxMemoryDC() : wxWindowDC()
|
||||
{
|
||||
m_ok = FALSE;
|
||||
m_ok = false;
|
||||
|
||||
m_cmap = gtk_widget_get_default_colormap();
|
||||
}
|
||||
@@ -31,7 +31,7 @@ wxMemoryDC::wxMemoryDC() : wxWindowDC()
|
||||
wxMemoryDC::wxMemoryDC( wxDC *WXUNUSED(dc) )
|
||||
: wxWindowDC()
|
||||
{
|
||||
m_ok = FALSE;
|
||||
m_ok = false;
|
||||
|
||||
m_cmap = gtk_widget_get_default_colormap();
|
||||
|
||||
@@ -56,13 +56,13 @@ void wxMemoryDC::SelectObject( const wxBitmap& bitmap )
|
||||
m_window = m_selected.GetBitmap();
|
||||
}
|
||||
|
||||
m_isMemDC = TRUE;
|
||||
m_isMemDC = true;
|
||||
|
||||
SetUpDC();
|
||||
}
|
||||
else
|
||||
{
|
||||
m_ok = FALSE;
|
||||
m_ok = false;
|
||||
m_window = (GdkWindow *) NULL;
|
||||
}
|
||||
}
|
||||
@@ -144,5 +144,3 @@ void wxMemoryDC::DoGetSize( int *width, int *height ) const
|
||||
if (height) (*height) = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@@ -21,6 +21,7 @@
|
||||
#include "wx/intl.h"
|
||||
#include "wx/dcclient.h"
|
||||
#include "wx/frame.h"
|
||||
#include "wx/dcmemory.h"
|
||||
#endif
|
||||
|
||||
#include "wx/html/htmlwin.h"
|
||||
@@ -28,7 +29,6 @@
|
||||
#include "wx/clipbrd.h"
|
||||
#include "wx/dataobj.h"
|
||||
#include "wx/timer.h"
|
||||
#include "wx/dcmemory.h"
|
||||
#include "wx/settings.h"
|
||||
|
||||
#include "wx/arrimpl.cpp"
|
||||
|
@@ -15,6 +15,7 @@
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/log.h"
|
||||
#include "wx/dcmemory.h"
|
||||
#endif
|
||||
|
||||
#include "wx/icon.h"
|
||||
@@ -35,7 +36,6 @@ IMPLEMENT_DYNAMIC_CLASS(wxBitmapHandler, wxObject)
|
||||
#endif
|
||||
|
||||
#include "wx/mac/uma.h"
|
||||
#include "wx/dcmemory.h"
|
||||
|
||||
// Implementation Notes
|
||||
// --------------------
|
||||
|
@@ -19,9 +19,9 @@
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/intl.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/dcmemory.h"
|
||||
#endif
|
||||
|
||||
#include "wx/dcmemory.h"
|
||||
#include "wx/mstream.h"
|
||||
#include "wx/image.h"
|
||||
#include "wx/metafile.h"
|
||||
|
@@ -18,10 +18,10 @@
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/log.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/dcmemory.h"
|
||||
#endif
|
||||
|
||||
#include "wx/mac/uma.h"
|
||||
#include "wx/dcmemory.h"
|
||||
#include "wx/dcprint.h"
|
||||
#include "wx/region.h"
|
||||
#include "wx/image.h"
|
||||
|
@@ -18,10 +18,10 @@
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/log.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/dcmemory.h"
|
||||
#endif
|
||||
|
||||
#include "wx/mac/uma.h"
|
||||
#include "wx/dcmemory.h"
|
||||
#include "wx/dcprint.h"
|
||||
#include "wx/region.h"
|
||||
#include "wx/image.h"
|
||||
|
@@ -16,9 +16,9 @@
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/log.h"
|
||||
#include "wx/window.h"
|
||||
#include "wx/dcmemory.h"
|
||||
#endif
|
||||
|
||||
#include "wx/dcmemory.h"
|
||||
#include "wx/region.h"
|
||||
#include "wx/toplevel.h"
|
||||
#include "wx/settings.h"
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: dcmemory.cpp
|
||||
// Name: src/mac/carbon/dcmemory.cpp
|
||||
// Purpose: wxMemoryDC class
|
||||
// Author: Stefan Csomor
|
||||
// Modified by:
|
||||
@@ -12,6 +12,7 @@
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#include "wx/dcmemory.h"
|
||||
|
||||
#include "wx/mac/private.h"
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
@@ -13,12 +13,16 @@
|
||||
|
||||
#ifdef wxHAS_TASK_BAR_ICON
|
||||
|
||||
#include "wx/taskbar.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/dcmemory.h"
|
||||
#endif
|
||||
|
||||
#include "wx/mac/private.h"
|
||||
|
||||
#include "wx/taskbar.h"
|
||||
#include "wx/menu.h"
|
||||
#include "wx/icon.h"
|
||||
#include "wx/dcmemory.h"
|
||||
|
||||
|
||||
class wxTaskBarIconImpl
|
||||
@@ -54,7 +58,7 @@ class wxTaskBarIconWindow : public wxTopLevelWindow
|
||||
{
|
||||
public:
|
||||
wxTaskBarIconWindow(wxTaskBarIconImpl *impl)
|
||||
: wxTopLevelWindow(NULL, -1, wxT("")), m_impl(impl)
|
||||
: wxTopLevelWindow(NULL, wxID_ANY, wxEmptyString), m_impl(impl)
|
||||
{
|
||||
Connect(
|
||||
-1, wxEVT_COMMAND_MENU_SELECTED,
|
||||
|
@@ -16,10 +16,10 @@
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/log.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/dcmemory.h"
|
||||
#endif
|
||||
|
||||
#include "wx/mac/uma.h"
|
||||
#include "wx/dcmemory.h"
|
||||
#include "wx/dcprint.h"
|
||||
#include "wx/region.h"
|
||||
#include "wx/image.h"
|
||||
|
@@ -15,9 +15,9 @@
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/window.h"
|
||||
#include "wx/dcmemory.h"
|
||||
#endif
|
||||
|
||||
#include "wx/dcmemory.h"
|
||||
#include "wx/region.h"
|
||||
#include "wx/toplevel.h"
|
||||
#include "wx/math.h"
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: dcmemory.cpp
|
||||
// Name: src/mac/classic/dcmemory.cpp
|
||||
// Purpose: wxMemoryDC class
|
||||
// Author: Stefan Csomor
|
||||
// Modified by:
|
||||
@@ -9,7 +9,10 @@
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#include "wx/dcmemory.h"
|
||||
|
||||
#include "wx/mac/private.h"
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
@@ -19,23 +22,23 @@
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC,wxPaintDC)
|
||||
|
||||
wxMemoryDC::wxMemoryDC(void)
|
||||
: m_selected()
|
||||
: m_selected()
|
||||
{
|
||||
m_ok = TRUE;
|
||||
m_ok = true;
|
||||
SetBackground(*wxWHITE_BRUSH);
|
||||
SetBrush(*wxWHITE_BRUSH);
|
||||
SetPen(*wxBLACK_PEN);
|
||||
m_ok = FALSE;
|
||||
m_ok = false;
|
||||
};
|
||||
|
||||
wxMemoryDC::wxMemoryDC( wxDC *WXUNUSED(dc) )
|
||||
: m_selected()
|
||||
: m_selected()
|
||||
{
|
||||
m_ok = TRUE;
|
||||
m_ok = true;
|
||||
SetBackground(*wxWHITE_BRUSH);
|
||||
SetBrush(*wxWHITE_BRUSH);
|
||||
SetPen(*wxBLACK_PEN);
|
||||
m_ok = FALSE;
|
||||
m_ok = false;
|
||||
};
|
||||
|
||||
wxMemoryDC::~wxMemoryDC()
|
||||
@@ -66,16 +69,16 @@ void wxMemoryDC::SelectObject( const wxBitmap& bitmap )
|
||||
}
|
||||
SetRectRgn( (RgnHandle) m_macBoundaryClipRgn , 0 , 0 , m_selected.GetWidth() , m_selected.GetHeight() ) ;
|
||||
CopyRgn( (RgnHandle) m_macBoundaryClipRgn ,(RgnHandle) m_macCurrentClipRgn ) ;
|
||||
m_ok = TRUE ;
|
||||
m_ok = true ;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_ok = FALSE;
|
||||
m_ok = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
m_ok = FALSE;
|
||||
m_ok = false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -92,5 +95,3 @@ void wxMemoryDC::DoGetSize( int *width, int *height ) const
|
||||
if (height) (*height) = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@@ -19,12 +19,12 @@
|
||||
#include "wx/intl.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/dcmemory.h"
|
||||
#endif
|
||||
|
||||
#include "wx/icon.h"
|
||||
#include "wx/filefn.h"
|
||||
#include "wx/image.h"
|
||||
#include "wx/dcmemory.h"
|
||||
#include "wx/image.h"
|
||||
#include "wx/xpmdecod.h"
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: dcmemory.cpp
|
||||
// Name: src/mgl/dcmemory.cpp
|
||||
// Purpose:
|
||||
// Author: Robert Roebling, Vaclav Slavik
|
||||
// RCS-ID: $Id$
|
||||
@@ -26,12 +26,12 @@ IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC,wxWindowDC)
|
||||
|
||||
wxMemoryDC::wxMemoryDC() : wxDC()
|
||||
{
|
||||
m_isMemDC = TRUE;
|
||||
m_isMemDC = true;
|
||||
}
|
||||
|
||||
wxMemoryDC::wxMemoryDC(wxDC *WXUNUSED(dc)) : wxDC()
|
||||
{
|
||||
m_isMemDC = TRUE;
|
||||
m_isMemDC = true;
|
||||
}
|
||||
|
||||
wxMemoryDC::~wxMemoryDC()
|
||||
|
@@ -13,7 +13,10 @@
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#include "wx/dc.h"
|
||||
#include "wx/dcmemory.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/dcmemory.h"
|
||||
#endif
|
||||
|
||||
IMPLEMENT_ABSTRACT_CLASS(wxDC, wxObject)
|
||||
|
||||
|
@@ -45,9 +45,9 @@
|
||||
#include "wx/log.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/window.h"
|
||||
#include "wx/dcmemory.h"
|
||||
#endif
|
||||
|
||||
#include "wx/dcmemory.h"
|
||||
#include "wx/image.h"
|
||||
#include "wx/math.h"
|
||||
|
||||
|
@@ -28,10 +28,10 @@
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/app.h"
|
||||
#include "wx/dcmemory.h"
|
||||
#endif
|
||||
|
||||
#include "wx/apptrait.h"
|
||||
#include "wx/dcmemory.h"
|
||||
#include "wx/bitmap.h"
|
||||
#include "wx/evtloop.h"
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: dcmemory.cpp
|
||||
// Name: src/msw/dcmemory.cpp
|
||||
// Purpose: wxMemoryDC class
|
||||
// Author: Julian Smart
|
||||
// Modified by:
|
||||
@@ -24,6 +24,8 @@
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include "wx/dcmemory.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/utils.h"
|
||||
#include "wx/log.h"
|
||||
@@ -31,8 +33,6 @@
|
||||
|
||||
#include "wx/msw/private.h"
|
||||
|
||||
#include "wx/dcmemory.h"
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxWin macros
|
||||
// ----------------------------------------------------------------------------
|
||||
@@ -199,4 +199,3 @@ void wxMemoryDC::DoDrawRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord he
|
||||
wxDC::DoDrawRectangle(x, y, width, height);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -27,12 +27,12 @@
|
||||
#include "wx/event.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/dcclient.h"
|
||||
#include "wx/dcmemory.h"
|
||||
#endif // WX_PRECOMP
|
||||
|
||||
#include "wx/imaglist.h"
|
||||
#include "wx/control.h"
|
||||
#include "wx/sysopt.h"
|
||||
#include "wx/dcmemory.h"
|
||||
|
||||
#include "wx/msw/private.h"
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Name: msw/ownerdrw.cpp
|
||||
// Name: src/msw/ownerdrw.cpp
|
||||
// Purpose: implementation of wxOwnerDrawn class
|
||||
// Author: Vadim Zeitlin
|
||||
// Modified by:
|
||||
@@ -11,10 +11,9 @@
|
||||
|
||||
// For compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
#include "wx/msw/private.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
@@ -192,7 +191,7 @@ bool wxOwnerDrawn::OnMeasureItem(size_t *pwidth, size_t *pheight)
|
||||
// placed on top of each other.
|
||||
if ( !m_strAccel.empty() )
|
||||
{
|
||||
str.Pad(str.Length()%8);
|
||||
str.Pad(str.length()%8);
|
||||
str += m_strAccel;
|
||||
}
|
||||
|
||||
@@ -353,7 +352,7 @@ bool wxOwnerDrawn::OnDrawItem(wxDC& dc,
|
||||
xText += 3; // separate text from the highlight rectangle
|
||||
|
||||
SIZE sizeRect;
|
||||
::GetTextExtentPoint32(hdc, strMenuText.c_str(), strMenuText.Length(), &sizeRect);
|
||||
::GetTextExtentPoint32(hdc, strMenuText.c_str(), strMenuText.length(), &sizeRect);
|
||||
::DrawState(hdc, NULL, NULL,
|
||||
(LPARAM)strMenuText.c_str(), strMenuText.length(),
|
||||
xText, rc.y + (int) ((rc.GetHeight()-sizeRect.cy)/2.0), // centre text vertically
|
||||
@@ -465,4 +464,3 @@ bool wxOwnerDrawn::OnDrawItem(wxDC& dc,
|
||||
|
||||
|
||||
#endif // wxUSE_OWNER_DRAWN
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: msw/statbox.cpp
|
||||
// Name: src/msw/statbox.cpp
|
||||
// Purpose: wxStaticBox
|
||||
// Author: Julian Smart
|
||||
// Modified by:
|
||||
@@ -26,16 +26,17 @@
|
||||
|
||||
#if wxUSE_STATBOX
|
||||
|
||||
#include "wx/statbox.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/app.h"
|
||||
#include "wx/dcclient.h"
|
||||
#include "wx/dcmemory.h"
|
||||
#endif
|
||||
|
||||
#include "wx/statbox.h"
|
||||
#include "wx/notebook.h"
|
||||
#include "wx/sysopt.h"
|
||||
#include "wx/image.h"
|
||||
#include "wx/dcmemory.h"
|
||||
#include "wx/sysopt.h"
|
||||
|
||||
#include "wx/msw/uxtheme.h"
|
||||
@@ -447,4 +448,3 @@ void wxStaticBox::OnPaint(wxPaintEvent& WXUNUSED(event))
|
||||
#endif // !__WXWINCE__
|
||||
|
||||
#endif // wxUSE_STATBOX
|
||||
|
||||
|
@@ -24,6 +24,7 @@
|
||||
#include "wx/object.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/window.h"
|
||||
#include "wx/dcmemory.h"
|
||||
#endif
|
||||
|
||||
#include "wx/colour.h"
|
||||
@@ -32,7 +33,6 @@
|
||||
#include "wx/listbox.h"
|
||||
#include "wx/ownerdrw.h"
|
||||
#include "wx/settings.h"
|
||||
#include "wx/dcmemory.h"
|
||||
#include "wx/dcscreen.h"
|
||||
|
||||
#define INCL_PM
|
||||
|
@@ -12,6 +12,8 @@
|
||||
// For compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#include "wx/dcmemory.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/utils.h"
|
||||
#include "wx/app.h"
|
||||
@@ -20,8 +22,6 @@
|
||||
|
||||
#include "wx/os2/private.h"
|
||||
|
||||
#include "wx/dcmemory.h"
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC, wxDC)
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
@@ -1,5 +1,5 @@
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Name: msw/ownerdrw.cpp
|
||||
// Name: src/os2/ownerdrw.cpp
|
||||
// Purpose: implementation of wxOwnerDrawn class
|
||||
// Author: David Webster
|
||||
// Modified by:
|
||||
@@ -12,6 +12,8 @@
|
||||
// For compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#if wxUSE_OWNER_DRAWN
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/window.h"
|
||||
#include "wx/os2/private.h"
|
||||
@@ -22,8 +24,6 @@
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#if wxUSE_OWNER_DRAWN
|
||||
|
||||
#include "wx/settings.h"
|
||||
#include "wx/ownerdrw.h"
|
||||
#include "wx/menuitem.h"
|
||||
@@ -74,7 +74,7 @@ bool wxOwnerDrawn::OnMeasureItem( size_t* pWidth,
|
||||
// placed on top of each other.
|
||||
if (!m_strAccel.empty() )
|
||||
{
|
||||
sStr.Pad(sStr.Length()%8);
|
||||
sStr.Pad(sStr.length()%8);
|
||||
sStr += m_strAccel;
|
||||
}
|
||||
vDC.SetFont(GetFont());
|
||||
|
@@ -24,13 +24,13 @@
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include "wx/dcmemory.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/utils.h"
|
||||
#include "wx/log.h"
|
||||
#endif
|
||||
|
||||
#include "wx/dcmemory.h"
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxWin macros
|
||||
// ----------------------------------------------------------------------------
|
||||
@@ -88,4 +88,3 @@ static void wxDrawRectangle(wxDC& dc, wxCoord x, wxCoord y, wxCoord width, wxCoo
|
||||
void wxMemoryDC::DoDrawRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height)
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -13,7 +13,7 @@
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
@@ -108,4 +108,3 @@ bool wxOwnerDrawn::OnDrawItem(wxDC& dc,
|
||||
|
||||
|
||||
#endif // wxUSE_OWNER_DRAWN
|
||||
|
||||
|
@@ -25,10 +25,14 @@
|
||||
|
||||
#if wxUSE_NOTEBOOK
|
||||
|
||||
#include "wx/imaglist.h"
|
||||
#include "wx/notebook.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/dcmemory.h"
|
||||
#endif
|
||||
|
||||
#include "wx/imaglist.h"
|
||||
#include "wx/spinbutt.h"
|
||||
#include "wx/dcmemory.h"
|
||||
|
||||
#include "wx/univ/renderer.h"
|
||||
|
||||
|
@@ -17,13 +17,11 @@
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/log.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/dcmemory.h"
|
||||
#endif
|
||||
|
||||
#include "wx/icon.h"
|
||||
#include "wx/image.h"
|
||||
#if wxUSE_NANOX
|
||||
#include "wx/dcmemory.h"
|
||||
#endif
|
||||
|
||||
#include "wx/x11/private.h"
|
||||
|
||||
|
@@ -13,7 +13,10 @@
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#include "wx/dc.h"
|
||||
#include "wx/dcmemory.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/dcmemory.h"
|
||||
#endif
|
||||
|
||||
IMPLEMENT_ABSTRACT_CLASS(wxDC, wxObject)
|
||||
|
||||
|
@@ -17,9 +17,9 @@
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/app.h"
|
||||
#include "wx/window.h"
|
||||
#include "wx/dcmemory.h"
|
||||
#endif
|
||||
|
||||
#include "wx/dcmemory.h"
|
||||
#include "wx/image.h"
|
||||
#include "wx/module.h"
|
||||
#include "wx/fontutil.h"
|
||||
|
Reference in New Issue
Block a user