=================================================================== RCS file: /home/cvs/OpenXM_contrib2/windows/engine2000/ox_plot.cpp,v retrieving revision 1.1.1.1 retrieving revision 1.6 diff -u -p -r1.1.1.1 -r1.6 --- OpenXM_contrib2/windows/engine2000/ox_plot.cpp 2000/11/22 06:20:13 1.1.1.1 +++ OpenXM_contrib2/windows/engine2000/ox_plot.cpp 2014/03/25 20:10:52 1.6 @@ -12,10 +12,13 @@ static char THIS_FILE[] = __FILE__; #endif +#include "gmpxx.h" extern "C" { #include "ca.h" #include "ifplot.h" + extern HANDLE hCanvasCreated; + extern HANDLE hMainThreadReady; extern HANDLE hStreamNotify; extern HANDLE hStreamNotify_Ack; extern DWORD MainThread; @@ -85,6 +88,7 @@ BOOL COx_plotApp::InitInstance() WS_OVERLAPPEDWINDOW | FWS_ADDTOTITLE, NULL, NULL); MainThread = m_nThreadID; + SetEvent(hMainThreadReady); // メイン ウィンドウが初期化されたので、表示と更新を行います。 // pFrame->ShowWindow(SW_SHOW); @@ -186,14 +190,14 @@ BOOL COx_plotApp::PreTranslateMessage(MSG* pMsg) } else pFrame = (CMainFrame *)can->window; pFrame->RedrawWindow(); - } + SetEvent(hCanvasCreated); + } return CWinApp::PreTranslateMessage(pMsg); } void COx_plotApp::OnAppExit() { // TODO: この位置にコマンド ハンドラ用のコードを追加してください - } BOOL COx_plotApp::OnIdle(LONG lCount)