• R/O
  • SSH
  • HTTPS

ttssh2: コミット


コミットメタ情報

リビジョン7389 (tree)
日時2019-01-13 18:24:11
作者zmatsuo

ログメッセージ

VTWinが前面に移動しないことがあったので修正

変更サマリ

差分

--- trunk/teraterm/teraterm/vtdisp.c (revision 7388)
+++ trunk/teraterm/teraterm/vtdisp.c (revision 7389)
@@ -3738,27 +3738,41 @@
37383738 }
37393739 }
37403740
3741-void DispShowWindow(int mode) {
3741+void DispShowWindow(int mode)
3742+{
37423743 switch (mode) {
3743- case WINDOW_MINIMIZE:
3744+ case WINDOW_MINIMIZE:
37443745 ShowWindow(HVTWin, SW_MINIMIZE);
37453746 break;
3746- case WINDOW_MAXIMIZE:
3747+ case WINDOW_MAXIMIZE:
37473748 ShowWindow(HVTWin, SW_MAXIMIZE);
37483749 break;
3749- case WINDOW_RESTORE:
3750+ case WINDOW_RESTORE:
37503751 ShowWindow(HVTWin, SW_RESTORE);
37513752 break;
3752- case WINDOW_RAISE:
3753- SetWindowPos(HVTWin, HWND_TOP, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE);
3753+ case WINDOW_RAISE: {
3754+ //何も起きないことあり
3755+ // SetWindowPos(HVTWin, HWND_TOP, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE);
3756+//#define RAISE_AND_GET_FORCUS
3757+#if defined(RAISE_AND_GET_FORCUS)
3758+ //フォーカスを奪う
3759+ SetForegroundWindow(HVTWin);
3760+#else
3761+ //フォーカスは奪わず最上面に来る
3762+ BringWindowToTop(HVTWin);
3763+ if (GetForegroundWindow() != HVTWin) {
3764+ FlashWindow(HVTWin, TRUE);
3765+ }
3766+#endif
3767+ }
37543768 break;
3755- case WINDOW_LOWER:
3769+ case WINDOW_LOWER:
37563770 SetWindowPos(HVTWin, HWND_BOTTOM, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE);
37573771 break;
3758- case WINDOW_REFRESH:
3772+ case WINDOW_REFRESH:
37593773 InvalidateRect(HVTWin, NULL, FALSE);
37603774 break;
3761- case WINDOW_TOGGLE_MAXIMIZE:
3775+ case WINDOW_TOGGLE_MAXIMIZE:
37623776 if (IsZoomed(HVTWin)) {
37633777 ShowWindow(HVTWin, SW_RESTORE);
37643778 }
旧リポジトリブラウザで表示