Click here to Skip to main content
15,915,772 members
Home / Discussions / COM
   

COM

 
AnswerRe: COM Interdependency Pin
Stephen Hewitt10-Jan-06 12:05
Stephen Hewitt10-Jan-06 12:05 
GeneralRe: COM Interdependency Pin
msumit12-Jan-06 7:46
msumit12-Jan-06 7:46 
AnswerRe: COM Interdependency Pin
Roger Stoltz12-Jan-06 22:05
Roger Stoltz12-Jan-06 22:05 
AnswerRe: COM Interdependency Pin
Skond20-Jan-06 5:38
Skond20-Jan-06 5:38 
Questionopeneing popwindow as in parent wind using AxWebBrowser Pin
Sufyan_shani6-Jan-06 19:31
Sufyan_shani6-Jan-06 19:31 
QuestionCalling COM DLL in Pocket PC Pin
Logan from Singapore5-Jan-06 0:51
Logan from Singapore5-Jan-06 0:51 
NewsAt Last! My DCOM Tutorial for VS.NET is Here! Pin
Brian C Hart30-Dec-05 22:30
professionalBrian C Hart30-Dec-05 22:30 
QuestionIWebBrowser2::SetUIHandler doesn't call back to get IDocHostUIHandler Pin
Bernie Pallek30-Dec-05 7:04
Bernie Pallek30-Dec-05 7:04 
I'd like to embed an IE browser control in a window, but suppress the 3D frame and scrollbars.

Using CreateControl() in an MFC project, I've created a WebBrowser2 control, which I then query to get a IWebBrowser2 interface, whose document I query to get an ICustomDoc interface, which I use to call SetUIHandler, passing my own container.

So, basically, I have a container window (subclass of CWnd), which contains the browser control, and then container window implements IDocHostUIHandler in order to implement GetHostInfo() and have it modify some of the flags that control some its appearance (DOCHOSTUIFLAG_NO3DOUTERBORDER and DOCHOSTUIFLAG_SCROLL_NO).

The only mysterious thing is that during runtime, after I call SetUIHandler(), my container window class (the one implementing IDocHostUIHandler) receives only two calls to its QueryInterface, neither of which ask for IDocHostUIHandler! First, it asks for IID_IOleCommandTarget (just after I call SetUIHandler), and later it is asked for {C4D244B0-D43E-11CF-893B-00AA00BDCE1A} which is apparently IDocHostShowUI.

Does this mean I'm going to have to implement these other two interfaces as well? Sigh | :sigh:

Could the browser control not be requesting IDocHostUIHandler because of the earlier failures? Unsure | :~

Has anyone ever managed to pull off this sort of trick? (Changing embedded (as MFC control CWnd-derivative) browser's appearance)


-- modified at 13:37 Friday 30th December, 2005
AnswerRe: IWebBrowser2::SetUIHandler doesn't call back to get IDocHostUIHandler Pin
Bernie Pallek30-Dec-05 10:11
Bernie Pallek30-Dec-05 10:11 
QuestionAccess violation in COM object on exit from DLL using it Pin
Jens Winslow28-Dec-05 13:09
Jens Winslow28-Dec-05 13:09 
AnswerRe: Access violation in COM object on exit from DLL using it Pin
Gerald Schwab28-Dec-05 13:58
Gerald Schwab28-Dec-05 13:58 
GeneralRe: Access violation in COM object on exit from DLL using it Pin
Jens Winslow5-Jan-06 9:24
Jens Winslow5-Jan-06 9:24 
AnswerRe: Access violation in COM object on exit from DLL using it Pin
User 2155972-Jan-06 15:29
User 2155972-Jan-06 15:29 
GeneralRe: Access violation in COM object on exit from DLL using it Pin
Jens Winslow5-Jan-06 9:48
Jens Winslow5-Jan-06 9:48 
AnswerRe: Access violation in COM object on exit from DLL using it Pin
sundareswaran.senthilvel13-Jan-06 0:59
professionalsundareswaran.senthilvel13-Jan-06 0:59 
GeneralRe: Access violation in COM object on exit from DLL using it Pin
Jens Winslow13-Jan-06 6:05
Jens Winslow13-Jan-06 6:05 
QuestionProblem when User has selected Chinese Traditional Big5 as international option in outlook2003 Pin
Ganesh_T27-Dec-05 1:51
Ganesh_T27-Dec-05 1:51 
QuestionHow to generate custom HRESULT in COM and display message in to MFC Client? Pin
MandiraT27-Dec-05 0:51
MandiraT27-Dec-05 0:51 
QuestionCOM object with CLSID {845FB959-4279-11D2-BF23-00805FBE84A6} is either not valid or not registered. Pin
Mohamed Jaffar Sagir27-Dec-05 0:21
Mohamed Jaffar Sagir27-Dec-05 0:21 
AnswerRe: COM object with CLSID {845FB959-4279-11D2-BF23-00805FBE84A6} is either not valid or not registered. Pin
PhilWilson4-Jan-06 6:56
PhilWilson4-Jan-06 6:56 
QuestionCannot open include file: 'Wbemidl.h': No such file or directory Pin
abhiramsss26-Dec-05 23:32
abhiramsss26-Dec-05 23:32 
QuestionProblem in Chinese Traditional Charset.. in com addin Pin
Ganesh_T26-Dec-05 18:29
Ganesh_T26-Dec-05 18:29 
QuestionDirectShow: Getting the window handle of a panel Pin
Ramow26-Dec-05 5:20
Ramow26-Dec-05 5:20 
QuestionOut of Proc exe and Win NT service Pin
misha_grewal25-Dec-05 20:06
misha_grewal25-Dec-05 20:06 
QuestionEnterprise services Pin
psantoshkumar25-Dec-05 19:26
psantoshkumar25-Dec-05 19:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.