wxBLACK usage.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39615 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -353,11 +353,8 @@ wxDC::wxDC(void)
|
||||
m_hPS = NULL;
|
||||
m_bIsPaintTime = false; // True at Paint Time
|
||||
|
||||
wxColour vColor( wxT("BLACK") );
|
||||
m_pen.SetColour(vColor);
|
||||
|
||||
vColor.Set( wxT("WHITE") );
|
||||
m_brush.SetColour(vColor);
|
||||
m_pen.SetColour(*wxBLACK);
|
||||
m_brush.SetColour(*wxWHITE);
|
||||
|
||||
} // end of wxDC::wxDC
|
||||
|
||||
@@ -1708,11 +1705,9 @@ void wxDC::DoDrawText(
|
||||
CalcBoundingBox((vX + vWidth), (vY + vHeight));
|
||||
} // end of wxDC::DoDrawText
|
||||
|
||||
void wxDC::DrawAnyText(
|
||||
const wxString& rsText
|
||||
, wxCoord vX
|
||||
, wxCoord vY
|
||||
)
|
||||
void wxDC::DrawAnyText( const wxString& rsText,
|
||||
wxCoord vX,
|
||||
wxCoord vY )
|
||||
{
|
||||
int nOldBackground = 0;
|
||||
POINTL vPtlStart;
|
||||
@@ -1776,7 +1771,7 @@ void wxDC::DrawAnyText(
|
||||
vPtlStart.y = vY;
|
||||
}
|
||||
|
||||
PCH pzStr = (PCH)rsText.c_str();
|
||||
PCH pzStr = (PCH)rsText.c_str();
|
||||
|
||||
::GpiMove(m_hPS, &vPtlStart);
|
||||
lHits = ::GpiCharString( m_hPS
|
||||
|
||||
@@ -168,17 +168,10 @@ void wxWindowDC::InitDC()
|
||||
//
|
||||
SetBackground(wxBrush(m_pCanvas->GetBackgroundColour(), wxSOLID));
|
||||
|
||||
wxColour vColor( wxT("BLACK") );
|
||||
m_pen.SetColour(vColor);
|
||||
|
||||
vColor.Set( wxT("WHITE") );
|
||||
m_brush.SetColour(vColor);
|
||||
m_pen.SetColour(*wxBLACK);
|
||||
m_brush.SetColour(*wxWHITE);
|
||||
InitializePalette();
|
||||
wxFont* pFont = new wxFont( 10
|
||||
,wxMODERN
|
||||
,wxNORMAL
|
||||
,wxBOLD
|
||||
);
|
||||
wxFont* pFont = new wxFont( 10, wxMODERN, wxNORMAL, wxBOLD );
|
||||
SetFont(*pFont);
|
||||
delete pFont;
|
||||
//
|
||||
|
||||
@@ -145,11 +145,10 @@ bool wxRadioBox::Create( wxWindow* pParent,
|
||||
const wxValidator& rVal,
|
||||
const wxString& rsName )
|
||||
{
|
||||
wxColour vColour;
|
||||
wxColour vColour(*wxBLACK);
|
||||
LONG lColor;
|
||||
HWND hWndParent = GetHwndOf(pParent);
|
||||
|
||||
vColour.Set(wxString(wxT("BLACK")));
|
||||
m_backgroundColour = pParent->GetBackgroundColour();
|
||||
m_nSelectedButton = -1;
|
||||
m_nNoItems = 0;
|
||||
|
||||
@@ -406,11 +406,9 @@ bool wxSlider::Create(
|
||||
)
|
||||
) + 4; // for bordersizes
|
||||
|
||||
wxColour vColour;
|
||||
wxColour vColour(*wxBLACK);
|
||||
|
||||
vColour.Set(wxString(wxT("BLACK")));
|
||||
|
||||
LONG lColor = (LONG)vColour.GetPixel();
|
||||
LONG lColor = (LONG)vColour.GetPixel();
|
||||
|
||||
::WinSetPresParam( m_hStaticMin
|
||||
,PP_FOREGROUNDCOLOR
|
||||
|
||||
@@ -62,9 +62,7 @@ bool wxStaticBox::Create( wxWindow* pParent,
|
||||
//
|
||||
SetBackgroundColour(GetParent()->GetBackgroundColour());
|
||||
|
||||
wxColour vColour;
|
||||
vColour.Set(wxString(wxT("BLACK")));
|
||||
LONG lColor = (LONG)vColour.GetPixel();
|
||||
LONG lColor = (LONG)wxBLACK->GetPixel();
|
||||
::WinSetPresParam( m_hWnd
|
||||
,PP_FOREGROUNDCOLOR
|
||||
,sizeof(LONG)
|
||||
|
||||
Reference in New Issue
Block a user