Changeset 14
- Timestamp:
- 12/19/07 11:02:35 (9 months ago)
- Files:
-
- trunk/win32/dfl/drawing.d (modified) (2 diffs)
- trunk/win32/dfl/internal/com.d (modified) (3 diffs)
- trunk/win32/dfl/internal/winapi.d (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/win32/dfl/drawing.d
r7 r14 849 849 IMAGE_ICON, 0, 0, LR_DEFAULTSIZE | LR_SHARED), false); 850 850 } 851 852 /// ditto 853 Icon information() // getter 854 { 855 return new Icon(LoadImageA(null, IDI_INFORMATION, 856 IMAGE_ICON, 0, 0, LR_DEFAULTSIZE | LR_SHARED), false); 857 } 851 858 } 852 859 … … 1353 1360 { 1354 1361 dfl.internal.wincom.IPicture ipic; 1355 if(S_OK != OleLoadPicture(istm, 0, FALSE, &_IID_IPicture, cast(void**)&ipic)) 1356 return null; 1357 return ipic; 1362 switch(OleLoadPicture(istm, 0, FALSE, &_IID_IPicture, cast(void**)&ipic)) 1363 { 1364 case S_OK: 1365 return ipic; 1366 1367 debug(DFL_X) 1368 { 1369 case E_OUTOFMEMORY: 1370 debug assert(0, "Picture: Out of memory"); 1371 break; 1372 case E_NOINTERFACE: 1373 debug assert(0, "Picture: The object does not support the interface"); 1374 break; 1375 case E_UNEXPECTED: 1376 debug assert(0, "Picture: Unexpected error"); 1377 break; 1378 case E_POINTER: 1379 debug assert(0, "Picture: Invalid pointer"); 1380 break; 1381 case E_FAIL: 1382 debug assert(0, "Picture: Fail"); 1383 break; 1384 } 1385 1386 default: ; 1387 } 1388 return null; 1358 1389 } 1359 1390 trunk/win32/dfl/internal/com.d
r7 r14 83 83 version(Tango) 84 84 { 85 read = stm. input.read(pv[0 .. cb]);85 read = stm.read(pv[0 .. cb]); 86 86 } 87 87 else … … 112 112 version(Tango) 113 113 { 114 written = stm. output.write(pv[0 .. cb]);114 written = stm.write(pv[0 .. cb]); 115 115 } 116 116 else … … 230 230 { 231 231 // Ignore -grfCommitFlags- and just flush the stream.. 232 version(Tango) 233 { 234 stm.output.flush(); 235 } 236 else 237 { 238 stm.flush(); 239 } 232 stm.flush(); 240 233 return S_OK; // ? 241 234 } trunk/win32/dfl/internal/winapi.d
r13 r14 1570 1570 const LPCSTR IDI_QUESTION = cast(LPCSTR)32514; 1571 1571 const LPCSTR IDI_EXCLAMATION = cast(LPCSTR)32515; 1572 const LPCSTR IDI_ASTERISK = cast(LPCSTR)32516; 1573 const LPCSTR IDI_INFORMATION = IDI_ASTERISK; 1572 1574 1573 1575
