Hello all:

I need to include a WebBrowser control in a window -most exactly in a dialog box-. I'm using Visual C++ and the Windows API "bareback", I mean without MFC or ATL.

I managed to include it in a way that addresses the entire client area of the dialog box, but the problem is that I need that the Web control address only certain position, because the rest of the client area is occupied by the usual buttons, texts and other controls that are usually included in the dialog boxes.

I tried two ways of solution:

1 .- The control stems directly from the dialog box (say dialogHwnd) and use the methods

put_Left()
put_Top()
put_Width()
put_Height()

of the IWebBrowser2 interface to position de control, but without result, since the control does not change position (continues to occupy the entire space of the container).

2 .- I tried to derive the control of an child window defined within the dialog box (say of childWindowHwnd). The problem is that the control -the Web page you should see- does not appear inside of the window (or elsewhere).

Of course, any light or guidance on how to do it, or on what I'm wrong, will be largely rewarded :-)