WS_CLIPCHILDREN question |
Post Reply |
Author | |
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
Posted: 11 June 2009 at 5:57am |
I have a special CFrameWnd with a CXTPButton placed at the upper-right corner (a close button). My problem is that I want to fill the main window with a gradient (as seen below), but not over my button. I have set WS_CLIPCHILDREN style, so the button area is indeed left alone. However, the button itself is not painted until I hover it. Why?
void CMainFrame::OnPaint()
{
CClientDC dc(this);
CXTPClientRect rect(this);
XTPDrawHelpers()->GradientFill(&dc, rect, RGB(192, 192, 192), RGB(255, 255, 255), FALSE);
}
|
|
PokerMemento - http://www.pokermemento.com/
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Can be reason void CMainFrame::OnPaint()
{
CPaintDC dc(this);
CXTPClientRect rect(this);
XTPDrawHelpers()->GradientFill(&dc, rect, RGB(192, 192, 192), RGB(255, 255, 255), FALSE);
} |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
Thanks :P
|
|
PokerMemento - http://www.pokermemento.com/
|
|
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 |