added wxDisplay::GetClientArea() (currently implemented for single display and MSW implementations only)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38147 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-03-16 16:07:24 +00:00
parent 480abc8fdb
commit 6c5d62917d
7 changed files with 57 additions and 1 deletions

View File

@@ -142,6 +142,9 @@ struct wxDisplayInfo
// the entire area of this monitor in virtual screen coordinates
wxRect m_rect;
// the work or client area, i.e. the area available for the normal windows
wxRect m_rectClient;
// the display device name for this monitor, empty initially and retrieved
// on demand by DoGetName()
wxString m_devName;
@@ -167,6 +170,7 @@ public:
}
virtual wxRect GetGeometry() const;
virtual wxRect GetClientArea() const;
virtual wxString GetName() const;
virtual bool IsPrimary() const;
@@ -415,6 +419,7 @@ void wxDisplayInfo::Initialize()
}
wxCopyRECTToRect(monInfo.rcMonitor, m_rect);
wxCopyRECTToRect(monInfo.rcWork, m_rectClient);
m_devName = monInfo.szDevice;
m_flags = monInfo.dwFlags;
}
@@ -432,6 +437,14 @@ wxRect wxDisplayImplWin32Base::GetGeometry() const
return m_info.m_rect;
}
wxRect wxDisplayImplWin32Base::GetClientArea() const
{
if ( m_info.m_rectClient.IsEmpty() )
m_info.Initialize();
return m_info.m_rectClient;
}
wxString wxDisplayImplWin32Base::GetName() const
{
if ( m_info.m_devName.IsEmpty() )