Print Page | Close Window

A Splitter with border

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=9383
Printed Date: 12 December 2024 at 3:53pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: A Splitter with border
Posted By: Anna2004
Subject: A Splitter with border
Date Posted: 22 January 2008 at 10:09am
Hello,
 
I want to create a splitter with visible border. As in the following picture, the splitter is invisible.
 
 
I used WS_BORDER in my function like this:

m_Splitter1.CreateStatic(this, 1, 2, WS_CHILD | WS_VISIBLE | WS_BORDER, AFX_IDW_PANE_FIRST);

m_Splitter1.CreateView(0, 0, pContext->m_pNewViewClass, CSize(0, 0), pContext);

But there is no effect.

Can someone explain it for me?
 
Thanks for help!
 

 




Replies:
Posted By: Oleg
Date Posted: 22 January 2008 at 3:39pm
Hi,
If you use CXTSplitterWnd class, try call EnableFlatLook(FALSE);


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Anna2004
Date Posted: 23 January 2008 at 3:00am
Hi,
 
m_Splitter1 is of class CXTSplitterWndEx.
When I tried to call EnabledFlatLook(FALSE) as in the following code,

m_Splitter1.CreateStatic(this, 1, 2, WS_CHILD | WS_VISIBLE | WS_BORDER, AFX_IDW_PANE_FIRST);

m_Splitter1.CreateView(0, 0, pContext->m_pNewViewClass, CSize(0, 0), pContext);

m_Splitter1.EnableFlatLook(FALSE);

I got the following error at running in Debug mode:
 
Press Ignore, then I got this:
 
Press Ignore again, the application continue running, but the splitter still doesn't have a border. 8-(
 
Thanks for help!


Posted By: Oleg
Date Posted: 23 January 2008 at 1:48pm
Hi,
try simple CXTSplitterWnd. There are borders in Samples\Controls\SplitterWindow  sample.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Anna2004
Date Posted: 28 January 2008 at 1:44am
Thanks, I will look at the sample.



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