[Ttssh2-commit] [7221] idleを呼ぶようにした

scmno****@osdn***** scmno****@osdn*****
2018年 9月 3日 (月) 19:51:50 JST


Revision: 7221
          http://sourceforge.jp/projects/ttssh2/scm/svn/commits/7221
Author:   zmatsuo
Date:     2018-09-03 19:51:50 +0900 (Mon, 03 Sep 2018)
Log Message:
-----------
idleを呼ぶようにした

# Conflicts:
#	teraterm/teraterm/teraterm_nomfc.cpp

Modified Paths:
--------------
    branches/cmake/teraterm/teraterm/teraterm.cpp
    branches/cmake/teraterm/teraterm/vtwin.cpp

-------------- next part --------------
Modified: branches/cmake/teraterm/teraterm/teraterm.cpp
===================================================================
--- branches/cmake/teraterm/teraterm/teraterm.cpp	2018-09-03 10:51:46 UTC (rev 7220)
+++ branches/cmake/teraterm/teraterm/teraterm.cpp	2018-09-03 10:51:50 UTC (rev 7221)
@@ -211,6 +211,8 @@
 int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPreInst,
                    LPSTR lpszCmdLine, int nCmdShow)
 {
+	LONG lCount = 0;
+
 	init();
 	hInst = hInstance;
 	CVTWindow *m_pMainWnd = new CVTWindow();
@@ -228,6 +230,10 @@
 			TranslateMessage(&msg);
 			DispatchMessage(&msg);
 		}
+
+		if (!OnIdle(lCount++)) {
+			lCount = 0;
+		}
     }
     return (msg.wParam);
 }

Modified: branches/cmake/teraterm/teraterm/vtwin.cpp
===================================================================
--- branches/cmake/teraterm/teraterm/vtwin.cpp	2018-09-03 10:51:46 UTC (rev 7220)
+++ branches/cmake/teraterm/teraterm/vtwin.cpp	2018-09-03 10:51:50 UTC (rev 7221)
@@ -90,8 +90,6 @@
 
 #define CWnd	TTCWnd
 #define CFrameWnd	TTCFrameWnd
-#define CMenu TTCMenu
-#define CPoint	TTCPoint
 
 #define VTClassName "VTWin32"
 



Ttssh2-commit メーリングリストの案内