Use wxDC rather than wxClientDC for parameter type
This commit is contained in:
@@ -17,8 +17,6 @@
|
|||||||
|
|
||||||
#include "wx/propgrid/property.h"
|
#include "wx/propgrid/property.h"
|
||||||
|
|
||||||
class WXDLLIMPEXP_FWD_CORE wxClientDC;
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------
|
// -----------------------------------------------------------------------
|
||||||
|
|
||||||
// A return value from wxPropertyGrid::HitTest(),
|
// A return value from wxPropertyGrid::HitTest(),
|
||||||
@@ -471,12 +469,12 @@ public:
|
|||||||
// Returns minimal width for given column so that all images and texts
|
// Returns minimal width for given column so that all images and texts
|
||||||
// will fit entirely.
|
// will fit entirely.
|
||||||
// Used by SetSplitterLeft() and DoFitColumns().
|
// Used by SetSplitterLeft() and DoFitColumns().
|
||||||
int GetColumnFitWidth(wxClientDC& dc,
|
int GetColumnFitWidth(const wxDC& dc,
|
||||||
wxPGProperty* pwc,
|
wxPGProperty* pwc,
|
||||||
unsigned int col,
|
unsigned int col,
|
||||||
bool subProps) const;
|
bool subProps) const;
|
||||||
|
|
||||||
int GetColumnFullWidth(wxClientDC &dc, wxPGProperty *p, unsigned int col);
|
int GetColumnFullWidth(const wxDC& dc, wxPGProperty* p, unsigned int col);
|
||||||
|
|
||||||
// Returns information about arbitrary position in the grid.
|
// Returns information about arbitrary position in the grid.
|
||||||
// pt - Logical coordinates in the virtual grid space. Use
|
// pt - Logical coordinates in the virtual grid space. Use
|
||||||
|
@@ -718,7 +718,7 @@ wxPropertyGridPageState::HitTest( const wxPoint&pt ) const
|
|||||||
// -----------------------------------------------------------------------
|
// -----------------------------------------------------------------------
|
||||||
|
|
||||||
// Used by SetSplitterLeft() and DotFitColumns()
|
// Used by SetSplitterLeft() and DotFitColumns()
|
||||||
int wxPropertyGridPageState::GetColumnFitWidth(wxClientDC& dc,
|
int wxPropertyGridPageState::GetColumnFitWidth(const wxDC& dc,
|
||||||
wxPGProperty* pwc,
|
wxPGProperty* pwc,
|
||||||
unsigned int col,
|
unsigned int col,
|
||||||
bool subProps) const
|
bool subProps) const
|
||||||
@@ -762,7 +762,7 @@ int wxPropertyGridPageState::GetColumnFitWidth(wxClientDC& dc,
|
|||||||
return maxW;
|
return maxW;
|
||||||
}
|
}
|
||||||
|
|
||||||
int wxPropertyGridPageState::GetColumnFullWidth( wxClientDC &dc, wxPGProperty *p, unsigned int col )
|
int wxPropertyGridPageState::GetColumnFullWidth(const wxDC& dc, wxPGProperty* p, unsigned int col)
|
||||||
{
|
{
|
||||||
if ( p->IsCategory() )
|
if ( p->IsCategory() )
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user