Grabby/GrbyCfg/Dialog.h
snow flurry 69476552e8 Overhaul repository structure to add config
I wish I didn't end up doing this all at once, but ah well. Quick rundown:

- CommonCfg contains config/registry functions shared between Grabby and GrbyCfg.
- GrbyCfg provides a dialog for configuring Grabby.

git-svn-id: svn://vcs.sdm.2ki.xyz/Grabby/trunk@16 27729192-006e-004d-b9b5-06fbd0ef7001
2024-02-26 06:18:00 +00:00

25 lines
600 B
C

#pragma once
#define _DLG_MSG_SUFFIX "{990f4b34-579a-4fbc-a5b2-08f46ef5e9c5}"
#define USER_MSG_NAME(name) _T( #name _DLG_MSG_SUFFIX )
#define DEFINE_USER_MSG(name) {\
LPCTSTR name##_MSG = USER_MSG_NAME(name); \
name = RegisterWindowMessage(name##_MSG); \
}
#define DECLARE_USER_MSG(name) \
UINT name;
/* --- */
DECLARE_USER_MSG(WMU_SAVE_CONFIG)
DECLARE_USER_MSG(WMU_SETTING_CHANGED)
void InitUserMsgs(void);
#define ChangedSetting(hwnd) \
SendMessage(hwnd, \
WMU_SETTING_CHANGED, \
0, 0)
#define IsChecked(ref) \
(IsDlgButtonChecked(hDlg, ref) == BST_CHECKED)