Print Page | Close Window

Docking Panes within a CDialog

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=3444
Printed Date: 15 May 2025 at 1:46am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Docking Panes within a CDialog
Posted By: ccmouse
Subject: Docking Panes within a CDialog
Date 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.

 




Replies:
Posted By: Oleg
Date 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


Posted By: ccmouse
Date 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.

 




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net