2 #include "GVONoncopyable.h"
3 #include "GVOShipRouteList.h"
7 //!@brief
\8dq
\98H
\8aÇ
\97\9d\83r
\83\85\81[
8 class GVOShipRouteManageView : private GVONoncopyable, public IGVOShipRouteListObserver {
11 k_ColumnIndex_StartPoint,
12 k_ColumnIndex_EndPoint,
18 HWND m_hwnd = nullptr;
19 GVOShipRouteList * m_routeList = nullptr;
21 HWND m_listViewCtrl = nullptr;
22 int m_selectionIndex = -1;
23 GVOShipRoute * m_selectedRoute = nullptr;
25 size_t m_visibleCount = 50;
28 GVOShipRouteManageView() = default;
29 ~GVOShipRouteManageView();
31 bool setup( GVOShipRouteList & shipRouteList );
36 ::ShowWindow( m_hwnd, SW_SHOWNORMAL );
37 ::SetForegroundWindow( m_hwnd );
40 virtual void onShipRouteListAddRoute( GVOShipRoute & shipRoute ) override;
41 virtual void onShipRouteListUpdateRoute( GVOShipRoute & shipRoute ) override;
42 virtual void onShipRouteListRemoveItem( GVOShipRoute & shipRoute ) override;
43 virtual void onShipRouteListRemoveAllItems() override;
45 static BOOL CALLBACK dlgProcThunk( HWND hwnd, UINT msg, WPARAM wp, LPARAM lp );
46 BOOL CALLBACK dlgProc( UINT msg, WPARAM wp, LPARAM lp );
47 void onCommand(WORD eventCode, WORD cmdId, HANDLE ctrl);
48 void onNotify( LPNMHDR nmh );
49 void setupRouteList();
50 void updateVisibleListItemCount();