[SOLVED]TabClientWnd border |
Post Reply |
Author | |
cpede
Senior Member Joined: 13 August 2004 Location: Denmark Status: Offline Points: 668 |
Post Options
Thanks(0)
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++) |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
check if your child frame has WS_EX_CLIENTEDGE style.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
cpede
Senior Member Joined: 13 August 2004 Location: Denmark Status: Offline Points: 668 |
Post Options
Thanks(0)
|
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++) |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
cpede
Senior Member Joined: 13 August 2004 Location: Denmark Status: Offline Points: 668 |
Post Options
Thanks(0)
|
Perfect, thanks.
-cpede
|
|
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64) Language: Visual Studio 2017 (C++) |
|
cpede
Senior Member Joined: 13 August 2004 Location: Denmark Status: Offline Points: 668 |
Post Options
Thanks(0)
|
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:
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++) |
|
cpede
Senior Member Joined: 13 August 2004 Location: Denmark Status: Offline Points: 668 |
Post Options
Thanks(0)
|
Just to follow-up using one of the samples.
Look at the Ribbon MDI Sample using the Office 2013 Word Theme with Frame Theme.
Also play with restore, maximize and resize. -cpede
|
|
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64) Language: Visual Studio 2017 (C++) |
|
agontarenko
Admin Group Joined: 25 March 2016 Status: Offline Points: 299 |
Post Options
Thanks(0)
|
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 |