|  | 
| A Splitter with border | 
| Post Reply   | 
| Author | |
| Anna2004   Newbie     Joined: 08 November 2007 Status: Offline Points: 8 |  Post Options  Thanks(0)  Quote  Reply  Topic: A Splitter with border 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! | |
|  | |
| Oleg   Senior Member   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |  Post Options  Thanks(0)  Quote  Reply  Posted: 22 January 2008 at 3:39pm | 
| Hi, If you use CXTSplitterWnd class, try call EnableFlatLook(FALSE); | |
| 
     Oleg, Support Team CODEJOCK SOFTWARE SOLUTIONS | |
|  | |
| Anna2004   Newbie     Joined: 08 November 2007 Status: Offline Points: 8 |  Post Options  Thanks(0)  Quote  Reply  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! | |
|  | |
| Oleg   Senior Member   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |  Post Options  Thanks(0)  Quote  Reply  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 | |
|  | |
| Anna2004   Newbie     Joined: 08 November 2007 Status: Offline Points: 8 |  Post Options  Thanks(0)  Quote  Reply  Posted: 28 January 2008 at 1:44am | 
| 
   Thanks, I will look at the sample. 
    | |
|  | |
| 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 |