NO IMAGE
gnuplotpipe=_wpopen(L"gunplot.exe",L"w");
if(gnuplotpipe)
{
fprintf(gnuplotpipe,"gplot x**2 y**2\n");
fflush(gnuplotpipe);
}
else
{
LogFormat(lerror,"GNUplot: gnuplot not opened");
}
void Implant_EXE(DWORD dID,CString strExe)
{
HWND apphWnd = NULL;
CRect rect;
GetDlgItem(dID)->GetWindowRect(&rect);
ScreenToClient(rect);  
CRect rectShow;
rectShow.left = 0;
rectShow.top = 0;
rectShow.right = rect.right - rect.left;
rectShow.bottom = rect.bottom - rect.top;
apphWnd =::FindWindow(NULL,strExe);  
::SetParent(apphWnd,GetDlgItem(dID)->m_hWnd);
LONG style=GetWindowLong(apphWnd,GWL_STYLE);
style &=~WS_CAPTION;  
style &=~WS_THICKFRAME;  
style |=WS_VISIBLE;
SetWindowLong(apphWnd, GWL_STYLE, style);
::MoveWindow(apphWnd, rectShow.left, rectShow.top,rectShow.right, rectShow.bottom, true);
Invalidate();
::UpdateWindow(apphWnd);
::ShowWindow(apphWnd,SW_SHOW);
}