Implemented SetUpForPaint, but it doesn't do the SetBkMode

This commit is contained in:
rods%netscape.com 1998-08-03 22:28:49 +00:00
Родитель cea9db392f
Коммит ffa3eb84e6
2 изменённых файлов: 11 добавлений и 0 удалений

Просмотреть файл

@ -79,6 +79,15 @@ PRUint32 nsTextAreaWidget::GetCaretPosition()
return(0);
}
//-------------------------------------------------------------------------
void nsTextAreaWidget::SetUpForPaint(HDC aHDC)
{
::SetBkColor (aHDC, NSRGB_2_COLOREF(mBackground));
::SetTextColor(aHDC, NSRGB_2_COLOREF(mForeground));
//::SetBkMode (aHDC, TRANSPARENT); // don't do this
}
//-------------------------------------------------------------------------
//
// nsTextAreaWidget constructor

Просмотреть файл

@ -64,6 +64,8 @@ public:
virtual void SetCaretPosition(PRUint32 aPosition);
virtual PRUint32 GetCaretPosition();
virtual void SetUpForPaint(HDC aHDC);
protected:
virtual LPCTSTR WindowClass();