BUG: ??????? ??? Windows ????????? ?? Windows Explorer ????? ???? ??? ????? ?? SelectedItems

?????? ????????? ?????? ?????????
???? ???????: 819499 - ??? ???????? ???? ????? ????? ??? ???????.
??? ????? ??? ???????. ????? "??? ??" ??? ??? ??????? ??? ????.
????? ???? | ?? ????

?? ??? ??????

???????

??? ????? ?????? Windows ???? ???????? ?? ??? Windows ????????? ??????? SelectedItems ????? IShellFolderViewDual ?????? ?????? ??? ????? ?? FolderItems.

?????

???? Microsoft ?? ??? ??? ?? ?????? Microsoft ??????? ?? ????? ??? ???????.

??????? ????

????? ????? ????? ?? ????

  1. ???? ???? ?? ??? ??????? ?? ???? ???????? ???????? ??????? ??? ??? ???? ??? ?? ?? ???? ????? ?? Sample.cpp:
    #include <Windows.h>
    #include <TChar.h>
    #import <SHDocVw.dll>
    #import <Shell32.dll>
    #include <iostream>
    using namespace std;
    
    int _tmain(int argc, TCHAR ** argv)
    {
        CoInitialize(0);
        try
        {    
            SHDocVw::IShellWindowsPtr sw(__uuidof(SHDocVw::ShellWindows));
            for (long i = 0; i < sw->Count; ++i)
            {
                if (SHDocVw::IWebBrowser2Ptr ie = sw->Item(i))
                {
                    cout << _com_util::ConvertBSTRToString(ie->LocationURL) << endl;
                    if (Shell32::IShellFolderViewDualPtr view = ie->Document)
                    {
                       cout << view->SelectedItems()->Count << _T(" selected item(s)") << endl;
                    }
                }
            }
        }
        catch (_com_error const & e)
        {
            cout << e.ErrorMessage() << endl;
        }
        CoUninitialize();
        return 0;
    }
  2. ????? ????? ?? ???? ????? ????? ?????? ?? ???? ???????: /EHsc cl Sample.cpp
  3. ????? ???? ?????? ?????? Windows ???????? ??????.
  4. ???? ??? ?????? ?????? ??? ???? ?? ???? ??? ??????? ??? ??? ???? ?????? Windows.
  5. ?? ??????? ?????? ???? ??? ???? ??????
  6. ?? ??????? ??? ? ??? ?????? ??????? ?????? Windows ?????????? ??? ??? ??? ?? ???? ??? ?????.
  7. ??? ???? ???? ????? ??? ?????? ?? ???????. ?? ????? ??????? ??? ??? ??????? ?? ??? ??????.
  8. ?? ???? ???????? ?? ?????? ????? ???????? ????? Sample.exe (???? ?? ?????? ?? ?????? 2).

    ??? ??????? ????? ??????? Count ???? FolderItems ???? ?? ??????? ?????? ??????? SelectedItems ????? IShellFolderViewDual.

    ????? ??????? ?? ???? ??? ??????? ???? ??? ???????? ?? ?????? ?? ?????? Windows ?? ?????? ???????. ??? ???? ??????? ??? ????? ?? ???? ??????? ?? ?????? ???? ?? ?????? ?? ?????? Windows.
  9. ????? ???? ?????? Windows ?? ??? ??? ??? ? ??? ????? ????? ?????? ???? ?? ??????? ?????? SelectedItems ???? ???? ??? ?????? FolderItem ???????.

    ?????? ?? ??????? ??????? ?? ?????? Windows, ?? ??????? ?????? ???? ??? ?????? ??????.
  10. ?? ??????? ???? ???? ??? ?????? ????? ????? ??? ??? ??? ?????? ??? ??? ??? ?? ???? ??? ????? ?????? ???? ??????.
  11. ?? ???? ???????? ?? ?????? ????? Sample.exe (?? ?????? ?? ?????? 2).

    ??? ??????? ????? ??????? Count ???? FolderItems ???? ?? ??????? ?????? ??????? SelectedItems ????? IShellFolderViewDual.

    ???? ??????? ??? ?? ????? ? ??? ??????? ???? ?? ?????? ?? ??????.
????? ?? ???? ???? ??????? ????? FocusedItem ????? IShellFolderViewDual ???????? ????? ????? SelectedItems ??? ?????. ????? FocusedItem ????? ?????? ?????? ?????? ?? ?????? ?? ???? ?????? ??????? ????? ?? ??? ????? ???? ???? ?? ?????? Windows.

?????

?????? ??? ??????? ?????? ??? Shell ??????? ?????? ???? ????? MSDN ??????:
shell ?????? ????? ?????????
http://msdn2.microsoft.com/en-us/library/bb776778.aspx

???????

???? ???????: 819499 - ????? ??? ??????: 28/???? ??????/1435 - ??????: 3.4
????? ???
  • Microsoft Windows 2000
????? ??????: 
kbnosurvey kbarchive kbmt kbhotfixserver kbqfe kbshell kbbug KB819499 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????819499

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com