2023-02-07 08:55:51 +00:00
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <Windows.h>
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
|
|
#include "DlgPage.h"
|
|
|
|
|
|
|
|
|
|
// CDlgIndicator 对话框
|
|
|
|
|
namespace gb
|
|
|
|
|
{
|
|
|
|
|
class scanner_cfg;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class dlg_cfg_mgr: public dlg_base
|
|
|
|
|
{
|
|
|
|
|
gb::scanner_cfg* cfg_;
|
|
|
|
|
std::wstring label_;
|
2023-03-03 07:25:17 +00:00
|
|
|
|
bool schm_changed_; // to notify parent refreshing UI and settings
|
2023-02-07 08:55:51 +00:00
|
|
|
|
|
|
|
|
|
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:
|
2023-03-03 07:02:25 +00:00
|
|
|
|
bool is_scheme_changed(void);
|
2023-02-07 08:55:51 +00:00
|
|
|
|
};
|