Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Urgent..Making Floating pane as Topmost window
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Urgent..Making Floating pane as Topmost window

 Post Reply Post Reply
Author
Message
babumohan View Drop Down
Newbie
Newbie
Avatar

Joined: 25 October 2006
Location: United Kingdom
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote babumohan Quote  Post ReplyReply Direct Link To This Post Topic: Urgent..Making Floating pane as Topmost window
    Posted: 03 February 2007 at 3:23pm
 I would like to give the scenario
  • I have created two floating pane with Application window as parent
  • Using an option of the menu bar of  first floating pane i required to  set/reset the  latter floating pane as  topmost window and vice versa.
I am using the following code to create both the windows

CWnd::CreateEx(WS_EX_CONTROLPARENT, strWndClass, _T(""), WS_CHILD | WS_VISIBLE | WS_CLIPCHILDREN | WS_CLIPSIBLINGS, CRect(), pParentWnd, 0);

How can I dynamically set and reset  the topmost window property for the second floating pane using the menu option of first floating pane.(I required this feature within an application

I will be grateful if you can send the code than Ideas.
Awaiting your immediate reply
Thanks And Regards


Babs
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 04 February 2007 at 1:34am
Hello,
Are you talking about DockingPanes?
If so.
1. Create custom Floating Pane window. (See Samples\DockingPane\DockingContainers)
2. dynamically change WS_EX_TOPMOST style.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
babumohan View Drop Down
Newbie
Newbie
Avatar

Joined: 25 October 2006
Location: United Kingdom
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote babumohan Quote  Post ReplyReply Direct Link To This Post Posted: 04 February 2007 at 11:57am
Hi I tried with the code. But the window is displaying on the top of all windows.
 I would like to make it as the topmost window with respect to the application. Not to the OS.
Babs
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 05 February 2007 at 1:35am
Hi,
There is no such style...
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.031 seconds.