git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41088
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
RECT rect;
if ( !::GetWindowRect(hwnd, &rect) )
RECT rect;
if ( !::GetWindowRect(hwnd, &rect) )
wxLogLastError(_T("GetWindowRect"));
wxLogLastError(_T("GetWindowRect"));
RECT rect;
if ( !::GetClientRect(hwnd, &rect) )
RECT rect;
if ( !::GetClientRect(hwnd, &rect) )
wxLogLastError(_T("GetClientRect"));
wxLogLastError(_T("GetClientRect"));
: m_hdc(hdc)
{
if ( !::SelectClipRgn(hdc, hrgn) )
: m_hdc(hdc)
{
if ( !::SelectClipRgn(hdc, hrgn) )
wxLogLastError(_T("SelectClipRgn"));
wxLogLastError(_T("SelectClipRgn"));
{
m_modeOld = ::SetMapMode(hdc, mm);
if ( !m_modeOld )
{
m_modeOld = ::SetMapMode(hdc, mm);
if ( !m_modeOld )
wxLogLastError(_T("SelectClipRgn"));
wxLogLastError(_T("SelectClipRgn"));
{
m_hGlobal = ::GlobalAlloc(flags, size);
if ( !m_hGlobal )
{
m_hGlobal = ::GlobalAlloc(flags, size);
if ( !m_hGlobal )
wxLogLastError(_T("GlobalAlloc"));
wxLogLastError(_T("GlobalAlloc"));
}
~GlobalPtr()
{
if ( m_hGlobal && ::GlobalFree(m_hGlobal) )
}
~GlobalPtr()
{
if ( m_hGlobal && ::GlobalFree(m_hGlobal) )
wxLogLastError(_T("GlobalFree"));
wxLogLastError(_T("GlobalFree"));
{
m_ptr = GlobalLock(hGlobal);
if ( !m_ptr )
{
m_ptr = GlobalLock(hGlobal);
if ( !m_ptr )
wxLogLastError(_T("GlobalLock"));
wxLogLastError(_T("GlobalLock"));