Note that there are some explanatory texts on larger screens.

plurals
  1. POIShellBrowser::BrowseObject isn't called
    primarykey
    data
    text
    <p>I'm trying to implement explorer-like frame in my application. This must work under WinXP too.</p> <p>I've implemented <code>IShellBrowser</code> in my window-class + i've implemented <code>IUnknown</code> interface.</p> <p>My class atributs:</p> <pre><code>IShellViewPtr m_shView; HWND m_wndHolder; CListViewCtrl view; </code></pre> <p>Here is the code of <code>WM_CREATE</code> handler</p> <pre><code>m_hWndClient = view.Create(m_hWnd, rcDefault, NULL, WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | WS_CLIPCHILDREN, WS_EX_CLIENTEDGE); // view isn't null after it CMessageLoop* pLoop = _Module.GetMessageLoop(); pLoop-&gt;AddMessageFilter(this); pLoop-&gt;AddIdleHandler(this); IShellFolderPtr pParentFolder; ATLVERIFY(SHGetDesktopFolder(&amp;pParentFolder) == S_OK); // OK FOLDERSETTINGS fs; fs.fFlags = FVM_DETAILS; fs.ViewMode = FVM_LIST; ATLVERIFY(pParentFolder-&gt;CreateViewObject(view, IID_IShellView, (void**)&amp;m_shView) == S_OK); // OK RECT r; GetClientRect(&amp;r); ATLVERIFY(m_shView-&gt;CreateViewWindow(NULL, &amp;fs, static_cast&lt;IShellBrowser*&gt;(this), &amp;r, &amp;m_wndHolder) == S_OK); // OK ATLVERIFY(m_shView-&gt;UIActivate(SVUIA_ACTIVATE_NOFOCUS) == S_OK); // OK </code></pre> <p>After the application is started i have explorer-like frame in it. I want to handle double click event in order to navigate through the folders in the frame. I expect that after double-clicking my implementation of <code>BrowseObject</code> will be called, but it doesn't happened. Instead of this folders are opened in system explorer.</p> <p>Please help. Thank you.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload