=================================================================== RCS file: /home/cvs/OpenXM_contrib2/windows/engine2000/ox_plot.cpp,v retrieving revision 1.3 retrieving revision 1.6 diff -u -p -r1.3 -r1.6 --- OpenXM_contrib2/windows/engine2000/ox_plot.cpp 2002/07/30 03:48:34 1.3 +++ 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,7 +190,8 @@ BOOL COx_plotApp::PreTranslateMessage(MSG* pMsg) } else pFrame = (CMainFrame *)can->window; pFrame->RedrawWindow(); - } + SetEvent(hCanvasCreated); + } return CWinApp::PreTranslateMessage(pMsg); }