fix client to screen (and vice versa) conversion

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37546 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2006-02-13 00:49:24 +00:00
parent 38b2e0de18
commit 7447bdd7b7
2 changed files with 15 additions and 0 deletions

View File

@ -229,6 +229,11 @@ public:
protected:
virtual bool DoPopupMenu( wxMenu *menu, int x, int y );
// take into account the coordinates difference between the container
// window and the list control window itself here
virtual void DoClientToScreen( int *x, int *y ) const;
virtual void DoScreenToClient( int *x, int *y ) const;
virtual wxSize DoGetBestSize() const;
// return the text for the given column of the given item

View File

@ -5432,6 +5432,16 @@ bool wxGenericListCtrl::DoPopupMenu( wxMenu *menu, int x, int y )
#endif
}
void wxGenericListCtrl::DoClientToScreen( int *x, int *y ) const
{
return m_mainWin->DoClientToScreen(x, y);
}
void wxGenericListCtrl::DoScreenToClient( int *x, int *y ) const
{
return m_mainWin->DoScreenToClient(x, y);
}
void wxGenericListCtrl::SetFocus()
{
// The test in window.cpp fails as we are a composite