Adding borders to OS/2 objects

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10306 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Webster
2001-05-24 16:01:45 +00:00
parent 91b5f3bc57
commit 2b0ec34b1a
4 changed files with 25 additions and 2 deletions

View File

@@ -155,6 +155,8 @@ int SetBkMode(
wxDC::wxDC(void)
{
wxColour vColor;
m_pCanvas = NULL;
m_hOldBitmap = 0;
@@ -168,7 +170,11 @@ wxDC::wxDC(void)
m_hOldPS = NULL;
m_hPS = NULL;
m_bIsPaintTime = FALSE; // True at Paint Time
m_brush.GetColour().Set("WHITE");
vColor.InitFromName("BLACK");
m_pen.SetColour(vColor);
vColor.Set("WHITE");
m_brush.SetColour(vColor);
} // end of wxDC::wxDC
wxDC::~wxDC(void)
@@ -816,7 +822,7 @@ void wxDC::DoDrawRectangle(
vPoint[0].x = vX + 1;
vPoint[0].y = vY + 1;
vPoint[1].x = vX + vWidth - 2;
vPoint[1].y = vY + vHeight + 2;
vPoint[1].y = vY + vHeight - 2;
::GpiMove(m_hPS, &vPoint[0]);
::GpiBox( m_hPS
,lControl