Changeset 10098 for trunk/src/comctl32/pager.c
- Timestamp:
- May 15, 2003, 4:26:27 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/comctl32/pager.c
r9370 r10098 837 837 838 838 /* set default settings */ 839 infoPtr->hwndChild = (HWND)NULL;839 infoPtr->hwndChild = NULL; 840 840 infoPtr->bNoResize = dwStyle & CCS_NORESIZE; 841 841 infoPtr->clrBk = GetSysColor(COLOR_BTNFACE); … … 898 898 DefWindowProcA (hwnd, WM_NCCALCSIZE, wParam, lParam); 899 899 900 TRACE("orig rect=(% d,%d)-(%d,%d)\n",900 TRACE("orig rect=(%ld,%ld)-(%ld,%ld)\n", 901 901 lpRect->left, lpRect->top, lpRect->right, lpRect->bottom); 902 902 … … 913 913 scrollRange = infoPtr->nWidth - (rcmyw.right - rcmyw.left); 914 914 915 TRACE("nPos=%d, scrollrange=%d, nHeigth=%d, myw=(% d,%d)-(%d,%d), cursor=(%ld,%ld)\n",915 TRACE("nPos=%d, scrollrange=%d, nHeigth=%d, myw=(%ld,%ld)-(%ld,%ld), cursor=(%ld,%ld)\n", 916 916 infoPtr->nPos, scrollRange, infoPtr->nHeight, 917 917 rcmyw.left, rcmyw.top, … … 927 927 rbrc = wnrc; 928 928 rbrc.left = rbrc.right - infoPtr->nButtonSize; 929 TRACE("horz lt rect=(% d,%d)-(%d,%d), rb rect=(%d,%d)-(%d,%d)\n",929 TRACE("horz lt rect=(%ld,%ld)-(%ld,%ld), rb rect=(%ld,%ld)-(%ld,%ld)\n", 930 930 ltrc.left, ltrc.top, ltrc.right, ltrc.bottom, 931 931 rbrc.left, rbrc.top, rbrc.right, rbrc.bottom); … … 962 962 scrollRange = infoPtr->nHeight - (rcmyw.bottom - rcmyw.top); 963 963 964 TRACE("nPos=%d, scrollrange=%d, nHeigth=%d, myw=(% d,%d)-(%d,%d), cursor=(%ld,%ld)\n",964 TRACE("nPos=%d, scrollrange=%d, nHeigth=%d, myw=(%ld,%ld)-(%ld,%ld), cursor=(%ld,%ld)\n", 965 965 infoPtr->nPos, scrollRange, infoPtr->nHeight, 966 966 rcmyw.left, rcmyw.top, … … 987 987 rbrc = wnrc; 988 988 rbrc.left = rbrc.right - infoPtr->nButtonSize; 989 TRACE("vert lt rect=(% d,%d)-(%d,%d), rb rect=(%d,%d)-(%d,%d)\n",989 TRACE("vert lt rect=(%ld,%ld)-(%ld,%ld), rb rect=(%ld,%ld)-(%ld,%ld)\n", 990 990 ltrc.left, ltrc.top, ltrc.right, ltrc.bottom, 991 991 rbrc.left, rbrc.top, rbrc.right, rbrc.bottom); … … 999 999 if (infoPtr->BRbtnState && (lpRect->bottom - infoPtr->nButtonSize > lpRect->top)) 1000 1000 lpRect->bottom -= infoPtr->nButtonSize; 1001 /* ???? */ 1002 if ((lpRect->bottom < 0) || (lpRect->bottom > infoPtr->nHeight)) 1003 lpRect->bottom = infoPtr->nHeight; 1004 } 1005 1006 TRACE("[%p] client rect set to %dx%d at (%d,%d) BtnState[%d,%d]\n", 1001 } 1002 1003 TRACE("[%p] client rect set to %ldx%ld at (%ld,%ld) BtnState[%d,%d]\n", 1007 1004 hwnd, lpRect->right-lpRect->left, lpRect->bottom-lpRect->top, 1008 1005 lpRect->left, lpRect->top, … … 1233 1230 /* If in one of the buttons the capture and draw buttons */ 1234 1231 if (btnrect) { 1235 TRACE("[%p] draw btn (% d,%d)-(%d,%d), Capture %s, style %08lx\n",1232 TRACE("[%p] draw btn (%ld,%ld)-(%ld,%ld), Capture %s, style %08lx\n", 1236 1233 hwnd, btnrect->left, btnrect->top, 1237 1234 btnrect->right, btnrect->bottom, … … 1604 1601 PAGER_Unregister (void) 1605 1602 { 1606 UnregisterClassA (WC_PAGESCROLLERA, (HINSTANCE)NULL);1607 } 1603 UnregisterClassA (WC_PAGESCROLLERA, NULL); 1604 }
Note:
See TracChangeset
for help on using the changeset viewer.