Minor fix for owner drawn menu item.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13903 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -386,8 +386,9 @@ bool wxOwnerDrawn::OnDrawItem(
|
|||||||
,rRect.x + GetMarginWidth()
|
,rRect.x + GetMarginWidth()
|
||||||
,rRect.y + m_nHeight
|
,rRect.y + m_nHeight
|
||||||
};
|
};
|
||||||
POINTL vPnt1 = {2, 4}; // Leave a little background border
|
POINTL vPnt1 = {rRect.x + 1, rRect.y + 3}; // Leave a little background border
|
||||||
POINTL vPnt2 = {rRect.x + GetMarginWidth(), rRect.y + m_nHeight - 3};
|
POINTL vPnt2 = {rRect.x + GetMarginWidth(), rRect.y + m_nHeight - 3};
|
||||||
|
|
||||||
LINEBUNDLE vLine;
|
LINEBUNDLE vLine;
|
||||||
|
|
||||||
vLine.lColor = vColBack.GetPixel();
|
vLine.lColor = vColBack.GetPixel();
|
||||||
@@ -398,6 +399,7 @@ bool wxOwnerDrawn::OnDrawItem(
|
|||||||
,&vLine
|
,&vLine
|
||||||
);
|
);
|
||||||
::GpiMove(hPS, &vPnt1);
|
::GpiMove(hPS, &vPnt1);
|
||||||
|
char zMsg[128];
|
||||||
::GpiBox( hPS
|
::GpiBox( hPS
|
||||||
,DRO_OUTLINE
|
,DRO_OUTLINE
|
||||||
,&vPnt2
|
,&vPnt2
|
||||||
|
|||||||
Reference in New Issue
Block a user