Changeset 7325 for trunk/src/user32/win32dlg.cpp
- Timestamp:
- Nov 12, 2001, 7:01:05 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32dlg.cpp
r7305 r7325 1 /* $Id: win32dlg.cpp,v 1.7 3 2001-11-08 18:32:59sandervl Exp $ */1 /* $Id: win32dlg.cpp,v 1.74 2001-11-12 18:01:05 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Dialog Code for OS/2 … … 451 451 * of the font 452 452 */ 453 #ifdef __WIN32OS2__ 454 if (GetTextExtentPointA(hDC,szAvgChars,sizeof(szAvgChars)-1,&total)) 455 { 456 /* round up */ 457 pSize->cx = ((2*total.cx/(sizeof(szAvgChars)-1)) + 1)/2; 458 Success = TRUE; 459 } 460 #else 453 461 if (GetTextExtentPointA(hDC,szAvgChars,sizeof(szAvgChars),&total)) 454 462 { … … 457 465 Success = TRUE; 458 466 } 467 #endif 459 468 } 460 469 else
Note:
See TracChangeset
for help on using the changeset viewer.