From: <kr_...@us...> - 2003-10-09 07:56:50
|
Update of /cvsroot/htoolkit/port/src/cbits/Win32 In directory sc8-pr-cvs1:/tmp/cvs-serv26862/src/cbits/Win32 Modified Files: Window.c Log Message: add getControlVisible function Index: Window.c =================================================================== RCS file: /cvsroot/htoolkit/port/src/cbits/Win32/Window.c,v retrieving revision 1.51 retrieving revision 1.52 diff -C2 -d -r1.51 -r1.52 *** Window.c 7 Oct 2003 21:59:25 -0000 1.51 --- Window.c 9 Oct 2003 07:56:45 -0000 1.52 *************** *** 787,791 **** // start to fill in the dlgtemplate information. Addressing by WORDs ! lStyle = WS_CAPTION | DS_SETFONT | WS_SYSMENU | WS_OVERLAPPEDWINDOW | WS_HSCROLL | WS_VSCROLL; p = dlgtemplate; --- 787,791 ---- // start to fill in the dlgtemplate information. Addressing by WORDs ! lStyle = WS_CAPTION | DS_SETFONT | WS_OVERLAPPEDWINDOW | WS_HSCROLL | WS_VSCROLL; p = dlgtemplate; *************** *** 1214,1217 **** --- 1214,1222 ---- { ShowWindow(ctrl, visible ? SW_SHOW : SW_HIDE); + } + + BOOL osGetControlVisible(WindowHandle ctrl) + { + return (GetWindowLong(ctrl, GWL_STYLE) & WS_VISIBLE) != 0; } |