зеркало из https://github.com/mozilla/pjs.git
Implemented SetUpForPaint, but it doesn't do the SetBkMode
This commit is contained in:
Родитель
562a15edd4
Коммит
26c6a44810
|
@ -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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче