#include "stdafx.h" #include "config.h" #include "resource.h" static const GUID guid_prefs_tagging = { 0x563107c3, 0xfc7d, 0x4022, { 0xa8, 0x72, 0xa8, 0x2a, 0x2b, 0x3f, 0xd5, 0x25 } }; static preferences_branch_factory foo_preferences_branch_tagging(guid_prefs_tagging, preferences_page::guid_tools, "Tagging"); static BOOL CALLBACK ConfigProc(HWND wnd, UINT msg, WPARAM wp, LPARAM lp) { switch (msg) { case WM_INITDIALOG: { uSetDlgItemText(wnd, IDC_IGNOREMASK, cfg_file_ignore_mask); } break; case WM_COMMAND: { switch (wp) { case IDC_IGNOREMASK | (EN_CHANGE << 16): { cfg_file_ignore_mask = string_utf8_from_window(wnd, IDC_IGNOREMASK); } break; } } break; default: return FALSE; } return TRUE; } static const GUID guid_prefs_liveshowtagger = { 0x13be3cd2, 0xbff3, 0x42cc, { 0x96, 0xda, 0x7f, 0xfc, 0x7a, 0x4a, 0x3d, 0x6 } }; class preferences_page_liveshowtagger : public preferences_page { public: virtual const char * get_name() { return "Live show tagger"; } virtual GUID get_guid() { return guid_prefs_liveshowtagger; } virtual GUID get_parent_guid() { return guid_prefs_tagging; } virtual bool reset_query() { return false; } virtual void reset() { // TODO implement } virtual HWND create(HWND parent) { return uCreateDialog(IDD_PREFS, parent, ConfigProc, 0); } }; static preferences_page_factory_t foo_preferences_page_liveshowtagger;