winehq.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2025
February
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
January
2003
December
November
October
September
August
July
June
May
April
March
February
January
2002
December
November
October
September
August
July
June
May
April
March
February
January
2001
December
November
October
September
August
July
June
May
April
March
February
List overview
wine-commits
September 2010
----- 2025 -----
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
2 participants
852 discussions
Start a n
N
ew thread
Hans Leidekker : msi: Use more descriptive variable names for installer properties.
by Alexandre Julliard
27 Sep '10
27 Sep '10
Module: wine Branch: master Commit: fbf45bae049eaed1d6f53dc0c2e4bf31a1eab3b3 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=fbf45bae049eaed1d6f53dc0c…
Author: Hans Leidekker <hans(a)codeweavers.com> Date: Mon Sep 27 12:18:08 2010 +0200 msi: Use more descriptive variable names for installer properties. --- dlls/msi/package.c | 192 ++++++++++++++++++++++------------------------------ 1 files changed, 82 insertions(+), 110 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=fbf45bae049eaed1d6f53…
1
0
0
0
Hans Leidekker : propsys: Add a stub implementation of PSGetPropertyDescription.
by Alexandre Julliard
27 Sep '10
27 Sep '10
Module: wine Branch: master Commit: 01176ce7db45e2838b6d0711c7d2da98d0a135dc URL:
http://source.winehq.org/git/wine.git/?a=commit;h=01176ce7db45e2838b6d0711c…
Author: Hans Leidekker <hans(a)codeweavers.com> Date: Mon Sep 27 12:18:00 2010 +0200 propsys: Add a stub implementation of PSGetPropertyDescription. --- dlls/propsys/propsys.spec | 2 +- dlls/propsys/propsys_main.c | 6 ++++++ include/propsys.idl | 1 + 3 files changed, 8 insertions(+), 1 deletions(-) diff --git a/dlls/propsys/propsys.spec b/dlls/propsys/propsys.spec index 10a1cba..3e99b94 100644 --- a/dlls/propsys/propsys.spec +++ b/dlls/propsys/propsys.spec @@ -79,7 +79,7 @@ @ stub PSGetItemPropertyHandlerWithCreateObject @ stub PSGetNameFromPropertyKey @ stub PSGetNamedPropertyFromPropertyStorage -@ stub PSGetPropertyDescription +@ stdcall PSGetPropertyDescription(ptr ptr ptr) @ stub PSGetPropertyDescriptionByName @ stub PSGetPropertyDescriptionListFromString @ stub PSGetPropertyFromPropertyStorage diff --git a/dlls/propsys/propsys_main.c b/dlls/propsys/propsys_main.c index 6c46781..631c49e 100644 --- a/dlls/propsys/propsys_main.c +++ b/dlls/propsys/propsys_main.c @@ -66,6 +66,12 @@ HRESULT WINAPI PSUnregisterPropertySchema(PCWSTR path) return E_NOTIMPL; } +HRESULT WINAPI PSGetPropertyDescription(REFPROPERTYKEY propkey, REFIID riid, void **ppv) +{ + FIXME("%p, %p, %p\n", propkey, riid, ppv); + return E_NOTIMPL; +} + HRESULT WINAPI PSStringFromPropertyKey(REFPROPERTYKEY pkey, LPWSTR psz, UINT cch) { static const WCHAR guid_fmtW[] = {'{','%','0','8','X','-','%','0','4','X','-', diff --git a/include/propsys.idl b/include/propsys.idl index da401c5..ef9ecfc 100644 --- a/include/propsys.idl +++ b/include/propsys.idl @@ -801,6 +801,7 @@ cpp_quote("#define PKEYSTR_MAX (GUIDSTRING_MAX + 1 + PKEY_PIDSTR_MAX)") cpp_quote("HRESULT WINAPI PSStringFromPropertyKey(REFPROPERTYKEY,LPWSTR,UINT);") cpp_quote("HRESULT WINAPI PSPropertyKeyFromString(LPCWSTR,PROPERTYKEY*);") +cpp_quote("HRESULT WINAPI PSGetPropertyDescription(REFPROPERTYKEY,REFIID,void **);") /* TODO: Add remainder of the C api here */
1
0
0
0
Henri Verbeet : wined3d: Set initial stateblock state directly on a wined3d_state structure.
by Alexandre Julliard
27 Sep '10
27 Sep '10
Module: wine Branch: master Commit: 39886193fd7f60bf8a07e6ef2a5bafa0506550c2 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=39886193fd7f60bf8a07e6ef2…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Mon Sep 27 12:07:56 2010 +0200 wined3d: Set initial stateblock state directly on a wined3d_state structure. --- dlls/wined3d/stateblock.c | 355 ++++++++++++++++++++++----------------------- 1 files changed, 173 insertions(+), 182 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=39886193fd7f60bf8a07e…
1
0
0
0
Henri Verbeet : wined3d: Capture stateblock state from a wined3d_state structure.
by Alexandre Julliard
27 Sep '10
27 Sep '10
Module: wine Branch: master Commit: b9f4fdcc5135a2a6c53da6347d15c76fab3b19ef URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b9f4fdcc5135a2a6c53da6347…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Mon Sep 27 12:07:55 2010 +0200 wined3d: Capture stateblock state from a wined3d_state structure. --- dlls/wined3d/stateblock.c | 221 ++++++++++++++++++++++----------------------- 1 files changed, 106 insertions(+), 115 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=b9f4fdcc5135a2a6c53da…
1
0
0
0
Henri Verbeet : wined3d: Pass a wined3d_state structure to apply_lights().
by Alexandre Julliard
27 Sep '10
27 Sep '10
Module: wine Branch: master Commit: 9f75633a4f662506d2c46481db56fd85d0a78536 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=9f75633a4f662506d2c46481d…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Mon Sep 27 12:07:54 2010 +0200 wined3d: Pass a wined3d_state structure to apply_lights(). --- dlls/wined3d/stateblock.c | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/dlls/wined3d/stateblock.c b/dlls/wined3d/stateblock.c index 7e1cfe1..3716ace 100644 --- a/dlls/wined3d/stateblock.c +++ b/dlls/wined3d/stateblock.c @@ -895,13 +895,15 @@ static HRESULT WINAPI IWineD3DStateBlockImpl_Capture(IWineD3DStateBlock *iface) return WINED3D_OK; } -static void apply_lights(IWineD3DDevice *device, const IWineD3DStateBlockImpl *This) +static void apply_lights(IWineD3DDevice *device, const struct wined3d_state *state) { UINT i; - for(i = 0; i < LIGHTMAP_SIZE; i++) { + + for (i = 0; i < LIGHTMAP_SIZE; ++i) + { struct list *e; - LIST_FOR_EACH(e, &This->state.light_map[i]) + LIST_FOR_EACH(e, &state->light_map[i]) { const struct wined3d_light_info *light = LIST_ENTRY(e, struct wined3d_light_info, entry); @@ -942,7 +944,7 @@ static HRESULT WINAPI IWineD3DStateBlockImpl_Apply(IWineD3DStateBlock *iface) This->state.vs_consts_b + This->contained_vs_consts_b[i], 1); } - apply_lights(device, This); + apply_lights(device, &This->state); if (This->changed.pixelShader) IWineD3DDevice_SetPixelShader(device, (IWineD3DPixelShader *)This->state.pixel_shader);
1
0
0
0
Henri Verbeet : wined3d: Pass a wined3d_state structure to record_lights().
by Alexandre Julliard
27 Sep '10
27 Sep '10
Module: wine Branch: master Commit: 8b54093bbc1cda8e31aa848642af351629064723 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=8b54093bbc1cda8e31aa84864…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Mon Sep 27 12:07:53 2010 +0200 wined3d: Pass a wined3d_state structure to record_lights(). --- dlls/wined3d/stateblock.c | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-) diff --git a/dlls/wined3d/stateblock.c b/dlls/wined3d/stateblock.c index 2523bcb..7e1cfe1 100644 --- a/dlls/wined3d/stateblock.c +++ b/dlls/wined3d/stateblock.c @@ -540,14 +540,15 @@ static ULONG WINAPI IWineD3DStateBlockImpl_Release(IWineD3DStateBlock *iface) { /********************************************************** * IWineD3DStateBlockImpl parts follows **********************************************************/ -static void record_lights(IWineD3DStateBlockImpl *This, const IWineD3DStateBlockImpl *targetStateBlock) +static void record_lights(IWineD3DStateBlockImpl *This, const struct wined3d_state *state) { UINT i; /* Lights... For a recorded state block, we just had a chain of actions to perform, * so we need to walk that chain and update any actions which differ */ - for(i = 0; i < LIGHTMAP_SIZE; i++) { + for (i = 0; i < LIGHTMAP_SIZE; ++i) + { struct list *e, *f; LIST_FOR_EACH(e, &This->state.light_map[i]) { @@ -555,7 +556,7 @@ static void record_lights(IWineD3DStateBlockImpl *This, const IWineD3DStateBlock struct wined3d_light_info *src = LIST_ENTRY(e, struct wined3d_light_info, entry), *realLight; /* Look up the light in the destination */ - LIST_FOR_EACH(f, &targetStateBlock->state.light_map[i]) + LIST_FOR_EACH(f, &state->light_map[i]) { realLight = LIST_ENTRY(f, struct wined3d_light_info, entry); if (realLight->OriginalIndex == src->OriginalIndex) @@ -582,8 +583,8 @@ static void record_lights(IWineD3DStateBlockImpl *This, const IWineD3DStateBlock { /* This can happen if the light was originally created as a * default light for SetLightEnable() while recording. */ - WARN("Light %u in stateblock %p does not exist in device stateblock %p.\n", - src->OriginalIndex, This, targetStateBlock); + WARN("Light %u in stateblock %p does not exist in device state %p.\n", + src->OriginalIndex, This, state); src->OriginalParms = WINED3D_default_light; if (src->glIndex != -1) @@ -887,7 +888,7 @@ static HRESULT WINAPI IWineD3DStateBlockImpl_Capture(IWineD3DStateBlock *iface) This->state.pixel_shader = targetStateBlock->state.pixel_shader; } - record_lights(This, targetStateBlock); + record_lights(This, &targetStateBlock->state); TRACE("(%p) : Updated state block %p ------------------^\n", targetStateBlock, This);
1
0
0
0
Piotr Caban : oleaut32: Set dialog size in dialog box units in OleCreatePropertyFrame.
by Alexandre Julliard
27 Sep '10
27 Sep '10
Module: wine Branch: master Commit: f4ef2d6e027a90f3209adc991d97230266eb7dec URL:
http://source.winehq.org/git/wine.git/?a=commit;h=f4ef2d6e027a90f3209adc991…
Author: Piotr Caban <piotr(a)codeweavers.com> Date: Mon Sep 27 12:03:08 2010 +0200 oleaut32: Set dialog size in dialog box units in OleCreatePropertyFrame. --- dlls/oleaut32/olepropframe.c | 55 ++++++++++++++++++++++++++++++++++++++++- 1 files changed, 53 insertions(+), 2 deletions(-) diff --git a/dlls/oleaut32/olepropframe.c b/dlls/oleaut32/olepropframe.c index 1a82290..7acf4e9 100644 --- a/dlls/oleaut32/olepropframe.c +++ b/dlls/oleaut32/olepropframe.c @@ -150,6 +150,8 @@ IPropertyPageSiteVtbl PropertyPageSiteVtbl = { */ HRESULT WINAPI OleCreatePropertyFrameIndirect(LPOCPFIPARAMS lpParams) { + static const WCHAR comctlW[] = { 'c','o','m','c','t','l','3','2','.','d','l','l',0 }; + PROPSHEETHEADERW property_sheet; PROPSHEETPAGEW property_sheet_page; struct { @@ -162,6 +164,14 @@ HRESULT WINAPI OleCreatePropertyFrameIndirect(LPOCPFIPARAMS lpParams) IPropertyPageSite *property_page_site; HRESULT res; int i; + HMODULE hcomctl; + HRSRC property_sheet_dialog_find = NULL; + HGLOBAL property_sheet_dialog_load = NULL; + WCHAR *property_sheet_dialog_data = NULL; + HDC hdc; + LOGFONTW font_desc; + HFONT hfont; + LONG font_width = 4, font_height = 8; if(!lpParams) return E_POINTER; @@ -183,6 +193,47 @@ HRESULT WINAPI OleCreatePropertyFrameIndirect(LPOCPFIPARAMS lpParams) if(lpParams->dispidInitialProperty) FIXME("dispidInitialProperty not yet implemented\n"); + hdc = GetDC(NULL); + hcomctl = LoadLibraryW(comctlW); + if(hcomctl) + property_sheet_dialog_find = FindResourceW(hcomctl, + MAKEINTRESOURCEW(1006 /*IDD_PROPSHEET*/), (LPWSTR)RT_DIALOG); + if(property_sheet_dialog_find) + property_sheet_dialog_load = LoadResource(hcomctl, property_sheet_dialog_find); + if(property_sheet_dialog_load) + property_sheet_dialog_data = LockResource(property_sheet_dialog_load); + + if(property_sheet_dialog_data) { + if(property_sheet_dialog_data[1] == 0xffff) { + ERR("Expected DLGTEMPLATE structure\n"); + return E_OUTOFMEMORY; + } + + property_sheet_dialog_data += sizeof(DLGTEMPLATE)/sizeof(WCHAR); + /* Skip menu, class and title */ + property_sheet_dialog_data += lstrlenW(property_sheet_dialog_data)+1; + property_sheet_dialog_data += lstrlenW(property_sheet_dialog_data)+1; + property_sheet_dialog_data += lstrlenW(property_sheet_dialog_data)+1; + + memset(&font_desc, 0, sizeof(LOGFONTW)); + /* Calculate logical height */ + font_desc.lfHeight = -MulDiv(property_sheet_dialog_data[0], + GetDeviceCaps(hdc, LOGPIXELSY), 72); + font_desc.lfCharSet = DEFAULT_CHARSET; + memcpy(font_desc.lfFaceName, property_sheet_dialog_data+1, + sizeof(WCHAR*)*(lstrlenW(property_sheet_dialog_data+1)+1)); + hfont = CreateFontIndirectW(&font_desc); + + if(hfont) { + hfont = SelectObject(hdc, hfont); + font_width = GdiGetCharDimensions(hdc, NULL, &font_height); + SelectObject(hdc, hfont); + } + } + if(hcomctl) + FreeLibrary(hcomctl); + ReleaseDC(NULL, hdc); + memset(&property_sheet, 0, sizeof(property_sheet)); property_sheet.dwSize = sizeof(property_sheet); if(lpParams->lpszCaption) { @@ -237,8 +288,8 @@ HRESULT WINAPI OleCreatePropertyFrameIndirect(LPOCPFIPARAMS lpParams) if(FAILED(res)) continue; - dialogs[i].template.cx = page_info.size.cx; - dialogs[i].template.cy = page_info.size.cy; + dialogs[i].template.cx = MulDiv(page_info.size.cx, 4, font_width); + dialogs[i].template.cy = MulDiv(page_info.size.cy, 8, font_height); property_sheet_page.u.pResource = &dialogs[i].template; property_sheet_page.lParam = (LPARAM)property_page[i];
1
0
0
0
Piotr Caban : oleaut32: Added OleCreatePropertyFrameIndirect implementation .
by Alexandre Julliard
27 Sep '10
27 Sep '10
Module: wine Branch: master Commit: 9ccbadc9a84251a0e58fe8a51143f6ef89909fd0 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=9ccbadc9a84251a0e58fe8a51…
Author: Piotr Caban <piotr(a)codeweavers.com> Date: Mon Sep 27 12:02:58 2010 +0200 oleaut32: Added OleCreatePropertyFrameIndirect implementation. Based on patch written by Geoffrey Hausheer. --- dlls/oleaut32/olepropframe.c | 232 +++++++++++++++++++++++++++++++++++++++++- 1 files changed, 229 insertions(+), 3 deletions(-) diff --git a/dlls/oleaut32/olepropframe.c b/dlls/oleaut32/olepropframe.c index 23bd9e0..1a82290 100644 --- a/dlls/oleaut32/olepropframe.c +++ b/dlls/oleaut32/olepropframe.c @@ -2,6 +2,7 @@ * Copyright 1999 Corel Corporation * Sean Langley * Copyright 2010 Geoffrey Hausheer + * Copyright 2010 Piotr Caban for Codeweavers * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -20,20 +21,245 @@ #include <stdarg.h> +#define COBJMACROS +#define NONAMELESSUNION +#define NONAMELESSSTRUCT + #include "windef.h" #include "winbase.h" -#include "wine/debug.h" +#include "wingdi.h" #include "ole2.h" #include "olectl.h" +#include "oledlg.h" +#include "wine/debug.h" WINE_DEFAULT_DEBUG_CHANNEL(ole); +typedef struct { + const IPropertyPageSiteVtbl *lpVtbl; + LCID lcid; + LONG ref; +} PropertyPageSite; + +static INT_PTR CALLBACK property_sheet_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) +{ + IPropertyPage *property_page = (IPropertyPage*)GetWindowLongPtrW(hwnd, DWLP_USER); + + switch(msg) { + case WM_INITDIALOG: { + RECT rect; + + property_page = (IPropertyPage*)((LPPROPSHEETPAGEW)lparam)->lParam; + + GetClientRect(hwnd, &rect); + IPropertyPage_Activate(property_page, hwnd, &rect, TRUE); + IPropertyPage_Show(property_page, SW_SHOW); + + SetWindowLongPtrW(hwnd, DWLP_USER, (LONG)property_page); + return FALSE; + } + case WM_DESTROY: + IPropertyPage_Show(property_page, SW_HIDE); + IPropertyPage_Deactivate(property_page); + return FALSE; + default: + return FALSE; + } +} + +static HRESULT WINAPI PropertyPageSite_QueryInterface(IPropertyPageSite* iface, + REFIID riid, void** ppv) +{ + TRACE("(%p riid: %s)\n",iface, debugstr_guid(riid)); + + if(IsEqualGUID(&IID_IUnknown, riid) + || IsEqualGUID(&IID_IPropertyPageSite, riid)) + *ppv = iface; + else { + *ppv = NULL; + return E_NOINTERFACE; + } + + IUnknown_AddRef((IUnknown*)*ppv); + return S_OK; +} + +static ULONG WINAPI PropertyPageSite_AddRef(IPropertyPageSite* iface) +{ + PropertyPageSite *this = (PropertyPageSite*)iface; + LONG ref = InterlockedIncrement(&this->ref); + + TRACE("(%p) ref=%d\n", this, ref); + return ref; +} + +static ULONG WINAPI PropertyPageSite_Release(IPropertyPageSite* iface) +{ + PropertyPageSite *this = (PropertyPageSite *)iface; + LONG ref = InterlockedDecrement(&this->ref); + + TRACE("(%p) ref=%d\n", this, ref); + if(!ref) + HeapFree(GetProcessHeap(), 0, this); + return ref; +} + +static HRESULT WINAPI PropertyPageSite_OnStatusChange( + IPropertyPageSite *iface, DWORD dwFlags) +{ + TRACE("(%p, %x)\n", iface, dwFlags); + return S_OK; +} + +static HRESULT WINAPI PropertyPageSite_GetLocaleID( + IPropertyPageSite *iface, LCID *pLocaleID) +{ + PropertyPageSite *this = (PropertyPageSite *)iface; + + TRACE("(%p, %p)\n", iface, pLocaleID); + *pLocaleID = this->lcid; + return S_OK; +} + +static HRESULT WINAPI PropertyPageSite_GetPageContainer( + IPropertyPageSite* iface, IUnknown** ppUnk) +{ + FIXME("(%p, %p)\n", iface, ppUnk); + return E_NOTIMPL; +} + +static HRESULT WINAPI PropertyPageSite_TranslateAccelerator( + IPropertyPageSite* iface, MSG *pMsg) +{ + FIXME("(%p, %p)\n", iface, pMsg); + return E_NOTIMPL; +} + +IPropertyPageSiteVtbl PropertyPageSiteVtbl = { + PropertyPageSite_QueryInterface, + PropertyPageSite_AddRef, + PropertyPageSite_Release, + PropertyPageSite_OnStatusChange, + PropertyPageSite_GetLocaleID, + PropertyPageSite_GetPageContainer, + PropertyPageSite_TranslateAccelerator +}; + /*********************************************************************** * OleCreatePropertyFrameIndirect (OLEAUT32.416) */ HRESULT WINAPI OleCreatePropertyFrameIndirect(LPOCPFIPARAMS lpParams) { - FIXME("(%p), not implemented (olepro32.dll)\n", lpParams); + PROPSHEETHEADERW property_sheet; + PROPSHEETPAGEW property_sheet_page; + struct { + DLGTEMPLATE template; + WORD menu; + WORD class; + WORD title; + } *dialogs; + IPropertyPage **property_page; + IPropertyPageSite *property_page_site; + HRESULT res; + int i; + + if(!lpParams) + return E_POINTER; + + TRACE("(%d %p %d %d %s %d %p %d %p %d %d)\n", lpParams->cbStructSize, + lpParams->hWndOwner, lpParams->x, lpParams->y, + debugstr_w(lpParams->lpszCaption), lpParams->cObjects, + lpParams->lplpUnk, lpParams->cPages, lpParams->lpPages, + lpParams->lcid, lpParams->dispidInitialProperty); + + if(!lpParams->lplpUnk || !lpParams->lpPages) + return E_POINTER; + + if(lpParams->cbStructSize != sizeof(OCPFIPARAMS)) { + WARN("incorrect structure size\n"); + return E_INVALIDARG; + } + + if(lpParams->dispidInitialProperty) + FIXME("dispidInitialProperty not yet implemented\n"); + + memset(&property_sheet, 0, sizeof(property_sheet)); + property_sheet.dwSize = sizeof(property_sheet); + if(lpParams->lpszCaption) { + property_sheet.dwFlags = PSH_PROPTITLE; + property_sheet.pszCaption = lpParams->lpszCaption; + } + + property_sheet.u3.phpage = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, + lpParams->cPages*sizeof(HPROPSHEETPAGE)); + property_page = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, + lpParams->cPages*sizeof(IPropertyPage*)); + dialogs = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, + lpParams->cPages*sizeof(*dialogs)); + if(!property_sheet.u3.phpage || !property_page || !dialogs) { + HeapFree(GetProcessHeap(), 0, property_sheet.u3.phpage); + HeapFree(GetProcessHeap(), 0, property_page); + HeapFree(GetProcessHeap(), 0, dialogs); + return E_OUTOFMEMORY; + } + + memset(&property_sheet_page, 0, sizeof(PROPSHEETPAGEW)); + property_sheet_page.dwSize = sizeof(PROPSHEETPAGEW); + property_sheet_page.dwFlags = PSP_DLGINDIRECT|PSP_USETITLE; + property_sheet_page.pfnDlgProc = property_sheet_proc; + + for(i=0; i<lpParams->cPages; i++) { + PROPPAGEINFO page_info; + + res = CoCreateInstance(&lpParams->lpPages[i], NULL, CLSCTX_INPROC_SERVER, + &IID_IPropertyPage, (void**)&property_page[i]); + if(FAILED(res)) + continue; + + property_page_site = HeapAlloc(GetProcessHeap(), 0, sizeof(PropertyPageSite)); + if(!property_page_site) + continue; + ((PropertyPageSite*)property_page_site)->lpVtbl = &PropertyPageSiteVtbl; + ((PropertyPageSite*)property_page_site)->ref = 1; + ((PropertyPageSite*)property_page_site)->lcid = lpParams->lcid; + + res = IPropertyPage_SetPageSite(property_page[i], property_page_site); + IPropertyPageSite_Release(property_page_site); + if(FAILED(res)) + continue; + + res = IPropertyPage_SetObjects(property_page[i], + lpParams->cObjects, lpParams->lplpUnk); + if(FAILED(res)) + continue; + + res = IPropertyPage_GetPageInfo(property_page[i], &page_info); + if(FAILED(res)) + continue; + + dialogs[i].template.cx = page_info.size.cx; + dialogs[i].template.cy = page_info.size.cy; + + property_sheet_page.u.pResource = &dialogs[i].template; + property_sheet_page.lParam = (LPARAM)property_page[i]; + property_sheet_page.pszTitle = page_info.pszTitle; + + property_sheet.u3.phpage[property_sheet.nPages++] = + CreatePropertySheetPageW(&property_sheet_page); + } + + PropertySheetW(&property_sheet); + + for(i=0; i<lpParams->cPages; i++) { + if(property_page[i]) { + IPropertyPage_SetPageSite(property_page[i], NULL); + IPropertyPage_Release(property_page[i]); + } + } + + HeapFree(GetProcessHeap(), 0, dialogs); + HeapFree(GetProcessHeap(), 0, property_page); + HeapFree(GetProcessHeap(), 0, property_sheet.u3.phpage); return S_OK; } @@ -41,7 +267,7 @@ HRESULT WINAPI OleCreatePropertyFrameIndirect(LPOCPFIPARAMS lpParams) * OleCreatePropertyFrame (OLEAUT32.417) */ HRESULT WINAPI OleCreatePropertyFrame( - HWND hwndOwner, UINT x, UINT y, LPCOLESTR lpszCaption,ULONG cObjects, + HWND hwndOwner, UINT x, UINT y, LPCOLESTR lpszCaption, ULONG cObjects, LPUNKNOWN* ppUnk, ULONG cPages, LPCLSID pPageClsID, LCID lcid, DWORD dwReserved, LPVOID pvReserved) {
1
0
0
0
Piotr Caban : oleaut32: Execute OleCreatePropertyFrameIndirect in OleCreatePropertyFrame.
by Alexandre Julliard
27 Sep '10
27 Sep '10
Module: wine Branch: master Commit: 9c9baf4da1de9146d4941f9a2b9712bab4e2eeae URL:
http://source.winehq.org/git/wine.git/?a=commit;h=9c9baf4da1de9146d4941f9a2…
Author: Piotr Caban <piotr(a)codeweavers.com> Date: Mon Sep 27 12:02:48 2010 +0200 oleaut32: Execute OleCreatePropertyFrameIndirect in OleCreatePropertyFrame. Based on patch written by Geoffrey Hausheer. --- dlls/oleaut32/olepropframe.c | 20 ++++++++++++++++---- 1 files changed, 16 insertions(+), 4 deletions(-) diff --git a/dlls/oleaut32/olepropframe.c b/dlls/oleaut32/olepropframe.c index b3e27d2..23bd9e0 100644 --- a/dlls/oleaut32/olepropframe.c +++ b/dlls/oleaut32/olepropframe.c @@ -1,6 +1,7 @@ /* * Copyright 1999 Corel Corporation * Sean Langley + * Copyright 2010 Geoffrey Hausheer * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -44,8 +45,19 @@ HRESULT WINAPI OleCreatePropertyFrame( LPUNKNOWN* ppUnk, ULONG cPages, LPCLSID pPageClsID, LCID lcid, DWORD dwReserved, LPVOID pvReserved) { - FIXME("(%p,%d,%d,%s,%d,%p,%d,%p,%x,%d,%p), not implemented (olepro32.dll)\n", - hwndOwner, x, y, debugstr_w(lpszCaption), cObjects, ppUnk, cPages, - pPageClsID, (int)lcid, dwReserved, pvReserved); - return S_OK; + OCPFIPARAMS ocpf; + + ocpf.cbStructSize = sizeof(OCPFIPARAMS); + ocpf.hWndOwner = hwndOwner; + ocpf.x = x; + ocpf.y = y; + ocpf.lpszCaption = lpszCaption; + ocpf.cObjects = cObjects; + ocpf.lplpUnk = ppUnk; + ocpf.cPages = cPages; + ocpf.lpPages = pPageClsID; + ocpf.lcid = lcid; + ocpf.dispidInitialProperty = 0; + + return OleCreatePropertyFrameIndirect(&ocpf); }
1
0
0
0
Piotr Caban : oleaut32: Rename stubs.c file.
by Alexandre Julliard
27 Sep '10
27 Sep '10
Module: wine Branch: master Commit: b32c3102d2b45f8d0b18ac8692706304563aa12d URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b32c3102d2b45f8d0b18ac869…
Author: Piotr Caban <piotr(a)codeweavers.com> Date: Mon Sep 27 12:00:19 2010 +0200 oleaut32: Rename stubs.c file. --- dlls/oleaut32/Makefile.in | 2 +- dlls/oleaut32/{stubs.c => olepropframe.c} | 25 ++++++++++--------------- 2 files changed, 11 insertions(+), 16 deletions(-) diff --git a/dlls/oleaut32/Makefile.in b/dlls/oleaut32/Makefile.in index ec23bd2..bf84c80 100644 --- a/dlls/oleaut32/Makefile.in +++ b/dlls/oleaut32/Makefile.in @@ -13,10 +13,10 @@ C_SRCS = \ oleaut.c \ olefont.c \ olepicture.c \ + olepropframe.c \ recinfo.c \ regsvr.c \ safearray.c \ - stubs.c \ tmarshal.c \ typelib.c \ typelib2.c \ diff --git a/dlls/oleaut32/stubs.c b/dlls/oleaut32/olepropframe.c similarity index 67% rename from dlls/oleaut32/stubs.c rename to dlls/oleaut32/olepropframe.c index d87e76e..b3e27d2 100644 --- a/dlls/oleaut32/stubs.c +++ b/dlls/oleaut32/olepropframe.c @@ -1,8 +1,5 @@ /* - * OlePro32 Stubs - * * Copyright 1999 Corel Corporation - * * Sean Langley * * This library is free software; you can redistribute it and/or @@ -24,8 +21,6 @@ #include "windef.h" #include "winbase.h" -#include "wingdi.h" -#include "winuser.h" #include "wine/debug.h" #include "ole2.h" #include "olectl.h" @@ -35,22 +30,22 @@ WINE_DEFAULT_DEBUG_CHANNEL(ole); /*********************************************************************** * OleCreatePropertyFrameIndirect (OLEAUT32.416) */ -HRESULT WINAPI OleCreatePropertyFrameIndirect( LPOCPFIPARAMS lpParams) +HRESULT WINAPI OleCreatePropertyFrameIndirect(LPOCPFIPARAMS lpParams) { - FIXME("(%p), not implemented (olepro32.dll)\n",lpParams); - return S_OK; + FIXME("(%p), not implemented (olepro32.dll)\n", lpParams); + return S_OK; } /*********************************************************************** * OleCreatePropertyFrame (OLEAUT32.417) */ HRESULT WINAPI OleCreatePropertyFrame( - HWND hwndOwner, UINT x, UINT y, LPCOLESTR lpszCaption,ULONG cObjects, - LPUNKNOWN* ppUnk, ULONG cPages, LPCLSID pPageClsID, LCID lcid, - DWORD dwReserved, LPVOID pvReserved ) + HWND hwndOwner, UINT x, UINT y, LPCOLESTR lpszCaption,ULONG cObjects, + LPUNKNOWN* ppUnk, ULONG cPages, LPCLSID pPageClsID, LCID lcid, + DWORD dwReserved, LPVOID pvReserved) { - FIXME("(%p,%d,%d,%s,%d,%p,%d,%p,%x,%d,%p), not implemented (olepro32.dll)\n", - hwndOwner,x,y,debugstr_w(lpszCaption),cObjects,ppUnk,cPages, - pPageClsID, (int)lcid,dwReserved,pvReserved); - return S_OK; + FIXME("(%p,%d,%d,%s,%d,%p,%d,%p,%x,%d,%p), not implemented (olepro32.dll)\n", + hwndOwner, x, y, debugstr_w(lpszCaption), cObjects, ppUnk, cPages, + pPageClsID, (int)lcid, dwReserved, pvReserved); + return S_OK; }
1
0
0
0
← Newer
1
...
14
15
16
17
18
19
20
...
86
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
Results per page:
10
25
50
100
200