209{
213 RECT posrect, cliprect;
214 OLEINPLACEFRAMEINFO frameinfo;
217
220
221 hres = IOleInPlaceSite_CanInPlaceActivate(
This->ipsite);
223 WARN(
"CanInPlaceActivate returned: %08x\n",
hres);
225 }
226
227 frameinfo.cb = sizeof(OLEINPLACEFRAMEINFO);
228 hres = IOleInPlaceSite_GetWindowContext(
This->ipsite, &pIPFrame, &
This->ip_window,
229 &posrect, &cliprect, &frameinfo);
231 WARN(
"GetWindowContext failed: %08x\n",
hres);
233 }
234
235 TRACE(
"got window context: %p %p {%d %d %d %d} {%d %d %d %d} {%d %x %p %p %d}\n",
238 frameinfo.cb, frameinfo.fMDIApp, frameinfo.hwndFrame, frameinfo.haccel, frameinfo.cAccelEntries);
239
240 hres = IOleInPlaceSite_GetWindow(
This->ipsite, &parent_hwnd);
242 WARN(
"GetWindow failed: %08x\n",
hres);
244 }
245
246 TRACE(
"got parent window %p\n", parent_hwnd);
247
254 }else {
259
260 TRACE(
"Created window %p\n",
This->hwnd);
261
265
266
267
268
269
271 }
272
273 if(
This->nscontainer)
275
277 hres = IOleInPlaceSite_QueryInterface(
This->ipsite, &IID_IOleInPlaceSiteEx, (
void**)&ipsiteex);
280
281 hres = IOleInPlaceSiteEx_OnInPlaceActivateEx(ipsiteex, &
redraw, 0);
282 IOleInPlaceSiteEx_Release(ipsiteex);
284 FIXME(
"unsupported redraw\n");
285 }else{
286 hres = IOleInPlaceSite_OnInPlaceActivate(
This->ipsite);
287 }
289 WARN(
"OnInPlaceActivate failed: %08x\n",
hres);
292 }
293
294 hres = IOleClientSite_QueryInterface(
This->client, &IID_IOleCommandTarget, (
void**)&cmdtrg);
297
298 IOleInPlaceFrame_SetStatusText(pIPFrame,
NULL);
299
302 IOleCommandTarget_Exec(cmdtrg,
NULL, OLECMDID_SETPROGRESSMAX,
303 OLECMDEXECOPT_DONTPROMPTUSER, &
var,
NULL);
304 IOleCommandTarget_Exec(cmdtrg,
NULL, OLECMDID_SETPROGRESSPOS,
305 OLECMDEXECOPT_DONTPROMPTUSER, &
var,
NULL);
306
307 IOleCommandTarget_Release(cmdtrg);
308 }
309
311 IOleInPlaceFrame_Release(
This->frame);
312 This->frame = pIPFrame;
313
314 if(!
This->request_uiactivate) {
315 hres = IOleInPlaceSite_QueryInterface(
This->ipsite, &IID_IOleInPlaceSiteEx, (
void**)&ipsiteex);
317 IOleInPlaceSiteEx_RequestUIActivate(ipsiteex);
318 IOleInPlaceSiteEx_Release(ipsiteex);
319 }
320 }
321
323
325}
static ATOM serverwnd_class
static void register_serverwnd_class(void)
static void activate_gecko(NSContainer *This)
static const WCHAR wszInternetExplorer_Server[]
void redraw(int x, int y, int cx, int cy)
BOOL WINAPI RedrawWindow(_In_opt_ HWND, _In_opt_ LPCRECT, _In_opt_ HRGN, _In_ UINT)
BOOL WINAPI SetWindowPos(_In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
UINT_PTR WINAPI SetTimer(_In_opt_ HWND, _In_ UINT_PTR, _In_ UINT, _In_opt_ TIMERPROC)
HWND WINAPI CreateWindowExW(_In_ DWORD dwExStyle, _In_opt_ LPCWSTR lpClassName, _In_opt_ LPCWSTR lpWindowName, _In_ DWORD dwStyle, _In_ int X, _In_ int Y, _In_ int nWidth, _In_ int nHeight, _In_opt_ HWND hWndParent, _In_opt_ HMENU hMenu, _In_opt_ HINSTANCE hInstance, _In_opt_ LPVOID lpParam)
HWND WINAPI GetParent(_In_ HWND)