mirror of
https://github.com/reactos/reactos.git
synced 2024-08-01 09:01:13 +00:00
[explorer_new]
- call ShellDDEInit, FileIconInit and WinList_Init while initializing - Calling ShellDDEInit fixes cases like pressing Explore in a folder context menu from a file open dialog (before this it just hanged) - We also need to call FileIconInit in order to initialize the shell icons properly. Before this Shell_GetImageLists called FileIconInit in case it was not called - Calling WinList_Init should make CLSID_ShellWindows work but it fails for now. CLSID_ShellWindows is needed in cases like opening a second time My computer from desktop should activates the existing My computer window and it is also needed for SHOpenFolderAndSelectItems in order to work svn path=/trunk/; revision=61064
This commit is contained in:
parent
fdd32e1c1b
commit
400a835c42
|
@ -410,6 +410,15 @@ _tWinMain(IN HINSTANCE hInstance,
|
||||||
|
|
||||||
if (CreateShellDesktop)
|
if (CreateShellDesktop)
|
||||||
{
|
{
|
||||||
|
/* Initialize shell dde support */
|
||||||
|
ShellDDEInit(TRUE);
|
||||||
|
|
||||||
|
/* Initialize shell icons */
|
||||||
|
FileIconInit(TRUE);
|
||||||
|
|
||||||
|
/* Initialize CLSID_ShellWindows class */
|
||||||
|
WinList_Init();
|
||||||
|
|
||||||
if (RegisterTrayWindowClass() && RegisterTaskSwitchWndClass())
|
if (RegisterTrayWindowClass() && RegisterTaskSwitchWndClass())
|
||||||
{
|
{
|
||||||
Tray = CreateTrayWindow();
|
Tray = CreateTrayWindow();
|
||||||
|
|
|
@ -755,6 +755,10 @@ BOOL WINAPI ILGetDisplayNameEx(IShellFolder *psf, LPCITEMIDLIST pidl, LPVOID pat
|
||||||
#define ILGDN_NORMAL 1
|
#define ILGDN_NORMAL 1
|
||||||
#define ILGDN_INFOLDER 2
|
#define ILGDN_INFOLDER 2
|
||||||
|
|
||||||
|
BOOL WINAPI FileIconInit(BOOL bFullInit);
|
||||||
|
void WINAPI ShellDDEInit(BOOL bInit);
|
||||||
|
DWORD WINAPI WinList_Init(void);
|
||||||
|
|
||||||
HANDLE WINAPI SHCreateDesktop(IShellDesktopTray*);
|
HANDLE WINAPI SHCreateDesktop(IShellDesktopTray*);
|
||||||
BOOL WINAPI SHDesktopMessageLoop(HANDLE);
|
BOOL WINAPI SHDesktopMessageLoop(HANDLE);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue