Bad background color in empty CXTPListBox |
Post Reply |
Author | |
JoseAngel
Groupie Joined: 21 March 2006 Location: Spain Status: Offline Points: 35 |
Post Options
Thanks(1)
Posted: 29 March 2016 at 5:46am |
Using
Visual Studio 2015 dark theme, when a CXTPListBox is empty, it draws the background with COLOR_BTNFACE color. I purpose to modify void CXTPListBox::OnPaint() from ... // Let the window do its default painting ... CListBox::DefWindowProc(WM_PAINT, (WPARAM)memDC.m_hDC, 0); memDC.SetWindowOrg(ptOrg); } to ... // Let the window do its default painting ... if( GetCount() != 0 ) CListBox::DefWindowProc(WM_PAINT, (WPARAM)memDC.m_hDC, 0); memDC.SetWindowOrg(ptOrg); } |
|
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 |