#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 listwin { public: xdwgrid dw_list; public: ExpressList(void* implPtr, HWND hWnd) : listwin(implPtr, hWnd) {} public: static ExpressList* CreateInstance(void* implPtr, void* hWnd) { ExpressList* pWin = new ExpressList(implPtr, (HWND)hWnd); return pWin; } int onload() { listwin::onload(); SetAgent(); return -1; } int onloaded() { return listwin::onloaded(); } int ViewUpdate(LPARAM pr, xstring updateItem, xaserverarg arg) { if (updateItem == L"del") { int DelRow = dw_list.GetRow(); dw_list.DeleteRow(DelRow); } return 1; } };