Border not painted correctly |
Post Reply |
Author | |
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
Posted: 04 August 2006 at 12:59pm |
I've been playing a bit with the report control and it worked just fine until I put it inside a tab control. Not sure if it's important, but I have a quite advanced window hierarchy:
I have a view with a splitter. In this splitter one of the panes is another view with a tab control (CXTPTabControl). This tab control has a number of views. Now, finally, in one of these views I have a report control.
Please note that ALL (all views, frames and tabs) my windows have the WS_CLIPCHILDREN | WS_CLIPSIBLINGS style enabled. Also, my report control has the WS_EX_STATICEDGE style. My report controls look OK in other windows, but not inside my tab control!
PROBLEM:
The border of the report control is not painted correctly. I tried disabling the skinning engine, but with no success. What am I doing wrong?
Screenshot of the borderless report control:
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Show some code - how you create report, what styles, etc.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
void CMyView::OnInitialUpdate() if (m_bInitDone) SetResize(IDC_REPORT_SHORTQUESTIONS, SZ_TOP_LEFT, SZ_TOP_RIGHT); CXTPReportColumn *pColumnYes = new CXTPReportColumn(1, _T("Ja"), 28); pColumnYes->SetAlignment(xtpColumnIconCenter); const int NUM_SHORT = 16; m_bInitDone = TRUE; Should I strip my project and send you a sample where the error is present, or can you find the error by looking at the code above?
|
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
I made a test project which demonstrates the problem.
Please take a look.
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
m_reportShortQuestions.ModifyStyleEx(0, WS_EX_STATICEDGE, SWP_FRAMECHANGED);
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
Hah! You're da man!
Thank you for your fast response!
|
|
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 |