Previous 15994 Revisions Next

r7177 Tuesday 26th January, 2010 at 09:46:48 UTC by Miodrag Milanović
Removed UNICODE check
[src/mess/osd/windows]dialog.c dialog.h

src/mess/osd/windows/dialog.c
r7176r7177
16691669
16701670   // show the dialog
16711671   before_display_dialog(machine);
1672#ifndef UNICODE
1673   if (GetVersion() & 0x80000000)
1674      DialogBoxIndirectParamA(NULL, (const DLGTEMPLATE*)dialog->handle, wnd, dialog_proc, (LPARAM) dialog);
1675   else
1676#endif // UNICODE
1677      DialogBoxIndirectParamW(NULL, (const DLGTEMPLATE*)dialog->handle, wnd, dialog_proc, (LPARAM) dialog);
1672   DialogBoxIndirectParamW(NULL, (const DLGTEMPLATE*)dialog->handle, wnd, dialog_proc, (LPARAM) dialog);
16781673   after_display_dialog(machine);
16791674}
16801675
r7176r7177
17641759      dialog_prime(custom_dialog);
17651760
17661761      ofn.flags |= OFN_ENABLETEMPLATEHANDLE | OFN_ENABLEHOOK;
1767      ofn.instance = (HINSTANCE__*)custom_dialog->handle;
1762      ofn.instance = (HINSTANCE)custom_dialog->handle;
17681763      ofn.custom_data = (LPARAM) custom_dialog;
17691764      ofn.hook = file_dialog_hook;
17701765   }
src/mess/osd/windows/dialog.h
r7176r7177
3434char *win_dialog_strdup(dialog_box *dialog, const char *s);
3535WCHAR *win_dialog_wcsdup(dialog_box *dialog, const WCHAR *s);
3636
37#ifdef UNICODE
3837#define win_dialog_tcsdup   win_dialog_wcsdup
39#else
40#define win_dialog_tcsdup   win_dialog_strdup
41#endif
4238
4339/* dialog operations */
4440void win_dialog_runmodal(running_machine *machine, HWND wnd, dialog_box *dialog);

Previous 15994 Revisions Next


© 1998-2018 The MESS Team