static INT_PTR CALLBACK ProgressDialogProc (HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam)
{
+ bool handled;
+ INT_PTR vv = commonproc2(hDlg, msg, wParam, lParam, &handled);
+ if (handled) {
+ return vv;
+ }
+
switch(msg)
{
case WM_DESTROY:
static INT_PTR CALLBACK CHSDialogProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam)
{
+ bool handled;
+ INT_PTR vv = commonproc2(hDlg, msg, wParam, lParam, &handled);
+ if (handled) {
+ return vv;
+ }
+
switch (msg)
{
case WM_DESTROY:
static struct ini_data *hdini;
static INT_PTR CALLBACK StringBoxDialogProc (HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam)
{
+ bool handled;
+ INT_PTR vv = commonproc2(hDlg, msg, wParam, lParam, &handled);
+ if (handled) {
+ return vv;
+ }
+
switch(msg)
{
case WM_DESTROY:
return table[posn];
}
-static INT_PTR commonproc2(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam, bool *handled)
+INT_PTR commonproc2(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam, bool *handled)
{
if (dialog_inhibit) {
*handled = true;
static INT_PTR CALLBACK RemapSpecialsProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam)
{
static int recursive = 0;
- HWND list = GetDlgItem(hDlg, IDC_LISTDIALOG_LIST);
- if (dialog_inhibit)
- return 0;
+ bool handled;
+ INT_PTR vv = commonproc2(hDlg, msg, wParam, lParam, &handled);
+ if (handled) {
+ return vv;
+ }
+
+ HWND list = GetDlgItem(hDlg, IDC_LISTDIALOG_LIST);
switch (msg)
{
extern HWND CustomCreateDialog(int templ, HWND hDlg, DLGPROC proc, struct customdialogstate *cds);
extern void CustomDialogClose(HWND, int);
extern INT_PTR CustomDialogBox (int templ, HWND hDlg, DLGPROC proc);
+INT_PTR commonproc2(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam, bool *handled);
extern struct newresource *getresource (int tmpl);
extern void scaleresource_init(const TCHAR*, int);
extern int scaleresource_choosefont (HWND hDlg, int fonttype);