Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - splitter borders
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

splitter borders

 Post Reply Post Reply
Author
Message
securigy View Drop Down
Groupie
Groupie


Joined: 23 November 2007
Status: Offline
Points: 41
Post Options Post Options   Thanks (0) Thanks(0)   Quote securigy Quote  Post ReplyReply Direct Link To This Post Topic: splitter borders
    Posted: 03 July 2009 at 5:05am
I am getting splitters drawn as in the attached picture "Split Borders.bmp" they are 3D from one side. My goal is to get "Outlook2003-style borders" (also see the picture). What am I missing here? I use for all 3 splitters:

m_wndSplitter.EnableFlatLook(TRUE);

m_wndSplitter1.EnableFlatLook(TRUE);

m_wndSplitter2.EnableFlatLook(TRUE);

and also tried:
 

m_wndSplitter1.SetSplitterStyle(XT_SPLIT_NOFULLDRAG | XT_SPLIT_NOSIZE);// | XT_SPLIT_NOBORDER);

with and without XT_SPLIT_NOBORDER...
 
Do I need to do something to be set with the Theme?
 
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: 06 July 2009 at 1:19am
Hi,
Are you sure its not static frame around your window ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
securigy View Drop Down
Groupie
Groupie


Joined: 23 November 2007
Status: Offline
Points: 41
Post Options Post Options   Thanks (0) Thanks(0)   Quote securigy Quote  Post ReplyReply Direct Link To This Post Posted: 06 July 2009 at 10:28am

On the right of my splitter is a frame window that is also split into 2 (caption and lower part). The lower part is form view derived from

CXTResizeFormView. May be when creting this form view by default used static frame style border - I do not use any flags explicitely... I create this form view with new() and then Create.

Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 07 July 2009 at 3:03am
CYourView::PreCreateWindow(...)
{
    cs.exStyle  &= ~WS_EX_STATICEDGE;
    cs.exStyle  &= ~WS_EX_CLIENTEDGE; // If above is not enough.
    ...
}
PokerMemento - http://www.pokermemento.com/
Back to Top
securigy View Drop Down
Groupie
Groupie


Joined: 23 November 2007
Status: Offline
Points: 41
Post Options Post Options   Thanks (0) Thanks(0)   Quote securigy Quote  Post ReplyReply Direct Link To This Post Posted: 09 July 2009 at 10:50pm
It worked when I added to the parent of CMyView, that is, to the frame window as well.
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.063 seconds.