ÎļþÃû´Ó jrj/project/total3/ViewExTotalWin.cpp ÐÞ¸Ä |
| | |
| | | |
| | | |
| | | using xml = KXMLDOMDocument; |
| | | class __declspec(dllexport) ViewExTotalWin : public xwin |
| | | class __declspec(dllexport) ViewTotalWin : public xwin |
| | | { |
| | | public: |
| | | ViewExTotalWin(void* implPtr, HWND hWnd) :xwin(implPtr, hWnd) {} |
| | | ViewTotalWin(void* implPtr, HWND hWnd) :xwin(implPtr, hWnd) {} |
| | | public: |
| | | static ViewExTotalWin* CreateInstance(void* implPtr, void* hWnd) |
| | | static ViewTotalWin* CreateInstance(void* implPtr, void* hWnd) |
| | | { |
| | | return new ViewExTotalWin(implPtr, (HWND)hWnd); |
| | | return new ViewTotalWin(implPtr, (HWND)hWnd); |
| | | } |
| | | public: |
| | | xdwgrid dw_list; |
| | |
| | | int OnAttachEvent() |
| | | { |
| | | //ç»å®å·¥å
·æ¡ç¹å»äºä»¶ |
| | | AttachEvent(L"WM_XCOMMAND", (FEvent)&ViewExTotalWin::OnXCommand); |
| | | AttachEvent(L"WM_XCOMMAND", (FEvent)&ViewTotalWin::OnXCommand); |
| | | //è·åç¦ç¹äºä»¶ï¼ç¨äºé置工å
·æ¡ |
| | | AttachEvent(L"WM_SETFOCUS", (FEvent)&ViewExTotalWin::OnSetFocus); |
| | | AttachEvent(L"cb_report", L"CBN_SELCHANGE", (FEvent)&ViewExTotalWin::OnCombboChanged); |
| | | AttachEvent(L"dw_report", L"DWV_CLICKED", (FEvent)&ViewExTotalWin::OnDWClick); |
| | | AttachEvent(L"dw_report", L"DWV_ROWFOCUSCHANGED", (FEvent)&ViewExTotalWin::OnRowChanged);//ç»å®è¡æ´æ¹è§¦åäºä»¶OnRowChanged |
| | | AttachEvent(L"dw_report", xstring(0x400 + 81), (FEvent)&ViewExTotalWin::OnRetrieveFinished); |
| | | AttachEvent(L"WM_SETFOCUS", (FEvent)&ViewTotalWin::OnSetFocus); |
| | | AttachEvent(L"cb_report", L"CBN_SELCHANGE", (FEvent)&ViewTotalWin::OnCombboChanged); |
| | | AttachEvent(L"dw_report", L"DWV_CLICKED", (FEvent)&ViewTotalWin::OnDWClick); |
| | | AttachEvent(L"dw_report", L"DWV_ROWFOCUSCHANGED", (FEvent)&ViewTotalWin::OnRowChanged);//ç»å®è¡æ´æ¹è§¦åäºä»¶OnRowChanged |
| | | AttachEvent(L"dw_report", xstring(0x400 + 81), (FEvent)&ViewTotalWin::OnRetrieveFinished); |
| | | |
| | | return 1; |
| | | } |
| | |
| | | { |
| | | if (!rptEle) return 0; |
| | | if (dataretrieveing) return -1; |
| | | //dw_list.Reset(); |
| | | dw_list.Reset(); |
| | | |
| | | xml x ; |
| | | xaserverarg arg ; |