CListCtrl such problem under windows XP
-
I'm using CListCtrl under windows xp2(with visual style on) with vc++6 create a CListCtrl using LVS_REPORT style and set it LVS_EX_GRIDLINES, When the listctrl has more than one page AND use manifest to make the program using visual styles, click the scroll bar to page down、page up, then it has problems, see the picture[^]. but when not using manifest to set the visual styles, Listctrl doesn't has such problems. Any idea to solve this problem?
-
I'm using CListCtrl under windows xp2(with visual style on) with vc++6 create a CListCtrl using LVS_REPORT style and set it LVS_EX_GRIDLINES, When the listctrl has more than one page AND use manifest to make the program using visual styles, click the scroll bar to page down、page up, then it has problems, see the picture[^]. but when not using manifest to set the visual styles, Listctrl doesn't has such problems. Any idea to solve this problem?
What happens if you remove the
LVS_EX_GRIDLINES
style?"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
-
What happens if you remove the
LVS_EX_GRIDLINES
style?"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
If remove LVS_EX_GRIDLINES, it works fine. But I need LVS_EX_GRIDLINES extend style. Can't we resolve this? I saw eMule has such problem also! And when run the MSDN sample about ListCtrl, it has such problem too when using xxx.exe.manifest to enable application visual style. But if don't use xxx.exe.manifest to enable application visual style, even we use LVS_EX_GRIDLINES, it then works fine! It's all about visual styles.
-
If remove LVS_EX_GRIDLINES, it works fine. But I need LVS_EX_GRIDLINES extend style. Can't we resolve this? I saw eMule has such problem also! And when run the MSDN sample about ListCtrl, it has such problem too when using xxx.exe.manifest to enable application visual style. But if don't use xxx.exe.manifest to enable application visual style, even we use LVS_EX_GRIDLINES, it then works fine! It's all about visual styles.
fantasy1215 wrote:
If remove LVS_EX_GRIDLINES, it works fine.
Even when styles are in use?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
-
I'm using CListCtrl under windows xp2(with visual style on) with vc++6 create a CListCtrl using LVS_REPORT style and set it LVS_EX_GRIDLINES, When the listctrl has more than one page AND use manifest to make the program using visual styles, click the scroll bar to page down、page up, then it has problems, see the picture[^]. but when not using manifest to set the visual styles, Listctrl doesn't has such problems. Any idea to solve this problem?
Try to add the extended style LVS_EX_DOUBLEBUFFER. I discovered this solved some grid drawing problems when working on CGridListCtrlEx. Though it introduced this funny drawing issue. P.S. Also check that the dialog containing the CListCtrl has "Clip Children" set to false.
modified on Saturday, October 25, 2008 4:01 AM
-
Try to add the extended style LVS_EX_DOUBLEBUFFER. I discovered this solved some grid drawing problems when working on CGridListCtrlEx. Though it introduced this funny drawing issue. P.S. Also check that the dialog containing the CListCtrl has "Clip Children" set to false.
modified on Saturday, October 25, 2008 4:01 AM
Thank you for your reply, I try to Add LVS_EX_DOUBLEBUFFER to the ListCtrl, but the VC6 doesn't know it at all.(And make sure the dialog "Clip Children" set to false) I'm using vc6 under xp sp3, and with flatform sdk for xp sp2[^] installed.(I've download the Windows Server 2003 PSDK February 2003 Edition from MSDN too, but it can't be installed) I've googled, it says define LVS_EX_DOUBLEBUFFER yourself as follow: #define LVS_EX_DOUBLEBUFFER 0x00010000 I did so, and it compiles through, while the flick problem still exists. Wait for your reply!
-
Thank you for your reply, I try to Add LVS_EX_DOUBLEBUFFER to the ListCtrl, but the VC6 doesn't know it at all.(And make sure the dialog "Clip Children" set to false) I'm using vc6 under xp sp3, and with flatform sdk for xp sp2[^] installed.(I've download the Windows Server 2003 PSDK February 2003 Edition from MSDN too, but it can't be installed) I've googled, it says define LVS_EX_DOUBLEBUFFER yourself as follow: #define LVS_EX_DOUBLEBUFFER 0x00010000 I did so, and it compiles through, while the flick problem still exists. Wait for your reply!
The LVS_EX_DOUBLEBUFFER requires that one set _WIN32_WINNT >= 0x501. But if that doesn't help, then I have no other suggestions.