本文整理汇总了C++中HTML_TRACE函数的典型用法代码示例。如果您正苦于以下问题:C++ HTML_TRACE函数的具体用法?C++ HTML_TRACE怎么用?C++ HTML_TRACE使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了HTML_TRACE函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: html_Release
static ULONG
html_Release(html_t* html)
{
ULONG refs;
HTML_TRACE("html_Release(%d -> %d)", (int) html->refs, (int) html->refs-1);
refs = mc_unref(&html->refs);
if(refs == 0) {
HTML_TRACE("html_Release: Freeing the HTML object.");
free(html);
}
return refs;
}
示例2: dispatch_GetTypeInfo
static HRESULT STDMETHODCALLTYPE
dispatch_GetTypeInfo(IDispatch* self, UINT index, LCID lcid, ITypeInfo** type_info)
{
HTML_TRACE("dispatch_GetTypeInfo: Stub [TYPE_E_ELEMENTNOTFOUND]");
*type_info = NULL;
return TYPE_E_ELEMENTNOTFOUND;
}
示例3: ui_handler_TranslateAccelerator
static HRESULT STDMETHODCALLTYPE
ui_handler_TranslateAccelerator(IDocHostUIHandler* self, MSG* msg,
const GUID* guid, DWORD cmd_id)
{
HTML_TRACE("ui_handler_TranslateAccelerator: Stub [S_FALSE]");
return S_FALSE;
}
示例4: inplace_site_ex_GetWindow
static HRESULT STDMETHODCALLTYPE
inplace_site_ex_GetWindow(IOleInPlaceSiteEx* self, HWND* win)
{
HTML_TRACE("inplace_site_GetWindow");
*win = MC_HTML_FROM_INPLACE_SITE_EX(self)->win;
return S_OK;
}
示例5: html_notify_text
static LRESULT
html_notify_text(html_t* html, UINT code, const WCHAR* text)
{
/* Note we shamelessly misuse this also for URL notifications, as the
* MC_NMHTMLURL and MC_NMHTMLTEXT are binary compatible.
* They are separate mainly for historical reasons.
*/
MC_NMHTMLTEXTW notify;
LRESULT res;
BOOL need_free = FALSE;
HTML_TRACE("html_notify_text: code=%d str='%S'", code, text ? text : L"[null]");
notify.hdr.hwndFrom = html->win;
notify.hdr.idFrom = GetDlgCtrlID(html->win);
notify.hdr.code = code;
if(text == NULL) {
notify.pszText = L"";
} else if(html->unicode_notifications) {
notify.pszText = text;
} else {
notify.pszText = (WCHAR*) mc_str(text, MC_STRW, MC_STRA);
need_free = TRUE;
}
res = MC_SEND(html->notify_win, WM_NOTIFY, notify.hdr.idFrom, ¬ify);
if(need_free)
free((WCHAR*)notify.pszText);
return res;
}
示例6: client_site_GetContainer
static HRESULT STDMETHODCALLTYPE
client_site_GetContainer(IOleClientSite* self, LPOLECONTAINER* container)
{
HTML_TRACE("client_site_GetContainer: Stub [E_NOINTERFACE]");
*container = NULL;
return E_NOINTERFACE;
}
示例7: inplace_frame_SetActiveObject
static HRESULT STDMETHODCALLTYPE
inplace_frame_SetActiveObject(IOleInPlaceFrame* self,
IOleInPlaceActiveObject *active_obj, LPCOLESTR obj_name)
{
HTML_TRACE("inplace_frame_SetActiveObject: Stub [S_OK]");
return S_OK;
}
示例8: inplace_frame_GetWindow
static HRESULT STDMETHODCALLTYPE
inplace_frame_GetWindow(IOleInPlaceFrame* self, HWND* win)
{
HTML_TRACE("inplace_frame_GetWindow");
*win = GetAncestor(MC_HTML_FROM_INPLACE_FRAME(self)->win, GA_ROOT);
return(S_OK);
}
示例9: ui_handler_GetOptionKeyPath
static HRESULT STDMETHODCALLTYPE
ui_handler_GetOptionKeyPath(IDocHostUIHandler* self, LPOLESTR* key, DWORD reserved)
{
HTML_TRACE("ui_handler_GetOptionKeyPath: Stub [E_NOTIMPL]");
*key = NULL;
return E_NOTIMPL;
}
示例10: dispatch_GetTypeInfoCount
static HRESULT STDMETHODCALLTYPE
dispatch_GetTypeInfoCount(IDispatch* self, UINT* count)
{
HTML_TRACE("dispatch_GetTypeInfoCount: [S_OK]");
*count = 0;
return S_OK;
}
示例11: inplace_frame_SetMenu
static HRESULT STDMETHODCALLTYPE
inplace_frame_SetMenu(IOleInPlaceFrame* self, HMENU menu_shared,
HOLEMENU old_menu, HWND active_obj)
{
HTML_TRACE("inplace_frame_SetMenu: Stub [S_OK]");
return S_OK;
}
示例12: inplace_frame_InsertMenus
static HRESULT STDMETHODCALLTYPE
inplace_frame_InsertMenus(IOleInPlaceFrame* self, HMENU menu_shared,
LPOLEMENUGROUPWIDTHS menu_widths)
{
HTML_TRACE("inplace_frame_InsertMenus: Stub [E_NOTIMPL]");
return E_NOTIMPL;
}
示例13: ui_handler_ResizeBorder
static HRESULT STDMETHODCALLTYPE
ui_handler_ResizeBorder(IDocHostUIHandler* self, const RECT* rect,
IOleInPlaceUIWindow* inplace_win, BOOL is_frame_win)
{
HTML_TRACE("ui_handler_ResizeBorder: Stub [S_OK]");
return S_OK;
}
示例14: ui_handler_ShowUI
static HRESULT STDMETHODCALLTYPE
ui_handler_ShowUI(IDocHostUIHandler* self, DWORD id, IOleInPlaceActiveObject* active_obj,
IOleCommandTarget* target, IOleInPlaceFrame* inplace_frame,
IOleInPlaceUIWindow* doc)
{
HTML_TRACE("ui_handler_ShowUI: Stub [S_OK]");
return S_OK;
}
示例15: ui_handler_GetDropTarget
static HRESULT STDMETHODCALLTYPE
ui_handler_GetDropTarget(IDocHostUIHandler* self, IDropTarget* drop_target,
IDropTarget** p_drop_target)
{
HTML_TRACE("ui_handler_GetDropTarget: Stub [E_NOTIMPL]");
*p_drop_target = NULL;
return E_NOTIMPL;
}