}
}
-void on_commandstate_change(DocHost *doc_host, LONG command, VARIANT_BOOL enable)
+void on_commandstate_change(DocHost *doc_host, LONG command, BOOL enable)
{
DISPPARAMS dispparams;
VARIANTARG params[2];
const GUID *pguidCmdGroup, ULONG cCmds, OLECMD prgCmds[], OLECMDTEXT *pCmdText)
{
DocHost *This = impl_from_IOleCommandTarget(iface);
- ULONG i= 0;
- FIXME("(%p)->(%s %u %p %p)\n", This, debugstr_guid(pguidCmdGroup), cCmds, prgCmds,
+ ULONG i;
+
+ TRACE("(%p)->(%s %u %p %p)\n", This, debugstr_guid(pguidCmdGroup), cCmds, prgCmds,
pCmdText);
- while (prgCmds && (cCmds > i)) {
- FIXME("command_%u: %u, 0x%x\n", i, prgCmds[i].cmdID, prgCmds[i].cmdf);
- i++;
- }
+ for(i=0; prgCmds && i < cCmds; i++)
+ TRACE("unsupported command %u (%x)\n", prgCmds[i].cmdID, prgCmds[i].cmdf);
+
return E_NOTIMPL;
}
notify_download_state(This, V_I4(pvaIn));
return S_OK;
default:
- FIXME("Unimplemented cmdid %d\n", nCmdID);
+ TRACE("Unimplemented cmdid %d\n", nCmdID);
return E_NOTIMPL;
}
}
}
default:
- FIXME("unsupported command %d of CGID_DocHostCmdPriv\n", nCmdID);
+ TRACE("unsupported command %d of CGID_DocHostCmdPriv\n", nCmdID);
return E_NOTIMPL;
}
}
return S_OK;
default:
- FIXME("Unimplemented cmdid %d of CGID_Explorer\n", nCmdID);
+ TRACE("Unimplemented cmdid %d of CGID_Explorer\n", nCmdID);
return E_NOTIMPL;
}
}
if(IsEqualGUID(pguidCmdGroup, &CGID_ShellDocView)) {
switch(nCmdID) {
default:
- FIXME("Unimplemented cmdid %d of CGID_ShellDocView\n", nCmdID);
+ TRACE("Unimplemented cmdid %d of CGID_ShellDocView\n", nCmdID);
return E_NOTIMPL;
}
}
return IOleCommandTarget_Exec(This->olecmd, pguidCmdGroup, nCmdID, nCmdexecopt, pvaIn, pvaOut);
}
- FIXME("Unimplemented cmdid %d of group %s\n", nCmdID, debugstr_guid(pguidCmdGroup));
+ TRACE("Unimplemented cmdid %d of group %s\n", nCmdID, debugstr_guid(pguidCmdGroup));
return E_NOTIMPL;
}
void set_doc_state(DocHost*,READYSTATE) DECLSPEC_HIDDEN;
void deactivate_document(DocHost*) DECLSPEC_HIDDEN;
void create_doc_view_hwnd(DocHost*) DECLSPEC_HIDDEN;
-void on_commandstate_change(DocHost*,LONG,VARIANT_BOOL) DECLSPEC_HIDDEN;
+void on_commandstate_change(DocHost*,LONG,BOOL) DECLSPEC_HIDDEN;
void notify_download_state(DocHost*,BOOL) DECLSPEC_HIDDEN;
void update_navigation_commands(DocHost *dochost) DECLSPEC_HIDDEN;
add_tb_button(ie, 4, ID_BROWSE_HOME, IDS_TB_HOME);
add_tb_separator(ie);
add_tb_button(ie, 5, ID_BROWSE_PRINT, IDS_TB_PRINT);
- SendMessageW(ie->toolbar_hwnd, TB_SETBUTTONSIZE, 0, MAKELPARAM(55,50));
+ SendMessageW(ie->toolbar_hwnd, TB_SETBUTTONSIZE, 0, MAKELPARAM(65,50));
SendMessageW(ie->toolbar_hwnd, TB_GETMAXSIZE, 0, (LPARAM)&toolbar_size);
bandinf.cbSize = sizeof(bandinf);
STGM_READWRITE | STGM_SHARE_EXCLUSIVE,
&pPropStg);
- get_profile_string(str_header, str_iconfile, pszFileName, &iconfile);
- if (iconfile != NULL)
+ if (get_profile_string(str_header, str_iconfile, pszFileName, &iconfile))
{
PROPSPEC ps;
PROPVARIANT pv;
{
TRACE("Failed to store the iconfile to our property storage. hr = 0x%x\n", hr);
}
-
- CoTaskMemFree(iconfile);
}
+ CoTaskMemFree(iconfile);
- get_profile_string(str_header, str_iconindex, pszFileName, &iconindexstring);
-
- if (iconindexstring != NULL)
+ if (get_profile_string(str_header, str_iconindex, pszFileName, &iconindexstring))
{
int iconindex;
PROPSPEC ps;
{
TRACE("Failed to store the iconindex to our property storage. hr = 0x%x\n", hr);
}
-
- CoTaskMemFree(iconindexstring);
}
+ CoTaskMemFree(iconindexstring);
IPropertyStorage_Release(pPropStg);
}
}
notify_download_state(This, TRUE);
- on_commandstate_change(This, CSC_NAVIGATEBACK, VARIANT_FALSE);
- on_commandstate_change(This, CSC_NAVIGATEFORWARD, VARIANT_FALSE);
+ on_commandstate_change(This, CSC_NAVIGATEBACK, FALSE);
+ on_commandstate_change(This, CSC_NAVIGATEFORWARD, FALSE);
if(This->document)
deactivate_document(This);
IOleInPlaceUIWindow_Release(This->uiwindow);
This->uiwindow = NULL;
}
-
- if(This->sink) {
- IAdviseSink_Release(This->sink);
- This->sink = NULL;
- }
}
typedef struct {
release_client_site(This);
if(!pClientSite) {
- on_commandstate_change(&This->doc_host, CSC_NAVIGATEBACK, VARIANT_FALSE);
- on_commandstate_change(&This->doc_host, CSC_NAVIGATEFORWARD, VARIANT_FALSE);
+ on_commandstate_change(&This->doc_host, CSC_NAVIGATEBACK, FALSE);
+ on_commandstate_change(&This->doc_host, CSC_NAVIGATEFORWARD, FALSE);
if(This->doc_host.document)
deactivate_document(&This->doc_host);
TRACE("(%p) ref=%d\n", This, ref);
if(!ref) {
+ if(This->sink)
+ IAdviseSink_Release(This->sink);
+
if(This->doc_host.document)
IUnknown_Release(This->doc_host.document);
reactos/dll/win32/hnetcfg # Synced to WineStaging-1.7.55
reactos/dll/win32/httpapi # Synced to WineStaging-1.7.55
reactos/dll/win32/iccvid # Synced to WineStaging-1.7.55
-reactos/dll/win32/ieframe # Synced to WineStaging-1.7.55
+reactos/dll/win32/ieframe # Synced to WineStaging-1.9.4
reactos/dll/win32/imaadp32.acm # Synced to WineStaging-1.7.55
reactos/dll/win32/imagehlp # Synced to WineStaging-1.7.55
reactos/dll/win32/imm32 # Synced to Wine-1.7.27