Print Page | Close Window

[SOLVED]TabClientWnd border

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=17941
Printed Date: 19 April 2024 at 2:27pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [SOLVED]TabClientWnd border
Posted By: cpede
Subject: [SOLVED]TabClientWnd border
Date 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 (20.3.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)



Replies:
Posted By: Oleg
Date Posted: 23 February 2011 at 10:45am
Hi,

check if your child frame has WS_EX_CLIENTEDGE style.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: cpede
Date 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 (20.3.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)


Posted By: Oleg
Date 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


Posted By: cpede
Date Posted: 24 February 2011 at 4:10am
Perfect, thanks.
 
-cpede


-------------
Product: Xtreme ToolkitPro (20.3.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)


Posted By: cpede
Date 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 (20.3.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)


Posted By: cpede
Date 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 (20.3.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)


Posted By: agontarenko
Date Posted: 01 October 2016 at 11:18am
Hello,

http://forum.codejock.com/uploads/686/XTPTabClientWnd_MDI_Frame_Error_1.png" rel="nofollow -

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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net