|
|
1.1 ! root 1: #include <windows.h> ! 2: #include <win3216.h> ! 3: ! 4: BOOL FAR PASCAL DlgDirSelectEx( ! 5: HWND hDlg, ! 6: LPSTR lpString, ! 7: int nCount, ! 8: int nIDListBox ! 9: ) ! 10: { ! 11: return DlgDirSelect(hDlg, lpString, nIDListBox); ! 12: } ! 13: ! 14: BOOL FAR PASCAL DlgDirSelectComboBoxEx( ! 15: HWND hDlg, ! 16: LPSTR lpString, ! 17: int nCount, ! 18: int nIDComboBox ! 19: ) ! 20: { ! 21: return DlgDirSelectComboBox(hDlg, lpString, nIDComboBox); ! 22: } ! 23: ! 24: BOOL FAR PASCAL GetAspectRatioFilterEx(HDC hDC, LPSIZE lpAspectRatio) ! 25: { ! 26: *((DWORD FAR*)lpAspectRatio) = GetAspectRatioFilter(hDC); ! 27: return TRUE; ! 28: } ! 29: ! 30: BOOL FAR PASCAL GetBitmapDimensionEx(HBITMAP hBitmap, LPSIZE lpDimension) ! 31: { ! 32: *((DWORD FAR*)lpDimension) = GetBitmapDimension(hBitmap); ! 33: return TRUE; ! 34: } ! 35: ! 36: BOOL FAR PASCAL GetBrushOrgEx(HDC hDC, LPPOINT lpPoint) ! 37: { ! 38: *((DWORD FAR*)lpPoint) = GetBrushOrg(hDC); ! 39: return TRUE; ! 40: } ! 41: ! 42: BOOL FAR PASCAL GetCurrentPositionEx(HDC hDC, LPPOINT lpPoint) ! 43: { ! 44: *((DWORD FAR*)lpPoint) = GetCurrentPosition(hDC); ! 45: return TRUE; ! 46: } ! 47: ! 48: ! 49: BOOL FAR PASCAL GetTextExtentPoint( ! 50: HDC hDC, ! 51: LPSTR lpString, ! 52: int nCount, ! 53: LPSIZE lpSize ! 54: ) ! 55: { ! 56: *((DWORD FAR*)lpSize) = GetTextExtent(hDC, lpString, nCount); ! 57: return TRUE; ! 58: } ! 59: ! 60: BOOL FAR PASCAL GetViewportExtEx(HDC hDC, LPSIZE lpSize) ! 61: { ! 62: *((DWORD FAR*)lpSize) = GetViewportExt(hDC); ! 63: return TRUE; ! 64: } ! 65: ! 66: BOOL FAR PASCAL GetViewportOrgEx(HDC hDC, LPPOINT lpPoint) ! 67: { ! 68: *((DWORD FAR*)lpPoint) = GetViewportOrg(hDC); ! 69: return TRUE; ! 70: } ! 71: ! 72: BOOL FAR PASCAL GetWindowExtEx(HDC hDC, LPSIZE lpSize) ! 73: { ! 74: *((DWORD FAR*)lpSize) = GetWindowExt(hDC); ! 75: return TRUE; ! 76: } ! 77: ! 78: BOOL FAR PASCAL GetWindowOrgEx(HDC hDC, LPPOINT lpPoint) ! 79: { ! 80: *((DWORD FAR*)lpPoint) = GetWindowOrg(hDC); ! 81: return TRUE; ! 82: } ! 83: ! 84: BOOL FAR PASCAL OffsetViewportOrgEx( ! 85: HDC hDC, ! 86: int X, ! 87: int Y, ! 88: LPPOINT lpPoint ! 89: ) ! 90: { ! 91: DWORD dwViewportOrgPrev; ! 92: ! 93: dwViewportOrgPrev = OffsetViewportOrg(hDC, X, Y); ! 94: ! 95: if (lpPoint != NULL) ! 96: *((DWORD FAR*)lpPoint) = dwViewportOrgPrev; ! 97: ! 98: return TRUE; ! 99: } ! 100: ! 101: BOOL FAR PASCAL OffsetWindowOrgEx( ! 102: HDC hDC, ! 103: int X, ! 104: int Y, ! 105: LPPOINT lpPoint ! 106: ) ! 107: { ! 108: DWORD dwWindowOrgPrev; ! 109: ! 110: dwWindowOrgPrev = OffsetWindowOrg(hDC, X, Y); ! 111: ! 112: if (lpPoint != NULL) ! 113: *((DWORD FAR*)lpPoint) = dwWindowOrgPrev; ! 114: ! 115: return TRUE; ! 116: } ! 117: ! 118: BOOL FAR PASCAL MoveToEx( ! 119: HDC hDC, ! 120: int X, ! 121: int Y, ! 122: LPPOINT lpPoint ! 123: ) ! 124: { ! 125: DWORD dwPointPrev; ! 126: ! 127: dwPointPrev = MoveTo(hDC, X, Y ); ! 128: ! 129: if (lpPoint != NULL) ! 130: *((DWORD FAR*)lpPoint) = dwPointPrev; ! 131: ! 132: return TRUE; ! 133: } ! 134: ! 135: BOOL FAR PASCAL ScaleViewportExtEx( ! 136: HDC hDC, ! 137: int Xnum, ! 138: int Xdenom, ! 139: int Ynum, ! 140: int Ydenom, ! 141: LPSIZE lpSize ! 142: ) ! 143: { ! 144: DWORD dwViewportExtPrev; ! 145: ! 146: dwViewportExtPrev = ScaleViewportExt(hDC, Xnum, Xdenom, Ynum, Ydenom); ! 147: ! 148: if (lpSize != NULL) ! 149: *((DWORD FAR*)lpSize) = dwViewportExtPrev; ! 150: ! 151: return TRUE; ! 152: } ! 153: ! 154: BOOL FAR PASCAL ScaleWindowExtEx( ! 155: HDC hDC, ! 156: int Xnum, ! 157: int Xdenom, ! 158: int Ynum, ! 159: int Ydenom, ! 160: LPSIZE lpSize ! 161: ) ! 162: { ! 163: DWORD dwWindowExtPrev; ! 164: ! 165: dwWindowExtPrev = ScaleWindowExt(hDC, Xnum, Xdenom, Ynum, Ydenom); ! 166: ! 167: if (lpSize != NULL) ! 168: *((DWORD FAR*)lpSize) = dwWindowExtPrev; ! 169: ! 170: return TRUE; ! 171: } ! 172: ! 173: BOOL FAR PASCAL SetBitmapDimensionEx( ! 174: HBITMAP hBitmap, ! 175: int X, ! 176: int Y, ! 177: LPSIZE lpSize ! 178: ) ! 179: { ! 180: DWORD dwBitmapDimensionPrev; ! 181: ! 182: dwBitmapDimensionPrev = SetBitmapDimension(hBitmap, X, Y); ! 183: ! 184: if (lpSize != NULL) ! 185: *((DWORD FAR*)lpSize) = dwBitmapDimensionPrev; ! 186: ! 187: return TRUE; ! 188: } ! 189: ! 190: BOOL FAR PASCAL SetViewportExtEx(HDC hDC, int X, int Y, LPSIZE lpSize) ! 191: { ! 192: DWORD dwViewportExtPrev; ! 193: ! 194: dwViewportExtPrev = SetViewportExt(hDC, X, Y); ! 195: if (dwViewportExtPrev == 0) ! 196: return FALSE; ! 197: ! 198: if (lpSize != NULL) ! 199: *((DWORD FAR*)lpSize) = dwViewportExtPrev; ! 200: ! 201: return TRUE; ! 202: } ! 203: ! 204: BOOL FAR PASCAL SetViewportOrgEx( ! 205: HDC hDC, ! 206: int X, ! 207: int Y, ! 208: LPPOINT lpPoint ! 209: ) ! 210: { ! 211: DWORD dwViewportOrgPrev; ! 212: ! 213: dwViewportOrgPrev = SetViewportOrg(hDC, X, Y); ! 214: ! 215: if (lpPoint != NULL) ! 216: *((DWORD FAR*)lpPoint) = dwViewportOrgPrev; ! 217: ! 218: return TRUE; ! 219: } ! 220: ! 221: BOOL FAR PASCAL SetWindowExtEx( ! 222: HDC hDC, ! 223: int X, ! 224: int Y, ! 225: LPSIZE lpSize ! 226: ) ! 227: { ! 228: DWORD dwWindowExtPrev; ! 229: ! 230: dwWindowExtPrev = SetWindowExt(hDC, X, Y); ! 231: ! 232: if (lpSize != NULL) ! 233: *((DWORD FAR*)lpSize) = dwWindowExtPrev; ! 234: ! 235: return TRUE; ! 236: } ! 237: ! 238: BOOL FAR PASCAL SetWindowOrgEx( ! 239: HDC hDC, ! 240: int X, ! 241: int Y, ! 242: LPPOINT lpPoint ! 243: ) ! 244: { ! 245: DWORD dwWindowOrgPrev; ! 246: ! 247: dwWindowOrgPrev = SetWindowOrg(hDC, X, Y); ! 248: ! 249: if (lpPoint != NULL) ! 250: *((DWORD FAR*)lpPoint) = dwWindowOrgPrev; ! 251: ! 252: return TRUE; ! 253: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.