mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 10:41:12 +00:00
static control: STN_ENABLE and STN_DISABLE notifications.
This commit is contained in:
parent
2b8cda7162
commit
2ddbc7b6e0
1 changed files with 11 additions and 5 deletions
|
@ -31,10 +31,6 @@
|
|||
* Styles
|
||||
* - SS_RIGHTJUST
|
||||
*
|
||||
* Notifications
|
||||
* - STN_DISABLE
|
||||
* - STN_ENABLE
|
||||
*
|
||||
* Messages
|
||||
* - STM_SETIMAGE: IMAGE_CURSOR
|
||||
*/
|
||||
|
@ -391,7 +387,17 @@ static LRESULT StaticWndProc_common( HWND hwnd, UINT uMsg, WPARAM wParam,
|
|||
break;
|
||||
|
||||
case WM_ENABLE:
|
||||
InvalidateRect(hwnd, NULL, TRUE);
|
||||
STATIC_TryPaintFcn( hwnd, full_style );
|
||||
if (full_style & SS_NOTIFY) {
|
||||
if (wParam) {
|
||||
SendMessageW( GetParent(hwnd), WM_COMMAND,
|
||||
MAKEWPARAM( GetWindowLongPtrW(hwnd,GWLP_ID), STN_ENABLE ), (LPARAM)hwnd);
|
||||
}
|
||||
else {
|
||||
SendMessageW( GetParent(hwnd), WM_COMMAND,
|
||||
MAKEWPARAM( GetWindowLongPtrW(hwnd,GWLP_ID), STN_DISABLE ), (LPARAM)hwnd);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case WM_SYSCOLORCHANGE:
|
||||
|
|
Loading…
Reference in a new issue