set-value on disabled slider keeps it disabled

svn: r2837
This commit is contained in:
Matthew Flatt 2006-04-28 16:46:48 +00:00
parent f11bdc9925
commit e83b73e1f9

View File

@ -276,6 +276,11 @@ void wxSlider::SetValue(int value)
sprintf(wxBuffer, "%d", value);
SetWindowText(edit_value, wxBuffer);
}
if (!winEnabled) {
/* Windows bug? Setting the value loses disabled state. */
::EnableWindow((HWND)ms_handle, (BOOL)FALSE);
}
}
void wxSlider::SetLabel(char *label)