Changeset 132 for trunk/src/helpers/comctl.c
- Timestamp:
- Jan 19, 2002, 11:50:39 AM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/comctl.c
r123 r132 977 977 */ 978 978 979 PANIMATIONDATA CreateAnimationData(HWND hwndStatic, 979 PANIMATIONDATA CreateAnimationData(HAB hab, 980 HWND hwndStatic, 980 981 USHORT cAnimations) 981 982 { … … 996 997 WinSetWindowULong(hwndStatic, QWL_USER, (ULONG)pa); 997 998 998 pa->hab = WinQueryAnchorBlock(hwndStatic);999 pa->hab = hab; 999 1000 WinQueryWindowRect(hwndStatic, &pa->rclIcon); 1000 1001 pa->OldStaticProc = WinSubclassWindow(hwndStatic, ctl_fnwpBitmapStatic); … … 1046 1047 { 1047 1048 PANIMATIONDATA pa; 1048 1049 if (pa = CreateAnimationData(hwndStatic, 1050 usAnimCount)) 1049 HAB hab; 1050 if ( (hwndStatic) 1051 && (hab = WinQueryAnchorBlock(hwndStatic)) 1052 && (WinIsWindow(hab, hwndStatic)) 1053 && (pa = CreateAnimationData(hab, 1054 hwndStatic, 1055 usAnimCount)) 1056 ) 1051 1057 { 1052 1058 // switch static to icon mode 1053 1059 pa->ulFlags = ANF_ICON; 1060 return (pa); 1054 1061 } 1055 1062 1056 return ( pa);1063 return (NULL); 1057 1064 } 1058 1065 … … 1233 1240 { 1234 1241 PANIMATIONDATA pa; 1235 1236 if (pa = CreateAnimationData(hwndStatic, 1)) 1242 HAB hab; 1243 if ( (hwndStatic) 1244 && (hab = WinQueryAnchorBlock(hwndStatic)) 1245 && (WinIsWindow(hab, hwndStatic)) 1246 && (pa = CreateAnimationData(hab, hwndStatic, 1)) 1247 ) 1237 1248 { 1238 1249 // switch static to bitmap mode … … 1240 1251 if (fPreserveProportions) 1241 1252 pa->ulFlags |= ANF_PROPORTIONAL; 1253 return (pa); 1242 1254 } 1243 1255 1244 return (pa);1256 return NULL; 1245 1257 } 1246 1258
Note:
See TracChangeset
for help on using the changeset viewer.