1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-25 09:12:24 +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:
Simon Tatham 2001-01-22 12:35:16 +00:00
parent 4a339ef430
commit c9c214d1e4

View File

@ -596,7 +596,11 @@ static void hide(HWND hwnd, int hide, int minid, int maxid) {
for (i = minid; i < maxid; i++) {
HWND ctl = GetDlgItem(hwnd, i);
if (ctl) {
if (!hide)
EnableWindow(ctl, 1);
ShowWindow(ctl, hide ? SW_HIDE : SW_SHOW);
if (hide)
EnableWindow(ctl, 0);
}
}
}