#include #include #include #include #include #include "vbusiness/vframe/listwin.vframe.vbusiness.hpp" #include "viewobject/view.base.hpp" using xml = KXMLDOMDocument; class __declspec(dllexport) ExpressList : public xwin { public: xdwgrid dw_list; public: ExpressList(void* implPtr, HWND hWnd) :xwin(implPtr, hWnd) {} public: static ExpressList* CreateInstance(void* implPtr, void* hWnd) { ExpressList* pWin = new ExpressList(implPtr, (HWND)hWnd); return pWin; } int onload() { list::onload(); return -1; } int ViewUpdate(param pr, xstring updateItem, xaserverarg arg) { if (updateItem == L"del") { int DelRow = dw_list.GetRow(); dw_list.DeleteRow(DelRow); } return 1; } };