Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - [SOLVED]TabClientWnd border
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[SOLVED]TabClientWnd border

 Post Reply Post Reply
Author
Message
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 668
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Topic: [SOLVED]TabClientWnd border
    Posted: 23 February 2011 at 5:13am
I'm trying to get rid of the border of the CXTPTabClientWnd. I'm doing all kinds of stuff like:
 
m_MTIClientWnd.GetPaintManager()->m_bStaticFrame = FALSE;
m_MTIClientWnd.GetPaintManager()->m_clientFrame = xtpTabFrameNone;
 
But I still get a "sunken" border of the client window, when it is maximized?
 
To the left of the image below, it is fine when it is restored floating.
But to the right it is maximized and a "sunken" border appears ?
What can I do?
 
-cpede
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)
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: 23 February 2011 at 10:45am
Hi,

check if your child frame has WS_EX_CLIENTEDGE style.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 668
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Posted: 23 February 2011 at 1:30pm
Hmmm, I believe that I have removed this from most windows. If I take a look at the Draw Client Sample, and add the following:
 
m_MTIClientWnd.GetPaintManager()->SetAppearance(xtpTabAppearanceFlat);
m_MTIClientWnd.GetPaintManager()->m_bStaticFrame = FALSE;
m_MTIClientWnd.GetPaintManager()->m_clientFrame = xtpTabFrameNone;
 
I get this:
 
 
As you can see, the Tab has no border, but the Window below has a border?
Can you make this sample with a simple one line border or no border?
 
-cpede
 
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)
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: 24 February 2011 at 1:10am
Replace this method in sample

BOOL CSplitFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
ModifyStyleEx(WS_EX_CLIENTEDGE, 0);

return CMDIChildWnd::OnCreateClient(lpcs, pContext);
}

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 668
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Posted: 24 February 2011 at 4:10am
Perfect, thanks.
 
-cpede
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)
Back to Top
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 668
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Posted: 12 August 2016 at 9:46am
I still see something strange when using the XTPTabClientWnd.

I'm trying to remove all borders, gabs, frames etc.

And by using something like this:
m_MTIClientWnd.ModifyStyleEx(WS_EX_CLIENTEDGE,0);
m_MTIClientWnd.GetPaintManager()->SetColor(xtpTabColorOffice2013);
m_MTIClientWnd.GetPaintManager()->SetAppearance(xtpTabAppearanceOffice2013);
m_MTIClientWnd.GetPaintManager()->m_rcButtonMargin.SetRect(5,4,4,5);
m_MTIClientWnd.GetPaintManager()->m_rcClientMargin.SetRect(0,0,0,0);
m_MTIClientWnd.GetPaintManager()->m_clientFrame = xtpTabFrameNone;
m_MTIClientWnd.GetPaintManager()->m_bStaticFrame = FALSE;
I nearly get what I want.

But I can't find a way to remove the gab around the tab itself.



Above and below (most important) the tab there are some gabs.
How do I remove these gabs so that the height corresponds to the height of the tab?

Also another strange thing is that if I restore the MDI child window and then Maximizes the child window again, the lover gap disappears?

Any ideas?

-cpede


Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)
Back to Top
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 668
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Posted: 18 August 2016 at 10:10am
Just to follow-up using one of the samples.

Look at the Ribbon MDI Sample using the Office 2013 Word Theme with Frame Theme.
  1. When first opened the MDI child is tiled and the XTPTabClientWnd has a thick border.
  2. When child is maximized the border is still thick.
  3. Resize the app. to see that the border is repainted correctly.
Also play with restore, maximize and resize.


-cpede
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)
Back to Top
agontarenko View Drop Down
Admin Group
Admin Group


Joined: 25 March 2016
Status: Offline
Points: 299
Post Options Post Options   Thanks (0) Thanks(0)   Quote agontarenko Quote  Post ReplyReply Direct Link To This Post Posted: 01 October 2016 at 11:18am
Hello,



I'm glad to inform you that the issue has been addressed and fixed. The fix
will be available in the next beta or final release.

Regards,
Artem Gontarenko
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.156 seconds.