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
March 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
3 participants
919 discussions
Start a n
N
ew thread
Alexandre Julliard : winetest: Refuse to run if we cannot create a window.
by Alexandre Julliard
05 Mar '10
05 Mar '10
Module: wine Branch: master Commit: f47bcc22fcfc2bbc16f3f41886a55c2c9d4a9716 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=f47bcc22fcfc2bbc16f3f4188…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Mar 5 13:10:16 2010 +0100 winetest: Refuse to run if we cannot create a window. --- programs/winetest/gui.c | 2 +- programs/winetest/main.c | 17 ++++++++++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/programs/winetest/gui.c b/programs/winetest/gui.c index 7a7b1e0..f13cc18 100644 --- a/programs/winetest/gui.c +++ b/programs/winetest/gui.c @@ -473,7 +473,7 @@ DlgThreadProc (LPVOID param) NULL, DlgProc); switch (ret) { case 0: - report (R_WARNING, "Invalid parent handle"); + report (R_FATAL, "Cannot display dialog"); break; case 1: report (R_WARNING, "DialogBox failed: %d", diff --git a/programs/winetest/main.c b/programs/winetest/main.c index e0b9ced..3eabf5f 100644 --- a/programs/winetest/main.c +++ b/programs/winetest/main.c @@ -145,6 +145,18 @@ static int check_mount_mgr(void) return TRUE; } +static int check_display_driver(void) +{ + if (running_under_wine()) + { + HWND hwnd = CreateWindowA( "STATIC", "", WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, + 0, 0, GetModuleHandleA(0), 0 ); + if (!hwnd) return FALSE; + DestroyWindow( hwnd ); + } + return TRUE; +} + static int running_on_visible_desktop (void) { HWND desktop; @@ -1052,7 +1064,10 @@ int main( int argc, char *argv[] ) report (R_FATAL, "Tests must be run on a visible desktop"); if (!check_mount_mgr()) - report (R_FATAL, "Mount manager not running, most likely your WINEPREFIX wasn't created correctly"); + report (R_FATAL, "Mount manager not running, most likely your WINEPREFIX wasn't created correctly."); + + if (!check_display_driver()) + report (R_FATAL, "Unable to create a window, the display driver is not working."); SetConsoleCtrlHandler(ctrl_handler, TRUE);
1
0
0
0
Paul Andrew Panon : wined3d: Update to add Mesa ATI card detection code.
by Alexandre Julliard
05 Mar '10
05 Mar '10
Module: wine Branch: master Commit: 482fbe91e2860c2d3ca5062f30949af9ab72b142 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=482fbe91e2860c2d3ca5062f3…
Author: Paul Andrew Panon <ppanon(a)shaw.ca> Date: Fri Mar 5 02:30:04 2010 -0800 wined3d: Update to add Mesa ATI card detection code. --- dlls/wined3d/directx.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c index b3f0c20..abed2b6 100644 --- a/dlls/wined3d/directx.c +++ b/dlls/wined3d/directx.c @@ -1160,6 +1160,7 @@ static enum wined3d_pci_vendor wined3d_guess_card_vendor(const char *gl_vendor_s if (strstr(gl_vendor_string, "ATI") || strstr(gl_vendor_string, "Advanced Micro Devices, Inc.") + || strstr(gl_vendor_string, "X.Org R300 Project") || strstr(gl_vendor_string, "DRI R300 Project")) return HW_VENDOR_ATI;
1
0
0
0
Paul Vriens : shlwapi/tests: Fix some test failures on Win9x/WinMe.
by Alexandre Julliard
05 Mar '10
05 Mar '10
Module: wine Branch: master Commit: fc47c7d1d7e2ef768304d2be5531f623be79e5ae URL:
http://source.winehq.org/git/wine.git/?a=commit;h=fc47c7d1d7e2ef768304d2be5…
Author: Paul Vriens <Paul.Vriens.Wine(a)gmail.com> Date: Fri Mar 5 11:45:40 2010 +0100 shlwapi/tests: Fix some test failures on Win9x/WinMe. --- dlls/shlwapi/tests/ordinal.c | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/dlls/shlwapi/tests/ordinal.c b/dlls/shlwapi/tests/ordinal.c index 17201b5..83aec78 100644 --- a/dlls/shlwapi/tests/ordinal.c +++ b/dlls/shlwapi/tests/ordinal.c @@ -1435,8 +1435,9 @@ static void test_SHSetWindowBits(void) SetLastError(0xdeadbeef); style = pSHSetWindowBits(NULL, GWL_STYLE, 0, 0); ok(style == 0, "expected 0 retval, got %d\n", style); - ok(GetLastError() == ERROR_INVALID_WINDOW_HANDLE, - "expected ERROR_INVALID_WINDOW_HANDLE, got %d\n", GetLastError()); + ok(GetLastError() == ERROR_INVALID_WINDOW_HANDLE || + broken(GetLastError() == 0xdeadbeef), /* Win9x/WinMe */ + "expected ERROR_INVALID_WINDOW_HANDLE, got %d\n", GetLastError()); /* zero mask, zero flags */ styleold = GetWindowLongA(hwnd, GWL_STYLE); @@ -1532,7 +1533,9 @@ if (0) SetLastError(0xdeadbeef); ret = pSHFormatDateTimeA(&filetime, &flags, buff, sizeof(buff)); ok(ret == lstrlenA(buff)+1, "got %d\n", ret); - ok(GetLastError() == 0xdeadbeef, "expected 0xdeadbeef, got %d\n", GetLastError()); + ok(GetLastError() == 0xdeadbeef || + broken(GetLastError() == ERROR_INVALID_FLAGS), /* Win9x/WinMe */ + "expected 0xdeadbeef, got %d\n", GetLastError()); /* now check returned strings */ flags = FDTF_SHORTTIME; @@ -1682,7 +1685,9 @@ if (0) SetLastError(0xdeadbeef); ret = pSHFormatDateTimeW(&filetime, &flags, buff, sizeof(buff)/sizeof(WCHAR)); ok(ret == lstrlenW(buff)+1, "got %d\n", ret); - ok(GetLastError() == 0xdeadbeef, "expected 0xdeadbeef, got %d\n", GetLastError()); + ok(GetLastError() == 0xdeadbeef || + broken(GetLastError() == ERROR_INVALID_FLAGS), /* Win9x/WinMe */ + "expected 0xdeadbeef, got %d\n", GetLastError()); /* now check returned strings */ flags = FDTF_SHORTTIME;
1
0
0
0
Paul Vriens : shlwapi/tests: Skip some tests on Win9x/WinMe.
by Alexandre Julliard
05 Mar '10
05 Mar '10
Module: wine Branch: master Commit: e271ac6f26e0047537c27cde1bbb59120d4a413c URL:
http://source.winehq.org/git/wine.git/?a=commit;h=e271ac6f26e0047537c27cde1…
Author: Paul Vriens <Paul.Vriens.Wine(a)gmail.com> Date: Fri Mar 5 11:35:12 2010 +0100 shlwapi/tests: Skip some tests on Win9x/WinMe. --- dlls/shlwapi/tests/ordinal.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/dlls/shlwapi/tests/ordinal.c b/dlls/shlwapi/tests/ordinal.c index dd046aa..17201b5 100644 --- a/dlls/shlwapi/tests/ordinal.c +++ b/dlls/shlwapi/tests/ordinal.c @@ -1688,7 +1688,13 @@ if (0) flags = FDTF_SHORTTIME; ret = pSHFormatDateTimeW(&filetime, &flags, buff, sizeof(buff)/sizeof(WCHAR)); ok(ret == lstrlenW(buff)+1, "got %d\n", ret); + SetLastError(0xdeadbeef); ret = GetTimeFormatW(LOCALE_USER_DEFAULT, TIME_NOSECONDS, &st, NULL, buff2, sizeof(buff2)/sizeof(WCHAR)); + if (ret == 0 && GetLastError() == ERROR_CALL_NOT_IMPLEMENTED) + { + win_skip("Needed W-functions are not implemented\n"); + return; + } ok(ret == lstrlenW(buff2)+1, "got %d\n", ret); ok(lstrcmpW(buff, buff2) == 0, "expected equal strings\n");
1
0
0
0
Paul Vriens : gdi32/tests: Fix a test failure on Win9x/WinMe.
by Alexandre Julliard
05 Mar '10
05 Mar '10
Module: wine Branch: master Commit: b5738dcceb94930a20dc9e4333516a732884d619 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b5738dcceb94930a20dc9e433…
Author: Paul Vriens <Paul.Vriens.Wine(a)gmail.com> Date: Fri Mar 5 11:06:52 2010 +0100 gdi32/tests: Fix a test failure on Win9x/WinMe. --- dlls/gdi32/tests/bitmap.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/dlls/gdi32/tests/bitmap.c b/dlls/gdi32/tests/bitmap.c index 23762c0..f6a4434 100644 --- a/dlls/gdi32/tests/bitmap.c +++ b/dlls/gdi32/tests/bitmap.c @@ -364,7 +364,9 @@ static void test_dib_info(HBITMAP hbm, const void *bits, const BITMAPINFOHEADER ok(ds.dsBmih.biSize == bmih->biSize, "%u != %u\n", ds.dsBmih.biSize, bmih->biSize); ok(ds.dsBmih.biWidth == bmih->biWidth, "%d != %d\n", ds.dsBmih.biWidth, bmih->biWidth); - ok(ds.dsBmih.biHeight == abs(bmih->biHeight), "%d != %d\n", ds.dsBmih.biHeight, abs(bmih->biHeight)); + ok(ds.dsBmih.biHeight == abs(bmih->biHeight) || + broken(ds.dsBmih.biHeight == bmih->biHeight), /* Win9x/WinMe */ + "%d != %d\n", ds.dsBmih.biHeight, abs(bmih->biHeight)); ok(ds.dsBmih.biPlanes == bmih->biPlanes, "%u != %u\n", ds.dsBmih.biPlanes, bmih->biPlanes); ok(ds.dsBmih.biBitCount == bmih->biBitCount, "%u != %u\n", ds.dsBmih.biBitCount, bmih->biBitCount); ok(ds.dsBmih.biCompression == bmih->biCompression, "%u != %u\n", ds.dsBmih.biCompression, bmih->biCompression);
1
0
0
0
Jeff Zaroyko : mmdevapi/tests: Fix a failing test for Vista/W2k8.
by Alexandre Julliard
05 Mar '10
05 Mar '10
Module: wine Branch: master Commit: 0a6ac95736561d093d6b31d50f16f6a9fb573a2f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=0a6ac95736561d093d6b31d50…
Author: Jeff Zaroyko <jeffz(a)jeffz.name> Date: Fri Mar 5 17:00:00 2010 +1100 mmdevapi/tests: Fix a failing test for Vista/W2k8. --- dlls/mmdevapi/tests/render.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/dlls/mmdevapi/tests/render.c b/dlls/mmdevapi/tests/render.c index 7813056..05d71b7 100644 --- a/dlls/mmdevapi/tests/render.c +++ b/dlls/mmdevapi/tests/render.c @@ -199,7 +199,9 @@ static void test_audioclient(IAudioClient *ac) ok(hr == E_INVALIDARG, "SetEventHandle(NULL) returns %08x\n", hr); hr = IAudioClient_SetEventHandle(ac, handle); - ok(hr == AUDCLNT_E_EVENTHANDLE_NOT_EXPECTED, "SetEventHandle returns %08x\n", hr); + ok(hr == AUDCLNT_E_EVENTHANDLE_NOT_EXPECTED || + hr == HRESULT_FROM_WIN32(ERROR_INVALID_NAME) + , "SetEventHandle returns %08x\n", hr); CloseHandle(handle); CoTaskMemFree(pwfx);
1
0
0
0
Nikolay Sivov : shell32: Stub IShellView2::SelectAndPositionItem() over IFolderView::SelectAndPositionItems().
by Alexandre Julliard
05 Mar '10
05 Mar '10
Module: wine Branch: master Commit: 072951e2f8a46269b46ca5acd42a6bd976f96d2d URL:
http://source.winehq.org/git/wine.git/?a=commit;h=072951e2f8a46269b46ca5acd…
Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Thu Mar 4 22:36:27 2010 +0300 shell32: Stub IShellView2::SelectAndPositionItem() over IFolderView::SelectAndPositionItems(). --- dlls/shell32/shlview.c | 22 +++++++++++++++++++--- 1 files changed, 19 insertions(+), 3 deletions(-) diff --git a/dlls/shell32/shlview.c b/dlls/shell32/shlview.c index 8114546..80c4c3a 100644 --- a/dlls/shell32/shlview.c +++ b/dlls/shell32/shlview.c @@ -2111,10 +2111,26 @@ static HRESULT WINAPI IShellView2_fnHandleRename(IShellView2* iface, LPCITEMIDLI return E_NOTIMPL; } -static HRESULT WINAPI IShellView2_fnSelectAndPositionItem(IShellView2* iface, LPCITEMIDLIST item, UINT flags, POINT *point) +static HRESULT WINAPI IShellView2_fnSelectAndPositionItem( + IShellView2* iface, + LPCITEMIDLIST item, + UINT flags, + POINT *point) { - FIXME("(%p)->(item %p, flags %#x, point %p) stub!\n", iface, item, flags, point); - return E_NOTIMPL; + IShellViewImpl *This = (IShellViewImpl *)iface; + IFolderView *view; + HRESULT hr; + + TRACE("(%p)->(item %p, flags %#x, point %p)\n", This, item, flags, point); + + hr = IShellView2_QueryInterface(iface, &IID_IFolderView, (void**)&view); + if (hr == S_OK) + { + hr = IFolderView_SelectAndPositionItems(view, 1, &item, point, flags); + IFolderView_Release(view); + } + + return hr; } static const IShellView2Vtbl svvt =
1
0
0
0
Nikolay Sivov : shell32: Move SelectItem implementation to IFolderView and use it for IShellView:: SelectItem.
by Alexandre Julliard
05 Mar '10
05 Mar '10
Module: wine Branch: master Commit: 04e527b31b3a5d02c83c60ea87973f315ff3b575 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=04e527b31b3a5d02c83c60ea8…
Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Thu Mar 4 22:29:23 2010 +0300 shell32: Move SelectItem implementation to IFolderView and use it for IShellView::SelectItem. --- dlls/shell32/shlview.c | 89 +++++++++++++++++++++++------------------------- 1 files changed, 43 insertions(+), 46 deletions(-) diff --git a/dlls/shell32/shlview.c b/dlls/shell32/shlview.c index 6d09771..8114546 100644 --- a/dlls/shell32/shlview.c +++ b/dlls/shell32/shlview.c @@ -1960,54 +1960,26 @@ static HRESULT WINAPI IShellView_fnSaveViewState(IShellView2 * iface) static HRESULT WINAPI IShellView_fnSelectItem( IShellView2 * iface, LPCITEMIDLIST pidl, - UINT uFlags) + UINT flags) { - IShellViewImpl *This = (IShellViewImpl *)iface; - int i; - - TRACE("(%p)->(pidl=%p, 0x%08x) stub\n",This, pidl, uFlags); - - i = LV_FindItemByPidl(This, pidl); - - if (i != -1) - { - LVITEMW lvItem; - - if(uFlags & SVSI_ENSUREVISIBLE) - SendMessageW(This->hWndList, LVM_ENSUREVISIBLE, i, 0); - - lvItem.mask = LVIF_STATE; - lvItem.stateMask = LVIS_SELECTED | LVIS_FOCUSED; - lvItem.iItem = 0; - lvItem.iSubItem = 0; - - while(SendMessageW(This->hWndList, LVM_GETITEMW, 0, (LPARAM) &lvItem)) - { - if (lvItem.iItem == i) - { - if (uFlags & SVSI_SELECT) - lvItem.state |= LVIS_SELECTED; - else - lvItem.state &= ~LVIS_SELECTED; + IShellViewImpl *This = (IShellViewImpl *)iface; + IFolderView *view; + HRESULT hr; + int i; - if(uFlags & SVSI_FOCUSED) - lvItem.state &= ~LVIS_FOCUSED; - } - else - { - if (uFlags & SVSI_DESELECTOTHERS) - lvItem.state &= ~LVIS_SELECTED; - } - SendMessageW(This->hWndList, LVM_SETITEMW, 0, (LPARAM) &lvItem); - lvItem.iItem++; - } + TRACE("(%p)->(pidl=%p, 0x%08x)\n",This, pidl, flags); + i = LV_FindItemByPidl(This, pidl); + if (i == -1) return S_OK; - if(uFlags & SVSI_EDIT) - SendMessageW(This->hWndList, LVM_EDITLABELW, i, 0); + hr = IShellView2_QueryInterface(iface, &IID_IFolderView, (void**)&view); + if (hr == S_OK) + { + hr = IFolderView_SelectItem(view, i, flags); + IFolderView_Release(view); + } - } - return S_OK; + return hr; } static HRESULT WINAPI IShellView_fnGetItemObject(IShellView2 * iface, UINT uItem, REFIID riid, LPVOID *ppvOut) @@ -2783,9 +2755,34 @@ static HRESULT WINAPI IFView_GetAutoArrange(IFolderView *iface) static HRESULT WINAPI IFView_SelectItem(IFolderView *iface, int item, DWORD flags) { - IShellViewImpl *This = impl_from_IFolderView(iface); - FIXME("(%p)->(%d, %x), stub\n", This, item, flags); - return E_NOTIMPL; + IShellViewImpl *This = impl_from_IFolderView(iface); + LVITEMW lvItem; + + TRACE("(%p)->(%d, %x)\n", This, item, flags); + + lvItem.state = 0; + lvItem.stateMask = LVIS_SELECTED; + + if (flags & SVSI_ENSUREVISIBLE) + SendMessageW(This->hWndList, LVM_ENSUREVISIBLE, item, 0); + + /* all items */ + if (flags & SVSI_DESELECTOTHERS) + SendMessageW(This->hWndList, LVM_SETITEMSTATE, -1, (LPARAM)&lvItem); + + /* this item */ + if (flags & SVSI_SELECT) + lvItem.state |= LVIS_SELECTED; + + if (flags & SVSI_FOCUSED) + lvItem.stateMask |= LVIS_FOCUSED; + + SendMessageW(This->hWndList, LVM_SETITEMSTATE, item, (LPARAM)&lvItem); + + if (flags & SVSI_EDIT) + SendMessageW(This->hWndList, LVM_EDITLABELW, item, 0); + + return S_OK; } static HRESULT WINAPI IFView_SelectAndPositionItems(IFolderView *iface, UINT cidl,
1
0
0
0
Nikolay Sivov : shell32: Cast to class data pointer IShellView2 vtable as it's a first member.
by Alexandre Julliard
05 Mar '10
05 Mar '10
Module: wine Branch: master Commit: c9751d36881a7cea26588ae52a3d03aaeceedad2 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=c9751d36881a7cea26588ae52…
Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Thu Mar 4 20:36:48 2010 +0300 shell32: Cast to class data pointer IShellView2 vtable as it's a first member. --- dlls/shell32/shlview.c | 25 +++++++++++++------------ 1 files changed, 13 insertions(+), 12 deletions(-) diff --git a/dlls/shell32/shlview.c b/dlls/shell32/shlview.c index 8c30d72..6d09771 100644 --- a/dlls/shell32/shlview.c +++ b/dlls/shell32/shlview.c @@ -2180,7 +2180,7 @@ static HRESULT WINAPI ISVOleCmdTarget_QueryInterface( { IShellViewImpl *This = impl_from_IOleCommandTarget(iface); - return IShellFolder_QueryInterface((IShellFolder*)This, iid, ppvObj); + return IShellView2_QueryInterface((IShellView2*)This, iid, ppvObj); } /********************************************************** @@ -2191,7 +2191,7 @@ static ULONG WINAPI ISVOleCmdTarget_AddRef( { IShellViewImpl *This = impl_from_IOleCommandTarget(iface); - return IShellFolder_AddRef((IShellFolder*)This); + return IShellView2_AddRef((IShellView2*)This); } /********************************************************** @@ -2202,7 +2202,7 @@ static ULONG WINAPI ISVOleCmdTarget_Release( { IShellViewImpl *This = impl_from_IOleCommandTarget(iface); - return IShellFolder_Release((IShellFolder*)This); + return IShellView2_Release((IShellView2*)This); } /********************************************************** @@ -2283,7 +2283,7 @@ static HRESULT WINAPI ISVDropTarget_QueryInterface( TRACE("(%p)->(\n\tIID:\t%s,%p)\n",This,debugstr_guid(riid),ppvObj); - return IShellFolder_QueryInterface((IShellFolder*)This, riid, ppvObj); + return IShellView2_QueryInterface((IShellView2*)This, riid, ppvObj); } static ULONG WINAPI ISVDropTarget_AddRef( IDropTarget *iface) @@ -2292,7 +2292,7 @@ static ULONG WINAPI ISVDropTarget_AddRef( IDropTarget *iface) TRACE("(%p)->(count=%u)\n",This,This->ref); - return IShellFolder_AddRef((IShellFolder*)This); + return IShellView2_AddRef((IShellView2*)This); } static ULONG WINAPI ISVDropTarget_Release( IDropTarget *iface) @@ -2301,7 +2301,7 @@ static ULONG WINAPI ISVDropTarget_Release( IDropTarget *iface) TRACE("(%p)->(count=%u)\n",This,This->ref); - return IShellFolder_Release((IShellFolder*)This); + return IShellView2_Release((IShellView2*)This); } /****************************************************************************** @@ -2463,7 +2463,7 @@ static HRESULT WINAPI ISVDropSource_QueryInterface( TRACE("(%p)->(\n\tIID:\t%s,%p)\n",This,debugstr_guid(riid),ppvObj); - return IShellFolder_QueryInterface((IShellFolder*)This, riid, ppvObj); + return IShellView2_QueryInterface((IShellView2*)This, riid, ppvObj); } static ULONG WINAPI ISVDropSource_AddRef( IDropSource *iface) @@ -2472,7 +2472,7 @@ static ULONG WINAPI ISVDropSource_AddRef( IDropSource *iface) TRACE("(%p)->(count=%u)\n",This,This->ref); - return IShellFolder_AddRef((IShellFolder*)This); + return IShellView2_AddRef((IShellView2*)This); } static ULONG WINAPI ISVDropSource_Release( IDropSource *iface) @@ -2481,8 +2481,9 @@ static ULONG WINAPI ISVDropSource_Release( IDropSource *iface) TRACE("(%p)->(count=%u)\n",This,This->ref); - return IShellFolder_Release((IShellFolder*)This); + return IShellView2_Release((IShellView2*)This); } + static HRESULT WINAPI ISVDropSource_QueryContinueDrag( IDropSource *iface, BOOL fEscapePressed, @@ -2530,7 +2531,7 @@ static HRESULT WINAPI ISVViewObject_QueryInterface( TRACE("(%p)->(\n\tIID:\t%s,%p)\n",This,debugstr_guid(riid),ppvObj); - return IShellFolder_QueryInterface((IShellFolder*)This, riid, ppvObj); + return IShellView2_QueryInterface((IShellView2*)This, riid, ppvObj); } static ULONG WINAPI ISVViewObject_AddRef( IViewObject *iface) @@ -2539,7 +2540,7 @@ static ULONG WINAPI ISVViewObject_AddRef( IViewObject *iface) TRACE("(%p)->(count=%u)\n",This,This->ref); - return IShellFolder_AddRef((IShellFolder*)This); + return IShellView2_AddRef((IShellView2*)This); } static ULONG WINAPI ISVViewObject_Release( IViewObject *iface) @@ -2548,7 +2549,7 @@ static ULONG WINAPI ISVViewObject_Release( IViewObject *iface) TRACE("(%p)->(count=%u)\n",This,This->ref); - return IShellFolder_Release((IShellFolder*)This); + return IShellView2_Release((IShellView2*)This); } static HRESULT WINAPI ISVViewObject_Draw(
1
0
0
0
Nikolay Sivov : shell32: Stub IFolderView implementation for IShellView instance.
by Alexandre Julliard
05 Mar '10
05 Mar '10
Module: wine Branch: master Commit: 8032ae704772aa7e6f7d4d13938dbe6d1dc11ad1 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=8032ae704772aa7e6f7d4d139…
Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Thu Mar 4 20:19:03 2010 +0300 shell32: Stub IFolderView implementation for IShellView instance. --- dlls/shell32/shlview.c | 159 +++++++++++++++++++++++++++++++++++++++++++++++- include/shobjidl.idl | 46 ++++++++++++++ include/shtypes.idl | 3 + 3 files changed, 207 insertions(+), 1 deletions(-) diff --git a/dlls/shell32/shlview.c b/dlls/shell32/shlview.c index b14ba78..8c30d72 100644 --- a/dlls/shell32/shlview.c +++ b/dlls/shell32/shlview.c @@ -57,6 +57,7 @@ #include "wingdi.h" #include "winuser.h" #include "shlobj.h" +#include "shobjidl.h" #include "undocshell.h" #include "shresdef.h" #include "wine/debug.h" @@ -84,6 +85,7 @@ typedef struct const IDropTargetVtbl* lpvtblDropTarget; const IDropSourceVtbl* lpvtblDropSource; const IViewObjectVtbl* lpvtblViewObject; + const IFolderViewVtbl* lpvtblFolderView; IShellFolder* pSFParent; IShellFolder2* pSF2Parent; IShellBrowser* pShellBrowser; @@ -114,7 +116,7 @@ static const IOleCommandTargetVtbl ctvt; static const IDropTargetVtbl dtvt; static const IDropSourceVtbl dsvt; static const IViewObjectVtbl vovt; - +static const IFolderViewVtbl fviewvt; static inline IShellViewImpl *impl_from_IOleCommandTarget( IOleCommandTarget *iface ) { @@ -136,6 +138,11 @@ static inline IShellViewImpl *impl_from_IViewObject( IViewObject *iface ) return (IShellViewImpl *)((char*)iface - FIELD_OFFSET(IShellViewImpl, lpvtblViewObject)); } +static inline IShellViewImpl *impl_from_IFolderView( IFolderView *iface ) +{ + return (IShellViewImpl *)((char*)iface - FIELD_OFFSET(IShellViewImpl, lpvtblFolderView)); +} + /* ListView Header ID's */ #define LISTVIEW_COLUMN_NAME 0 #define LISTVIEW_COLUMN_SIZE 1 @@ -192,6 +199,7 @@ IShellView * IShellView_Constructor( IShellFolder * pFolder) sv->lpvtblDropTarget=&dtvt; sv->lpvtblDropSource=&dsvt; sv->lpvtblViewObject=&vovt; + sv->lpvtblFolderView=&fviewvt; sv->pSFParent = pFolder; if(pFolder) IShellFolder_AddRef(pFolder); @@ -1692,6 +1700,10 @@ static HRESULT WINAPI IShellView_fnQueryInterface(IShellView2 * iface,REFIID rii { *ppvObj = This; } + else if(IsEqualIID(riid, &IID_IFolderView)) + { + *ppvObj = &This->lpvtblFolderView; + } else if(IsEqualIID(riid, &IID_IOleCommandTarget)) { *ppvObj = &This->lpvtblOleCommandTarget; @@ -2658,3 +2670,148 @@ static const IViewObjectVtbl vovt = ISVViewObject_SetAdvise, ISVViewObject_GetAdvise }; + +/* IFolderView */ +static HRESULT WINAPI IFView_QueryInterface( + IFolderView *iface, + REFIID riid, + LPVOID *ppvObj) +{ + IShellViewImpl *This = impl_from_IFolderView(iface); + TRACE("(%p)->(IID:%s,%p)\n", This, debugstr_guid(riid), ppvObj); + return IShellView2_QueryInterface((IShellView2*)This, riid, ppvObj); +} + +static ULONG WINAPI IFView_AddRef( IFolderView *iface) +{ + IShellViewImpl *This = impl_from_IFolderView(iface); + TRACE("(%p)->(count=%u)\n", This, This->ref); + return IShellView2_AddRef((IShellView2*)This); +} + +static ULONG WINAPI IFView_Release( IFolderView *iface) +{ + IShellViewImpl *This = impl_from_IFolderView(iface); + TRACE("(%p)->(count=%u)\n", This, This->ref); + return IShellView2_Release((IShellView2*)This); +} + +static HRESULT WINAPI IFView_GetCurrentViewMode(IFolderView *iface, UINT *mode) +{ + IShellViewImpl *This = impl_from_IFolderView(iface); + FIXME("(%p)->(%p), stub\n", This, mode); + return E_NOTIMPL; +} + +static HRESULT WINAPI IFView_SetCurrentViewMode(IFolderView *iface, UINT mode) +{ + IShellViewImpl *This = impl_from_IFolderView(iface); + FIXME("(%p)->(%u), stub\n", This, mode); + return E_NOTIMPL; +} + +static HRESULT WINAPI IFView_GetFolder(IFolderView *iface, REFIID riid, void **ppv) +{ + IShellViewImpl *This = impl_from_IFolderView(iface); + FIXME("(%p)->(%s, %p), stub\n", This, debugstr_guid(riid), ppv); + return E_NOTIMPL; +} + +static HRESULT WINAPI IFView_Item(IFolderView *iface, int index, PITEMID_CHILD *ppidl) +{ + IShellViewImpl *This = impl_from_IFolderView(iface); + FIXME("(%p)->(%d %p), stub\n", This, index, ppidl); + return E_NOTIMPL; +} + +static HRESULT WINAPI IFView_ItemCount(IFolderView *iface, UINT flags, int *items) +{ + IShellViewImpl *This = impl_from_IFolderView(iface); + FIXME("(%p)->(%u %p), stub\n", This, flags, items); + return E_NOTIMPL; +} + +static HRESULT WINAPI IFView_Items(IFolderView *iface, UINT flags, REFIID riid, void **ppv) +{ + IShellViewImpl *This = impl_from_IFolderView(iface); + FIXME("(%p)->(%u %s %p), stub\n", This, flags, debugstr_guid(riid), ppv); + return E_NOTIMPL; +} + +static HRESULT WINAPI IFView_GetSelectionMarkedItem(IFolderView *iface, int *item) +{ + IShellViewImpl *This = impl_from_IFolderView(iface); + FIXME("(%p)->(%p), stub\n", This, item); + return E_NOTIMPL; +} + +static HRESULT WINAPI IFView_GetFocusedItem(IFolderView *iface, int *item) +{ + IShellViewImpl *This = impl_from_IFolderView(iface); + FIXME("(%p)->(%p), stub\n", This, item); + return E_NOTIMPL; +} + +static HRESULT WINAPI IFView_GetItemPosition(IFolderView *iface, PCUITEMID_CHILD pidl, POINT *ppt) +{ + IShellViewImpl *This = impl_from_IFolderView(iface); + FIXME("(%p)->(%p %p), stub\n", This, pidl, ppt); + return E_NOTIMPL; +} + +static HRESULT WINAPI IFView_GetSpacing(IFolderView *iface, POINT *pt) +{ + IShellViewImpl *This = impl_from_IFolderView(iface); + FIXME("(%p)->(%p), stub\n", This, pt); + return E_NOTIMPL; +} + +static HRESULT WINAPI IFView_GetDefaultSpacing(IFolderView *iface, POINT *pt) +{ + IShellViewImpl *This = impl_from_IFolderView(iface); + FIXME("(%p)->(%p), stub\n", This, pt); + return E_NOTIMPL; +} + +static HRESULT WINAPI IFView_GetAutoArrange(IFolderView *iface) +{ + IShellViewImpl *This = impl_from_IFolderView(iface); + FIXME("(%p), stub\n", This); + return E_NOTIMPL; +} + +static HRESULT WINAPI IFView_SelectItem(IFolderView *iface, int item, DWORD flags) +{ + IShellViewImpl *This = impl_from_IFolderView(iface); + FIXME("(%p)->(%d, %x), stub\n", This, item, flags); + return E_NOTIMPL; +} + +static HRESULT WINAPI IFView_SelectAndPositionItems(IFolderView *iface, UINT cidl, + PCUITEMID_CHILD_ARRAY apidl, POINT *apt, DWORD flags) +{ + IShellViewImpl *This = impl_from_IFolderView(iface); + FIXME("(%p)->(%u %p %p %x), stub\n", This, cidl, apidl, apt, flags); + return E_NOTIMPL; +} + +static const IFolderViewVtbl fviewvt = +{ + IFView_QueryInterface, + IFView_AddRef, + IFView_Release, + IFView_GetCurrentViewMode, + IFView_SetCurrentViewMode, + IFView_GetFolder, + IFView_Item, + IFView_ItemCount, + IFView_Items, + IFView_GetSelectionMarkedItem, + IFView_GetFocusedItem, + IFView_GetItemPosition, + IFView_GetSpacing, + IFView_GetDefaultSpacing, + IFView_GetAutoArrange, + IFView_SelectItem, + IFView_SelectAndPositionItems +}; diff --git a/include/shobjidl.idl b/include/shobjidl.idl index 60da174..e1bf70b 100644 --- a/include/shobjidl.idl +++ b/include/shobjidl.idl @@ -535,6 +535,52 @@ cpp_quote("#include <poppack.h>") ); } +/***************************************************************************** + * IFolderView interface + */ +[ + uuid(cde725b0-ccc9-4519-917e-325d72fab4ce), + object, + pointer_default(unique) +] +interface IFolderView : IUnknown +{ + HRESULT GetCurrentViewMode( [out] UINT *mode ); + HRESULT SetCurrentViewMode( [in] UINT mode ); + HRESULT GetFolder( [in] REFIID riid, [out, iid_is(riid)] void **ppv ); + HRESULT Item( + [in] int index, + [out] PITEMID_CHILD *ppidl + ); + HRESULT ItemCount( + [in] UINT flags, + [out] int *items + ); + HRESULT Items( + [in] UINT flags, + [in] REFIID riid, + [out, iid_is(riid)] void **ppv + ); + HRESULT GetSelectionMarkedItem( [out] int *item ); + HRESULT GetFocusedItem( [out] int *item ); + HRESULT GetItemPosition( + [in] PCUITEMID_CHILD pidl, + [out] POINT* ppt + ); + HRESULT GetSpacing( [in, out, unique] POINT* pt ); + HRESULT GetDefaultSpacing( [out] POINT* pt ); + HRESULT GetAutoArrange(); + HRESULT SelectItem( + [in] int item, + [in] DWORD flags + ); + HRESULT SelectAndPositionItems( + [in] UINT cidl, + [in, size_is(cidl)] PCUITEMID_CHILD_ARRAY apidl, + [in, unique, size_is(cidl)] POINT* apt, + [in] DWORD flags + ); +} /***************************************************************************** * IShellBrowser interface diff --git a/include/shtypes.idl b/include/shtypes.idl index 2433fb5..021d467 100644 --- a/include/shtypes.idl +++ b/include/shtypes.idl @@ -34,6 +34,9 @@ typedef struct _ITEMIDLIST SHITEMID mkid; /* first itemid in list */ } ITEMIDLIST,*LPITEMIDLIST; typedef const ITEMIDLIST *LPCITEMIDLIST; +typedef LPITEMIDLIST PITEMID_CHILD; +typedef LPCITEMIDLIST PCUITEMID_CHILD; +typedef LPCITEMIDLIST *PCUITEMID_CHILD_ARRAY; cpp_quote("#include <poppack.h>") #ifndef MAX_PATH
1
0
0
0
← Newer
1
...
73
74
75
76
77
78
79
...
92
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
87
88
89
90
91
92
Results per page:
10
25
50
100
200