Docking Panes within a CDialog |
Post Reply |
Author | |
ccmouse
Newbie Joined: 27 December 2005 Status: Offline Points: 2 |
Post Options
Thanks(0)
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.
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
2. It must work. Are sure you don't forget WS_VISIBLE style?
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
ccmouse
Newbie Joined: 27 December 2005 Status: Offline Points: 2 |
Post Options
Thanks(0)
|
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.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |