# HG changeset patch # User mhessling@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1206249345 0 # Node ID f253a7559a59434e6770fd91105b9df52b3a343a # Parent 0ab21b3b1d52f5e3d37923657b56444caabd72de Allow context menu to be shown. diff -r 0ab21b3b1d52 -r f253a7559a59 win/browser.c --- a/win/browser.c Sun Mar 23 05:14:32 2008 +0000 +++ b/win/browser.c Sun Mar 23 05:15:45 2008 +0000 @@ -1,5 +1,5 @@ /* Browser.c - + This is a Win32 C application (ie, no MFC, WTL, nor even any C++ -- just plain C) that demonstrates how to embed a browser "control" (actually, an OLE object) in your own window (in order to display a web page, or an HTML file on disk). @@ -393,7 +393,8 @@ // We will return S_OK to tell the browser not to display its default context menu, // or return S_FALSE to let the browser show its default context menu. For this // example, we wish to disable the browser's default context menu. - return(S_OK); +// return(S_OK); + return(S_FALSE); } // Called at initialization of the browser object UI. We can set various features of the browser object here. @@ -730,7 +731,7 @@ // _IOleClientSiteEx is an embedded IOleClientSite, so the browser doesn't mind. We want the browser // to continue passing our _IOleClientSiteEx pointer wherever it would normally pass a IOleClientSite // pointer. - // + // // The IUnknown interface uses the same VTable as the first object in our _IOleClientSiteEx // struct (which happens to be an IOleClientSite). So if the browser is asking us to match // IID_IUnknown, then we'll also return a pointer to our _IOleClientSiteEx.