#ifndef __CONTROLVIEW_H__ #define __CONTROLVIEW_H__ #include "ControlViewPresenter.h" #include "WindowsSupport/WindowsSupport.pkg" #include "DeviceInterface/DeviceInterface.pkg" #include "Processor/Processor.pkg" class ControlView :public ViewBase { public: // Constructors ControlView(IUIManager& uiManager, ControlViewPresenter& presenter, IProcessor& model); protected: // Member window procedure virtual INT_PTR WndProcDialog(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam); private: // Event handlers INT_PTR msgWM_INITDIALOG(HWND hwnd, WPARAM wParam, LPARAM lParam); INT_PTR msgWM_DESTROY(HWND hwnd, WPARAM wParam, LPARAM lParam); INT_PTR msgWM_TIMER(HWND hwnd, WPARAM wParam, LPARAM lParam); INT_PTR msgWM_COMMAND(HWND hwnd, WPARAM wParam, LPARAM lParam); private: ControlViewPresenter& _presenter; IProcessor& _model; bool _initializedDialog; std::wstring _previousText; unsigned int _currentControlFocus; }; #endif