// #pragma once #include #include #pragma comment(lib, "base_util.lib") #define WM_GET_TEST_ITEM_NAME WM_USER + 100 // WPARAM: (wchar_t*)title, LPARAM: (ITEM*)item #define WM_GET_TEST_ITEM_TITLE WM_USER + 101 // WPARAM: (wchar_t*)name, LPARAM: (ITEM*)item #define WM_TO_ITEM_MGR_TAB WM_USER + 102 #define WM_TEST_ITEM_CHANGED WM_USER + 103 #include #include class page_config { public: page_config() {} virtual ~page_config() {} typedef struct _item { std::wstring name; std::wstring title; std::wstring desc; bool man; bool fatal; bool operator==(const wchar_t* t) { return title == t; } }ITEM; public: virtual std::wstring export_config(bool *ok/*return error message if this returned false*/, bool used_in_code = false, int code_ver = 1) = 0; }; extern INTER_MODULE_CALLBACK(got_wstr); extern INTER_MODULE_CALLBACK(got_str);