RECT rect;
if ( !::GetWindowRect(hwnd, &rect) )
- {
wxLogLastError(_T("GetWindowRect"));
- }
return rect;
}
RECT rect;
if ( !::GetClientRect(hwnd, &rect) )
- {
wxLogLastError(_T("GetClientRect"));
- }
return rect;
}
: m_hdc(hdc)
{
if ( !::SelectClipRgn(hdc, hrgn) )
- {
wxLogLastError(_T("SelectClipRgn"));
- }
}
~HDCClipper()
{
m_modeOld = ::SetMapMode(hdc, mm);
if ( !m_modeOld )
- {
wxLogLastError(_T("SelectClipRgn"));
- }
}
~HDCMapModeChanger()
{
m_hGlobal = ::GlobalAlloc(flags, size);
if ( !m_hGlobal )
- {
wxLogLastError(_T("GlobalAlloc"));
- }
}
~GlobalPtr()
{
if ( m_hGlobal && ::GlobalFree(m_hGlobal) )
- {
wxLogLastError(_T("GlobalFree"));
- }
}
// implicit conversion
{
m_ptr = GlobalLock(hGlobal);
if ( !m_ptr )
- {
wxLogLastError(_T("GlobalLock"));
- }
}
~GlobalPtrLock()