Allow windows text widgets to update readonly state on the fly, as gtk already does.

This commit is contained in:
pollmann%netscape.com 1999-03-02 00:48:22 +00:00
parent 0664eb6e9a
commit 497799bce3

View File

@ -94,6 +94,8 @@ NS_METHOD nsTextHelper::SetReadOnly(PRBool aReadOnlyFlag, PRBool& aOldFlag)
{
aOldFlag = mIsReadOnly;
mIsReadOnly = aReadOnlyFlag;
// Update the widget
::SendMessage(mWnd, EM_SETREADONLY, (WPARAM) (BOOL)aReadOnlyFlag, (LPARAM)0);
return NS_OK;
}