#pragma once #include #include #include "DlgPage.h" // CDlgIndicator 对话框 namespace gb { class scanner_cfg; } class dlg_cfg_mgr: public dlg_base { gb::scanner_cfg* cfg_; std::wstring label_; bool schm_changed_; // to notify parent refreshing UI and settings BOOL handle_message(UINT msg, WPARAM wp, LPARAM lp) override; void handle_command(WORD code, WORD id, HANDLE ctrl); void handle_notify(UINT id, LPNMHDR pnhdr); void layout(void); void on_init_dlg(void); void on_paint(HDC hdc); void on_sel_changed(int sel); void on_del_selected(void); void on_del_all(void); public: dlg_cfg_mgr(gb::scanner_cfg* cfg, HWND parent); ~dlg_cfg_mgr(); public: bool is_scheme_changed(void); };