mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-26 09:42:25 +00:00
Try the blindingly-obvious fix for the hidden-controls-are-still-
accessible GUI bug. [originally from svn r879]
This commit is contained in:
parent
4a339ef430
commit
c9c214d1e4
4
windlg.c
4
windlg.c
@ -596,7 +596,11 @@ static void hide(HWND hwnd, int hide, int minid, int maxid) {
|
|||||||
for (i = minid; i < maxid; i++) {
|
for (i = minid; i < maxid; i++) {
|
||||||
HWND ctl = GetDlgItem(hwnd, i);
|
HWND ctl = GetDlgItem(hwnd, i);
|
||||||
if (ctl) {
|
if (ctl) {
|
||||||
|
if (!hide)
|
||||||
|
EnableWindow(ctl, 1);
|
||||||
ShowWindow(ctl, hide ? SW_HIDE : SW_SHOW);
|
ShowWindow(ctl, hide ? SW_HIDE : SW_SHOW);
|
||||||
|
if (hide)
|
||||||
|
EnableWindow(ctl, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user