|
From: <kr_...@us...> - 2003-10-07 21:59:29
|
Update of /cvsroot/htoolkit/port/src/cbits/Win32
In directory sc8-pr-cvs1:/tmp/cvs-serv21972/src/cbits/Win32
Modified Files:
Window.c
Log Message:
make possible to hide/show controls at any time
Index: Window.c
===================================================================
RCS file: /cvsroot/htoolkit/port/src/cbits/Win32/Window.c,v
retrieving revision 1.50
retrieving revision 1.51
diff -C2 -d -r1.50 -r1.51
*** Window.c 7 Oct 2003 21:31:34 -0000 1.50
--- Window.c 7 Oct 2003 21:59:25 -0000 1.51
***************
*** 993,997 ****
BOOL osGetWindowVisible(WindowHandle window)
{
! return (GetWindowLong(hCtrl, GWL_STYLE) & WS_VISIBLE) != 0;
}
--- 993,997 ----
BOOL osGetWindowVisible(WindowHandle window)
{
! return (GetWindowLong(window, GWL_STYLE) & WS_VISIBLE) != 0;
}
***************
*** 1209,1212 ****
--- 1209,1217 ----
return (i >= pData->disabledCtrlsCount);
}
+ }
+
+ void osSetControlVisible(WindowHandle ctrl, BOOL visible)
+ {
+ ShowWindow(ctrl, visible ? SW_SHOW : SW_HIDE);
}
|