Archive of UserLand's first discussion group, started October 5, 1998.

Small HTML embedding progress

Author:Brent Simmons
Posted:5/12/1999; 4:43:15 PM
Topic:Question about embedding HTML on Windows
Msg #:6139 (In response to 6126)
Prev/Next:6138 / 6140

I've made some small progress using an approach like this in a DLL.

framewindow and childwindow are CWnds.

framewindow->Attach (FindWindow ("frontierframe", "Frontier"));
childwindow->Create (NULL, "Test", WS_VISIBLE, tr,
   framewindow, NULL, NULL);
childwindow->ShowWindow (SW_SHOWMAXIMIZED);
::AfxMessageBox ("The window's gone already.");

It creates a window and maximizes it to fit the frame window -- I can see it happen. But just as quickly, the window is gone. The message appearing in the message box is accurate, the window's gone already.

How can I make childwindow remain? The idea is that this is the window that would display HTML.

There are responses to this message:

This page was archived on 6/13/2001; 4:50:06 PM.

© Copyright 1998-2001 UserLand Software, Inc.