]> asedeno.scripts.mit.edu Git - PuTTY_svn.git/commitdiff
Try the blindingly-obvious fix for the hidden-controls-are-still-
authorSimon Tatham <anakin@pobox.com>
Mon, 22 Jan 2001 12:35:16 +0000 (12:35 +0000)
committerSimon Tatham <anakin@pobox.com>
Mon, 22 Jan 2001 12:35:16 +0000 (12:35 +0000)
accessible GUI bug.

git-svn-id: http://svn.tartarus.org/sgt/putty@879 cda61777-01e9-0310-a592-d414129be87e

windlg.c

index abc09022144de9ebd82f3d45886e3ef8e4f85265..f36da4b18b230b5ea93040700b22851e23602722 100644 (file)
--- a/windlg.c
+++ b/windlg.c
@@ -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);
        }
     }
 }