| | |
| | | #include "viewobject/view.base.hpp" |
| | | |
| | | using xml = KXMLDOMDocument; |
| | | class __declspec(dllexport) TestingCompanyList : public xwin |
| | | class __declspec(dllexport) TestingCompanyList : public listwin |
| | | { |
| | | public: |
| | | |
| | | xdwgrid dw_list; |
| | | public: |
| | | TestingCompanyList(void* implPtr, HWND hWnd) :xwin(implPtr, hWnd) {} |
| | | TestingCompanyList(void* implPtr, HWND hWnd) :listwin(implPtr, hWnd) {} |
| | | public: |
| | | static TestingCompanyList* CreateInstance(void* implPtr, void* hWnd) |
| | | { |
| | |
| | | } |
| | | int onload() |
| | | { |
| | | list::onload(); |
| | | listwin::onload(); |
| | | SetAgent(); |
| | | return -1; |
| | | } |
| | | |
| | | int ViewUpdate(param pr, xstring updateItem, xaserverarg arg) |
| | | 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; |