| | |
| | | #include "viewobject/view.base.hpp" |
| | | |
| | | using xml = KXMLDOMDocument; |
| | | class __declspec(dllexport) CartermList : public xwin |
| | | class __declspec(dllexport) CartermList : public listwin |
| | | { |
| | | public: |
| | | xdwgrid dw_list; |
| | |
| | | static int dw_hWnd; |
| | | |
| | | public: |
| | | CartermList(void* implPtr, HWND hWnd) :xwin(implPtr, hWnd) {} |
| | | CartermList(void* implPtr, HWND hWnd) :listwin(implPtr, hWnd) {} |
| | | public: |
| | | static CartermList* CreateInstance(void* implPtr, void* hWnd) |
| | | { |
| | | CartermList* pWin = new CartermList(implPtr, (HWND)hWnd); |
| | | return pWin; |
| | | } |
| | | int alert(xstring str) |
| | | { |
| | | //win::MessageBox(GetHWND(),str,L"提示22:",0); |
| | | TApp::alert(this, str); |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | |
| | | xstring GetGuid() { |
| | |
| | | dw_list.SetItemString(row, L"Type", L"7"); |
| | | } |
| | | |
| | | int ViewUpdate(param pr, xstring updateItem, xaserverarg arg) |
| | | int ViewUpdate(LPARAM pr, xstring updateItem, xaserverarg arg) |
| | | { |
| | | if (updateItem == L"del") |
| | | { |
| | |
| | | int onload() |
| | | { |
| | | OnAttachEvent(); |
| | | list::onload(); |
| | | listwin::onload(); |
| | | dw_list.SetReadOnly(false); |
| | | return -1; |
| | | } |