Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Custom docking pane - still got black border lines
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Custom docking pane - still got black border lines

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


Joined: 29 July 2008
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote cjrobindch Quote  Post ReplyReply Direct Link To This Post Topic: Custom docking pane - still got black border lines
    Posted: 09 October 2008 at 8:58pm
Hi -

I've implemented a child class of CXTPDockingPaneOffice2003Theme to draw my own docking panels by overriding  DrawFloatingFrame() and DrawCaption().  This gives me exactly what I want outside the client area.

Inside the frame, though, there's a one-pixel black line on the left and top sides which I don't want.  When the pane is floated, there's an additional one-pixel border line on the left and right sides of the client area.

Here's what it looks like (you may have to zoom in to see the highlighted lines):



So, here's the question:

How do I remove the black line from the docked and floating states, and remove the additional borders from the floating state?  I'm looking for a clean, flat look here.

thanks.

 - robin (http://www.acquirer.com)
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: 10 October 2008 at 2:14am
Hi,
Its not our border - its border of your Child window.  Check what styles it has and remove them - Guess its WS_EX_CLIENTEDGE - add
ModifyStyleEx(WS_EX_CLIENTEDGE, 0); in your child frame.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.155 seconds.