Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to let CFrameWnd always and only on top of parent window?

19 views
Skip to first unread message

Leo

unread,
Aug 31, 2009, 9:20:31 PM8/31/09
to
I have a parent window derived from CFrameWnd. When I switch among the
tree items in the parent window, I will get a child window which is
also derived from CFrameWnd. Current the child window is on top of
every window, but this is not I want. It needs to be always but only
on top of its parents and its content will be updated when I switch
among the tree items in the parent window (thus can't be modal). The
following is what I have for now:

m_pChildFrame->Create(NULL, _T("Test"), WS_OVERLAPPEDWINDOW, CRect
(0, 0, 200, 150), NULL, NULL, WS_EX_TOPMOST);

I can't use CDialog to do similar thing. Thanks for your advice.

Leo

0 new messages