| | |
| | | xstring GetEntityID(int pr) |
| | | { |
| | | int row = dw_list.GetRow(); |
| | | xstring id = dw_list.GetItemString(row,m_entityid); |
| | | xstring id = dw_list.GetItemString(row,m_entityid.c_str()); |
| | | return id; |
| | | } |
| | | |
| | |
| | | int ll_row = dw_list.GetNextSelectRow(1); |
| | | while(ll_row > 0 && ll_row <= dw_list.GetRowCount()) |
| | | { |
| | | xstring id=dw_list.GetItemString(ll_row,m_entityid); |
| | | xstring id=dw_list.GetItemString(ll_row,m_entityid.c_str()); |
| | | if(EntityIDList == L"") EntityIDList = id; else EntityIDList += L",L" + id; |
| | | ll_row = dw_list.GetNextSelectRow(ll_row + 1); |
| | | } |
| | |
| | | int OnXCommand(TEvent* evt, LPARAM param) |
| | | { |
| | | return OnCmdDispatch(evt->xcommand.pStrID); |
| | | } |
| | | |
| | | int OnRowChanged(TEvent* evt, LPARAM p) |
| | | { |
| | | DWNMHDR& hdr = *(DWNMHDR*)evt->notify.pnmh; |
| | | int row = hdr.row; |
| | | //SetAgent(L"list",dw_list.GetItemString(row,GetEntityID(1))); |
| | | return 1; |
| | | } |
| | | |
| | | int OnAttachEvent() |
| | |
| | | xstring GetEntityID(int pr) |
| | | { |
| | | int row = dw_list.GetRow(); |
| | | xstring id = dw_list.GetItemString(row,m_entityid); |
| | | xstring id = dw_list.GetItemString(row,m_entityid.c_str()); |
| | | return id; |
| | | } |
| | | |
| | |
| | | int ll_row = dw_list.GetNextSelectRow(1); |
| | | while(ll_row > 0 && ll_row <= dw_list.GetRowCount()) |
| | | { |
| | | xstring id=dw_list.GetItemString(ll_row,m_entityid); |
| | | xstring id=dw_list.GetItemString(ll_row,m_entityid.c_str()); |
| | | if(EntityIDList == L"") EntityIDList = id; else EntityIDList += L",L" + id; |
| | | ll_row = dw_list.GetNextSelectRow(ll_row + 1); |
| | | } |
| | |
| | | return OnCmdDispatch(evt->xcommand.pStrID); |
| | | } |
| | | |
| | | int OnRowChanged(TEvent* evt, LPARAM p) |
| | | { |
| | | DWNMHDR& hdr = *(DWNMHDR*)evt->notify.pnmh; |
| | | int row = hdr.row; |
| | | //SetAgent(L"list",dw_list.GetItemString(row,GetEntityID(1))); |
| | | return 1; |
| | | } |
| | | |
| | | |
| | | int OnAttachEvent() |
| | | { |