code_twain/sane/DlgCfgMgr.h

38 lines
689 B
C
Raw Normal View History

#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:02:25 +00:00
bool schm_changed_;
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);
};