Changeset 178 for trunk/src/helpers/comctl.c
- Timestamp:
- Jun 20, 2002, 10:46:29 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/comctl.c
r169 r178 823 823 // center the icon in the bitmap 824 824 // V0.9.16 (2001-10-15) [umoeller] 825 POINTL ptlOfs; 826 ptlOfs.x = ( (pa->rclIcon.xRight - pa->rclIcon.xLeft) 827 - pa->lIconSize 828 ) / 2; 829 ptlOfs.y = ( (pa->rclIcon.yTop - pa->rclIcon.yBottom) 830 - pa->lIconSize 831 ) / 2; 832 833 // paint icon into bitmap 834 gpihIcon2Bitmap(hpsMem, 825 826 // replaced call V0.9.19 (2002-06-18) [umoeller] 827 gpihDrawPointer(hpsMem, 828 ( (pa->rclIcon.xRight - pa->rclIcon.xLeft) 829 - pa->szlIcon.cx 830 ) / 2, 831 ( (pa->rclIcon.yTop - pa->rclIcon.yBottom) 832 - pa->szlIcon.cy 833 ) / 2, 835 834 pa->hptr, 836 lBkgndColor,837 &ptlOfs,838 pa->lIconSize);835 &pa->szlIcon, 836 NULL, // no clipping 837 0); // no mini 839 838 } 840 839 … … 1001 1000 WinQueryWindowRect(hwndStatic, &pa->rclIcon); 1002 1001 pa->OldStaticProc = WinSubclassWindow(hwndStatic, ctl_fnwpBitmapStatic); 1003 pa->lIconSize = WinQuerySysValue(HWND_DESKTOP, SV_CXICON); 1002 pa->szlIcon.cx = WinQuerySysValue(HWND_DESKTOP, SV_CXICON); 1003 pa->szlIcon.cy = WinQuerySysValue(HWND_DESKTOP, SV_CYICON); 1004 1004 } 1005 1005 }
Note:
See TracChangeset
for help on using the changeset viewer.