Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Docking Panes within a CDialog
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Docking Panes within a CDialog

 Post Reply Post Reply
Author
Message
ccmouse View Drop Down
Newbie
Newbie


Joined: 27 December 2005
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote ccmouse Quote  Post ReplyReply Direct Link To This Post Topic: Docking Panes within a CDialog
    Posted: 27 December 2005 at 5:24am

Hi,

I have come to a problem where I need to place a pane inside some top-level window which has no borders or title bars. To implement this, I could:

1. Create a CDialog object that holds the panes. But this seems unfeasible because panes might only be contained in frame windows.

2. Create a frame window with no title bars or borders. I also failed to do so because when I modify the styles, the frame window cannot display itself even if I manually let it repaint.

Please help me on this incident and propose your ways to implement this requirement. Thanks.

 

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 27 December 2005 at 5:38am
2. It must work. Are sure you don't forget WS_VISIBLE style?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
ccmouse View Drop Down
Newbie
Newbie


Joined: 27 December 2005
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote ccmouse Quote  Post ReplyReply Direct Link To This Post Posted: 27 December 2005 at 11:50pm

Yes. Method 2 works.

We need to set the window style to WS_OVERLAPPED instead of WS_POPUP.

And, it seems setting WS_OVERLAPPED will imply some other styles such as WS_CAPTION during the call to CreateWindow, so I have to use SetWindowLong to manually remove the unwanted styles after window creation.

Thanks.

 

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.250 seconds.