From: <kr_...@us...> - 2003-11-22 09:35:46
|
Update of /cvsroot/htoolkit/port/src/cbits/Win32 In directory sc8-pr-cvs1:/tmp/cvs-serv22477/port/src/cbits/Win32 Modified Files: StatusBar.c Log Message: Add support for StatusBar(count) and Indicator(pos) attributes Index: StatusBar.c =================================================================== RCS file: /cvsroot/htoolkit/port/src/cbits/Win32/StatusBar.c,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** StatusBar.c 18 Nov 2003 18:03:41 -0000 1.4 --- StatusBar.c 22 Nov 2003 09:35:42 -0000 1.5 *************** *** 61,64 **** --- 61,81 ---- }; + int osGetStatusBarIndicatorsCount() + { + int count; + FrameData *pData = (FrameData *) GetWindowLong(ghWndFrame,GWL_USERDATA); + IndicatorHandle indicator; + + count = 0; + indicator = pData->first_indicator; + while (indicator) + { + indicator = indicator->next; + count++; + } + + return count; + }; + void RefreshStatusBarIndicators() { *************** *** 211,213 **** --- 228,241 ---- RefreshStatusBarIndicators(); + } + + int osGetIndicatorPos(IndicatorHandle indicator) + { + int pos; + + pos = 0; + while ((indicator = indicator->prev) != NULL) + pos++; + + return pos; } |