Commit 2972b400 authored by Juergen Schmied's avatar Juergen Schmied Committed by Alexandre Julliard

- activated use of templates

- moved the creating of new folders to the shellview
parent 40bf27e4
...@@ -1368,23 +1368,19 @@ static BOOL Commdlg_GetFileNameW( BOOL16 (CALLBACK *dofunction)(SEGPTR x), ...@@ -1368,23 +1368,19 @@ static BOOL Commdlg_GetFileNameW( BOOL16 (CALLBACK *dofunction)(SEGPTR x),
* TRUE on succes: user enters a valid file * TRUE on succes: user enters a valid file
* FALSE on cancel, error, close or filename-does-not-fit-in-buffer. * FALSE on cancel, error, close or filename-does-not-fit-in-buffer.
* *
* BUGS
* unknown, calls its 16-bit equivalent.
*/ */
BOOL WINAPI GetOpenFileNameA( BOOL WINAPI GetOpenFileNameA(
LPOPENFILENAMEA ofn /* address of init structure */ LPOPENFILENAMEA ofn) /* address of init structure */
)
{ {
if( (TWEAK_WineLook>WIN31_LOOK) && if(TWEAK_WineLook>WIN31_LOOK)
(!(ofn->Flags & (OFN_ENABLETEMPLATEHANDLE|OFN_ENABLETEMPLATE))))
{ {
return GetFileDialog95A(ofn, OPEN_DIALOG); return GetFileDialog95A(ofn, OPEN_DIALOG);
} }
else else
{ {
BOOL16 (CALLBACK * dofunction)(SEGPTR ofn16) = GetOpenFileName16; BOOL16 (CALLBACK * dofunction)(SEGPTR ofn16) = GetOpenFileName16;
return Commdlg_GetFileNameA(dofunction,ofn); return Commdlg_GetFileNameA(dofunction,ofn);
} }
} }
/*********************************************************************** /***********************************************************************
...@@ -1396,23 +1392,19 @@ BOOL WINAPI GetOpenFileNameA( ...@@ -1396,23 +1392,19 @@ BOOL WINAPI GetOpenFileNameA(
* TRUE on succes: user enters a valid file * TRUE on succes: user enters a valid file
* FALSE on cancel, error, close or filename-does-not-fit-in-buffer. * FALSE on cancel, error, close or filename-does-not-fit-in-buffer.
* *
* BUGS
* unknown, calls its 16-bit equivalent.
*/ */
BOOL WINAPI GetOpenFileNameW( BOOL WINAPI GetOpenFileNameW(
LPOPENFILENAMEW ofn /* address of init structure */ LPOPENFILENAMEW ofn) /* address of init structure */
)
{ {
if( (TWEAK_WineLook>WIN31_LOOK) && if(TWEAK_WineLook>WIN31_LOOK)
(!(ofn->Flags & (OFN_ENABLETEMPLATEHANDLE|OFN_ENABLETEMPLATE))))
{ {
return GetFileDialog95W(ofn, OPEN_DIALOG); return GetFileDialog95W(ofn, OPEN_DIALOG);
} }
else else
{ {
BOOL16 (CALLBACK * dofunction)(SEGPTR ofn16) = GetOpenFileName16; BOOL16 (CALLBACK * dofunction)(SEGPTR ofn16) = GetOpenFileName16;
return Commdlg_GetFileNameW(dofunction,ofn); return Commdlg_GetFileNameW(dofunction,ofn);
} }
} }
/*********************************************************************** /***********************************************************************
...@@ -1424,18 +1416,16 @@ BOOL WINAPI GetOpenFileNameW( ...@@ -1424,18 +1416,16 @@ BOOL WINAPI GetOpenFileNameW(
* TRUE on succes: user enters a valid file * TRUE on succes: user enters a valid file
* FALSE on cancel, error, close or filename-does-not-fit-in-buffer. * FALSE on cancel, error, close or filename-does-not-fit-in-buffer.
* *
* BUGS
* unknown, calls its 16-bit equivalent.
*/ */
BOOL WINAPI GetSaveFileNameA( BOOL WINAPI GetSaveFileNameA(
LPOPENFILENAMEA ofn /* address of init structure */ LPOPENFILENAMEA ofn) /* address of init structure */
)
{ {
if( (TWEAK_WineLook>WIN31_LOOK) && if(TWEAK_WineLook>WIN31_LOOK)
(!(ofn->Flags & (OFN_ENABLETEMPLATEHANDLE|OFN_ENABLETEMPLATE))))
{ {
return GetFileDialog95A(ofn, SAVE_DIALOG); return GetFileDialog95A(ofn, SAVE_DIALOG);
} else { }
else
{
BOOL16 (CALLBACK * dofunction)(SEGPTR ofn16) = GetSaveFileName16; BOOL16 (CALLBACK * dofunction)(SEGPTR ofn16) = GetSaveFileName16;
return Commdlg_GetFileNameA(dofunction,ofn); return Commdlg_GetFileNameA(dofunction,ofn);
} }
...@@ -1450,18 +1440,16 @@ BOOL WINAPI GetSaveFileNameA( ...@@ -1450,18 +1440,16 @@ BOOL WINAPI GetSaveFileNameA(
* TRUE on succes: user enters a valid file * TRUE on succes: user enters a valid file
* FALSE on cancel, error, close or filename-does-not-fit-in-buffer. * FALSE on cancel, error, close or filename-does-not-fit-in-buffer.
* *
* BUGS
* unknown, calls its 16-bit equivalent.
*/ */
BOOL WINAPI GetSaveFileNameW( BOOL WINAPI GetSaveFileNameW(
LPOPENFILENAMEW ofn /* address of init structure */ LPOPENFILENAMEW ofn) /* address of init structure */
)
{ {
if( (TWEAK_WineLook>WIN31_LOOK) && if( TWEAK_WineLook>WIN31_LOOK)
(!(ofn->Flags & (OFN_ENABLETEMPLATEHANDLE|OFN_ENABLETEMPLATE))))
{ {
return GetFileDialog95W(ofn, SAVE_DIALOG); return GetFileDialog95W(ofn, SAVE_DIALOG);
} else { }
else
{
BOOL16 (CALLBACK * dofunction)(SEGPTR ofn16) = GetSaveFileName16; BOOL16 (CALLBACK * dofunction)(SEGPTR ofn16) = GetSaveFileName16;
return Commdlg_GetFileNameW(dofunction,ofn); return Commdlg_GetFileNameW(dofunction,ofn);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment