Changeset 170 for trunk/mainwin.cpp
- Timestamp:
- Sep 22, 2025, 10:04:44 PM (3 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mainwin.cpp
r122 r170 171 171 SWP_SHOW | SWP_MOVE | SWP_SIZE | SWP_ZORDER); 172 172 #endif 173 HMQ hmq; 174 BOOL bUniCodeFont = FALSE; 175 CHAR ucFont[FACESIZE]; 173 HMQ hmq = WinQueryWindowULong( hwnd, QWL_HMQ); 176 174 177 175 if (pset->GetLangID() == RU) { 178 hmq = WinQueryWindowULong( hwnd, QWL_HMQ);179 176 WinSetCp(hmq, 866); 180 bUniCodeFont = TRUE;181 177 } 182 178 else if (pset->GetLangID() == CZ || pset->GetLangID() == PL) { 183 hmq = WinQueryWindowULong( hwnd, QWL_HMQ);184 179 WinSetCp(hmq, 852); 185 bUniCodeFont = TRUE;186 180 } 187 181 else { 188 hmq = WinQueryWindowULong( hwnd, QWL_HMQ);189 182 WinSetCp(hmq, 850); 190 183 } 191 184 #if 0 192 185 if (pset->GetLangID() == RU || pset->GetLangID() == CZ || pset->GetLangID() == PL) { 193 186 strcpy(ucFont, "9.Times New Roman MT 30"); … … 198 191 WinSetPresParam(hwnd, PP_FONTNAMESIZE, strlen(ucFont) + 1, ucFont); 199 192 } 193 #endif 200 194 } 201 195 #ifdef _QUIET_ … … 205 199 MPFROMLONG (pset->DelayedCapture ()), 206 200 MPFROMLONG (0)); 207 WinSetFocus( WinWindowFromID ( g_hwndPage0, WID_RB_FILE), FALSE );201 WinSetFocus( WinWindowFromID (pset->GethwndPage0(), WID_RB_FILE), FALSE ); 208 202 return MRESULT (FALSE); 209 203 #else … … 346 340 usCap = CAP_SCREEN; 347 341 #ifdef _QUIET_ 348 WinShowWindow ( g_hwndSettingsDialog, FALSE);342 WinShowWindow (pset->GethwndSettingsDialog(), FALSE); 349 343 #endif 350 344 WinSendMsg (hwnd, UM_PREPARECAPTURE, 0,0); … … 354 348 usCap = CAP_SCREENREGION; 355 349 #ifdef _QUIET_ 356 WinShowWindow ( g_hwndSettingsDialog, FALSE);350 WinShowWindow (pset->GethwndSettingsDialog(), FALSE); 357 351 #endif 358 352 WinSendMsg (hwnd, UM_PREPARECAPTURE, 0,0); … … 362 356 usCap = CAP_WINDOWINT; 363 357 #ifdef _QUIET_ 364 WinShowWindow ( g_hwndSettingsDialog, FALSE);358 WinShowWindow (pset->GethwndSettingsDialog(), FALSE); 365 359 #endif 366 360 WinSendMsg (hwnd, UM_PREPARECAPTURE, 0,0); … … 370 364 usCap = CAP_WINDOW; 371 365 #ifdef _QUIET_ 372 WinShowWindow ( g_hwndSettingsDialog, FALSE);366 WinShowWindow (pset->GethwndSettingsDialog(), FALSE); 373 367 #endif 374 368 WinSendMsg (hwnd, UM_PREPARECAPTURE, 0,0); … … 540 534 case WM_TIMER: 541 535 ulCountdown --; 542 536 #ifndef _QUIET_ 543 537 if( ulCountdown % 20 == 0 ) 544 538 WinSendMsg (hwndSnapshot, UM_COUNTDOWN, 545 539 MPFROMLONG (ulCountdown), 0); 540 #endif 546 541 if (pset->DelayCountdown () && !pset->SerialCapture ()) 547 542 DoCountdown (ulCountdown); … … 626 621 // ? FIXME to give option to reshow window. 627 622 if (WinQueryButtonCheckstate (hwnd, WID_CB_HIDEWINDOW)) 628 WinSendMsg ( g_hwndSettingsDialog, WM_CLOSE, 0,0);629 else if (WinIsWindow ( hab, g_hwndSettingsDialog) &&630 ! WinIsWindowVisible ( g_hwndSettingsDialog))631 WinShowWindow ( g_hwndSettingsDialog, TRUE);623 WinSendMsg (pset->GethwndSettingsDialog(), WM_CLOSE, 0,0); 624 else if (WinIsWindow ( hab, pset->GethwndSettingsDialog()) && 625 ! WinIsWindowVisible (pset->GethwndSettingsDialog())) 626 WinShowWindow (pset->GethwndSettingsDialog(), TRUE); 632 627 pset->HideWindow (TRUE); 633 628 #else … … 649 644 LogDebug( "MainWin:WindowProcedure:WinDefWindowProc->0x%04x", msg ); 650 645 #endif 651 if (hwnd == g_hwndPage0)646 if (hwnd == pset->GethwndPage0()) 652 647 return WinDefDlgProc (hwnd, msg, mp1, mp2); 653 648 else
Note:
See TracChangeset
for help on using the changeset viewer.