Archive of UserLand's first discussion group, started October 5, 1998.
Embedding MFC widgets inside HWND windows
Author: Jacob Levy Posted: 5/12/1999; 8:36:12 AM Topic: Question about embedding HTML on Windows Msg #: 6097 (In response to 5860) Prev/Next: 6096 / 6098
Every MFC widget has an operation SafeGetHWND which will return an HWND if the widget has created it already. Using that value, you can reparent the HWND to be a child of your Frontier HWND, and from then on the MFC widget should appear inside your Frontier HWND. By that I mean that it'll be clipped to the size of your Frontier HWND. You still need to do all the geometry mgmt work, e.g. forward resize events from Frontier to the MFC HWND, and notice when MFC decides to destroy its own HWND, etc etc.--JYL
This page was archived on 6/13/2001; 4:50:04 PM.
© Copyright 1998-2001 UserLand Software, Inc.