How to disable Scroll-Bars in List-Control in XP ?
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
I want to have a scroll-bar, I want it to have a non-client area (I draw a nice frame around it). I override
OnNCCalcSize/OnNCPaint
, I calculate and draw my nice border but Windows-XP overwrites parts of it with the blue Vertical/Horizontal Scroll-Bars. I've triedInitializeFlatSB(this->m_hWnd); FlatSB_EnableScrollBar(this->m_hWnd, SB_BOTH, ESB_DISABLE_BOTH); FlatSB_ShowScrollBar(this->m_hWnd, SB_BOTH, ESB_DISABLE_BOTH);
but it doesn't help. Has anybody stumbled upon this problem ? In Windows-2000 my message-overriding prevents Windows from repainting it's scroll-bar, but under XP it somehow manages to get it in and mess-up my border :-) thanks