Eric Pouech : msacm32: In acmFormatChoose, added support for template.

Alexandre Julliard julliard at winehq.org
Thu Aug 16 15:26:13 CDT 2012


Module: wine
Branch: master
Commit: 3d845b1242f5aa823c1be59811aeb537a26eea6e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=3d845b1242f5aa823c1be59811aeb537a26eea6e

Author: Eric Pouech <eric.pouech at orange.fr>
Date:   Sun Aug 12 10:03:46 2012 +0200

msacm32: In acmFormatChoose, added support for template.

---

 dlls/msacm32/format.c |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/dlls/msacm32/format.c b/dlls/msacm32/format.c
index c81b5dc..963daf7 100644
--- a/dlls/msacm32/format.c
+++ b/dlls/msacm32/format.c
@@ -210,7 +210,9 @@ static INT_PTR CALLBACK FormatChooseDlgProc(HWND hWnd, UINT msg,
 	MSACM_FillFormatTags(hWnd);
 	MSACM_FillFormat(hWnd);
 	if ((afc->fdwStyle & ~(ACMFORMATCHOOSE_STYLEF_CONTEXTHELP|
-			       ACMFORMATCHOOSE_STYLEF_SHOWHELP)) != 0)
+			       ACMFORMATCHOOSE_STYLEF_SHOWHELP|
+                               ACMFORMATCHOOSE_STYLEF_ENABLETEMPLATEHANDLE|
+                               ACMFORMATCHOOSE_STYLEF_ENABLETEMPLATE)) != 0)
             FIXME("Unsupported style %08x\n", afc->fdwStyle);
 	if (!(afc->fdwStyle & ACMFORMATCHOOSE_STYLEF_SHOWHELP))
 	    ShowWindow(GetDlgItem(hWnd, IDD_ACMFORMATCHOOSE_BTN_HELP), SW_HIDE);
@@ -352,6 +354,14 @@ done:
  */
 MMRESULT WINAPI acmFormatChooseW(PACMFORMATCHOOSEW pafmtc)
 {
+    if (pafmtc->fdwStyle & ACMFORMATCHOOSE_STYLEF_ENABLETEMPLATEHANDLE)
+        return DialogBoxIndirectParamW(MSACM_hInstance32, (LPCDLGTEMPLATEW)pafmtc->hInstance,
+                                       pafmtc->hwndOwner, FormatChooseDlgProc, (LPARAM)pafmtc);
+
+    if (pafmtc->fdwStyle & ACMFORMATCHOOSE_STYLEF_ENABLETEMPLATE)
+        return DialogBoxParamW(pafmtc->hInstance, pafmtc->pszTemplateName,
+                               pafmtc->hwndOwner, FormatChooseDlgProc, (LPARAM)pafmtc);
+
     return DialogBoxParamW(MSACM_hInstance32, MAKEINTRESOURCEW(DLG_ACMFORMATCHOOSE_ID),
                            pafmtc->hwndOwner, FormatChooseDlgProc, (LPARAM)pafmtc);
 }




More information about the wine-cvs mailing list