|  |  | 
 |  |  | class __declspec(dllexport) DataVanalysisWin : public xwin | 
 |  |  | { | 
 |  |  | public: | 
 |  |  |    DataVanalysisWin(void* implPtr, HWND hWnd) :xwin(implPtr, hWnd) {} | 
 |  |  |    DataVanalysisWin(void* implPtr, HWND hWnd) :xwin(implPtr, hWnd),dw_data(0){} | 
 |  |  |    static DataVanalysisWin* CreateInstance(void* implPtr, void* hWnd) | 
 |  |  |    { | 
 |  |  |       return new DataVanalysisWin(implPtr, (HWND)hWnd); | 
 |  |  |    } | 
 |  |  | public: | 
 |  |  |    xhtml   ole_html; | 
 |  |  |    xdwgrid  dw_data; | 
 |  |  |    xdwgrid*  dw_data; | 
 |  |  |    xnode   m_agentNode;   //Agent Condition | 
 |  |  |    xstring   htmlStr; | 
 |  |  |    xexcel   excel; | 
 |  |  | 
 |  |  |       HCURSOR hCursor = xutil::SetCursorWait(); | 
 |  |  |       if (comdid == L"xmConfig") | 
 |  |  |       { | 
 |  |  |          xstring str = dw_data.DataAnalysis(L""); | 
 |  |  |          xstring str = dw_data->DataAnalysis(L""); | 
 |  |  |          if (str != L"") | 
 |  |  |          { | 
 |  |  |             ole_html.LoadHtml(str); | 
 |  |  | 
 |  |  |    int onload() | 
 |  |  |    { | 
 |  |  |       htmlStr = L""; | 
 |  |  |       ole_html = GetControl(L"ole_html"); | 
 |  |  |       ole_html = GetControl(L"ole_1"); | 
 |  |  |       if (!GetWinParam()) return 1; | 
 |  |  |       SetArg(); | 
 |  |  |       xaserverarg arg = GetArg(); | 
 |  |  | 
 |  |  |          htmlStr = str; | 
 |  |  |          ole_html.LoadHtml(str); | 
 |  |  |       } | 
 |  |  |       dw_data = *(xdwgrid*)arg.GetParam(L"obj"); | 
 |  |  |       dw_data = (xdwgrid*)arg.GetParam(L"obj"); | 
 |  |  |  | 
 |  |  |       OnAttachEvent(); | 
 |  |  |  |