| 1 | /* $Id: dialogs.c,v 1.2 2001-04-28 13:33:43 sandervl Exp $ */
|
|---|
| 2 | /*
|
|---|
| 3 | * common shell dialogs
|
|---|
| 4 | */
|
|---|
| 5 | #ifdef __WIN32OS2__
|
|---|
| 6 | #define ICOM_CINTERFACE 1
|
|---|
| 7 | #include <odin.h>
|
|---|
| 8 | #endif
|
|---|
| 9 | #include <string.h>
|
|---|
| 10 | #include <stdio.h>
|
|---|
| 11 | #include "winerror.h"
|
|---|
| 12 | #include "debugtools.h"
|
|---|
| 13 |
|
|---|
| 14 | #include "shellapi.h"
|
|---|
| 15 | #include "shlobj.h"
|
|---|
| 16 | #include "shell32_main.h"
|
|---|
| 17 | #include "wine/undocshell.h"
|
|---|
| 18 |
|
|---|
| 19 | DEFAULT_DEBUG_CHANNEL(shell);
|
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 | /*************************************************************************
|
|---|
| 23 | * PickIconDlg [SHELL32.62]
|
|---|
| 24 | *
|
|---|
| 25 | */
|
|---|
| 26 | BOOL WINAPI PickIconDlg(
|
|---|
| 27 | HWND hwndOwner,
|
|---|
| 28 | LPSTR lpstrFile,
|
|---|
| 29 | DWORD nMaxFile,
|
|---|
| 30 | LPDWORD lpdwIconIndex)
|
|---|
| 31 | {
|
|---|
| 32 | FIXME("(%08x,%s,%08lx,%p):stub.\n",
|
|---|
| 33 | hwndOwner, lpstrFile, nMaxFile,lpdwIconIndex);
|
|---|
| 34 | return 0xffffffff;
|
|---|
| 35 | }
|
|---|
| 36 |
|
|---|
| 37 | /*************************************************************************
|
|---|
| 38 | * RunFileDlg [SHELL32.61]
|
|---|
| 39 | *
|
|---|
| 40 | * NOTES
|
|---|
| 41 | * Original name: RunFileDlg (exported by ordinal)
|
|---|
| 42 | */
|
|---|
| 43 | void WINAPI RunFileDlg(
|
|---|
| 44 | HWND hwndOwner,
|
|---|
| 45 | HICON hIcon,
|
|---|
| 46 | LPCSTR lpstrDirectory,
|
|---|
| 47 | LPCSTR lpstrTitle,
|
|---|
| 48 | LPCSTR lpstrDescription,
|
|---|
| 49 | UINT uFlags)
|
|---|
| 50 | {
|
|---|
| 51 | FIXME("(0x%04x 0x%04x %s %s %s 0x%08x):stub.\n",
|
|---|
| 52 | hwndOwner, hIcon, lpstrDirectory, lpstrTitle, lpstrDescription, uFlags);
|
|---|
| 53 | }
|
|---|
| 54 |
|
|---|
| 55 | /*************************************************************************
|
|---|
| 56 | * ExitWindowsDialog [SHELL32.60]
|
|---|
| 57 | *
|
|---|
| 58 | * NOTES
|
|---|
| 59 | * exported by ordinal
|
|---|
| 60 | */
|
|---|
| 61 | void WINAPI ExitWindowsDialog (HWND hWndOwner)
|
|---|
| 62 | {
|
|---|
| 63 | TRACE("(0x%08x)\n", hWndOwner);
|
|---|
| 64 | #ifdef __WIN32OS2__
|
|---|
| 65 | if (MessageBoxA( hWndOwner, "Do you want to exit Odin?", "Shutdown", MB_YESNO|MB_ICONQUESTION) == IDOK)
|
|---|
| 66 | #else
|
|---|
| 67 | if (MessageBoxA( hWndOwner, "Do you want to exit WINE?", "Shutdown", MB_YESNO|MB_ICONQUESTION) == IDOK)
|
|---|
| 68 | #endif
|
|---|
| 69 | {
|
|---|
| 70 | SendMessageA ( hWndOwner, WM_QUIT, 0, 0);
|
|---|
| 71 | }
|
|---|
| 72 | }
|
|---|