use Calc(Un)ScrolledPosition instead of wxClientDC
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14658 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2917,14 +2917,10 @@ void wxListMainWindow::EditLabel( long item )
|
||||
if (m_dirty)
|
||||
wxSafeYield();
|
||||
|
||||
wxClientDC dc(this);
|
||||
PrepareDC( dc );
|
||||
|
||||
wxString s = data->GetText(0);
|
||||
wxRect rectLabel = GetLineLabelRect(m_currentEdit);
|
||||
|
||||
rectLabel.x = dc.LogicalToDeviceX( rectLabel.x );
|
||||
rectLabel.y = dc.LogicalToDeviceY( rectLabel.y );
|
||||
CalcScrolledPosition(rectLabel.x, rectLabel.y, &rectLabel.x, &rectLabel.y);
|
||||
|
||||
wxListTextCtrl *text = new wxListTextCtrl
|
||||
(
|
||||
|
Reference in New Issue
Block a user