Changeset 128 for trunk/savebmp.cpp
- Timestamp:
- Sep 5, 2021, 7:29:33 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/savebmp.cpp
r100 r128 560 560 } 561 561 562 // ** FileDLGProcedure **************************************************** /* fold00*/562 // ** FileDLGProcedure **************************************************** /*FOLD00*/ 563 563 564 564 MRESULT EXPENTRY FileDLGProcedure (HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2) … … 572 572 { 573 573 case WM_INITDLG: 574 575 HMQ hmq; 576 BOOL bUniCodeFont = FALSE; 577 CHAR ucFont[FACESIZE]; 578 CHAR *lang = getenv("LANG"); 579 580 if (!strnicmp(lang, "ru", 2)) { 581 hmq = WinQueryWindowULong( hwnd, QWL_HMQ); 582 WinSetCp(hmq, 866); 583 //bUniCodeFont = TRUE; 584 } 585 else if (pset->GetLangID() == CZ || !strnicmp(lang, "pl", 2)) { 586 hmq = WinQueryWindowULong( hwnd, QWL_HMQ); 587 WinSetCp(hmq, 852); 588 bUniCodeFont = TRUE; 589 } 590 else { 591 hmq = WinQueryWindowULong( hwnd, QWL_HMQ); 592 WinSetCp(hmq, 850); 593 } 594 595 if (bUniCodeFont) { 596 strcpy(ucFont, "9.Times New Roman MT 30"); 597 WinSetPresParam(hwnd, PP_FONTNAMESIZE, strlen(ucFont) + 1, ucFont); 598 } 599 else if (g_installer) { 600 strcpy(ucFont, "9.WarpSans"); 601 WinSetPresParam(hwnd, PP_FONTNAMESIZE, strlen(ucFont) + 1, ucFont); 602 } 574 603 WinSendDlgItemMsg (hwnd, WID_CB_AUTOADDEXTENSION, BM_SETCHECK, 575 604 MPFROMLONG (pset->AutoaddExtension ()),
Note:
See TracChangeset
for help on using the changeset viewer.