Ownerdrawn stuff. Text display done, image display next.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9572 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -123,7 +123,17 @@ wxWindowDC::wxWindowDC(
|
||||
sError = wxPMErrorToStr(vError);
|
||||
wxLogError("Unable to set current color table. Error: %s\n", sError);
|
||||
}
|
||||
::GpiCreateLogColorTable( m_hPS
|
||||
,0L
|
||||
,LCOLF_RGB
|
||||
,0L
|
||||
,0L
|
||||
,NULL
|
||||
);
|
||||
SetBackground(wxBrush(m_pCanvas->GetBackgroundColour(), wxSOLID));
|
||||
::WinQueryWindowRect( GetWinHwnd(m_pCanvas)
|
||||
,&m_vRclPaint
|
||||
);
|
||||
}
|
||||
|
||||
wxWindowDC::~wxWindowDC()
|
||||
@@ -190,6 +200,13 @@ wxClientDC::wxClientDC(
|
||||
sError = wxPMErrorToStr(vError);
|
||||
wxLogError("Unable to set current color table. Error: %s\n", sError);
|
||||
}
|
||||
::GpiCreateLogColorTable( m_hPS
|
||||
,0L
|
||||
,LCOLF_RGB
|
||||
,0L
|
||||
,0L
|
||||
,NULL
|
||||
);
|
||||
//
|
||||
// Default mode is BM_LEAVEALONE so we make no call Set the mix
|
||||
//
|
||||
@@ -197,6 +214,12 @@ wxClientDC::wxClientDC(
|
||||
,wxSOLID
|
||||
)
|
||||
);
|
||||
//
|
||||
// Set the DC/PS rectangle
|
||||
//
|
||||
::WinQueryWindowRect( GetWinHwnd(m_pCanvas)
|
||||
,&m_vRclPaint
|
||||
);
|
||||
} // end of wxClientDC::wxClientDC
|
||||
|
||||
wxClientDC::~wxClientDC()
|
||||
|
Reference in New Issue
Block a user