Hi Paul,
I saw recently your reply on the PowerBASIC forum about "How to reduce screen flicker in a ListView":
https://forum.powerbasic.com/forum/user-to-user-discussions/programming/751841-how-to-reduce-screen-flicker-in-a-listview?p=751855#post751855 (https://forum.powerbasic.com/forum/user-to-user-discussions/programming/751841-how-to-reduce-screen-flicker-in-a-listview?p=751855#post751855)
Is-it possible to enable double buffering extending style (%LVS_EX_DOUBLEBUFFER) for a ListView control with FireFly ? this option doesn't seem to be available in the visual designer.
Thanks,
Jean-Pierre
Hi Jean-Pierre,
You would need to add code to WM_CREATE to set the style for the Listview. Here is some FB code that I am using in my editor project to set some extended styles for the Listview.
' Add some extended styles
Dim dwExStyle As DWORD
dwExStyle = ListView_GetExtendedListViewStyle(hLV)
dwExStyle = dwExStyle Or LVS_EX_FULLROWSELECT Or LVS_EX_GRIDLINES Or LVS_EX_DOUBLEBUFFER Or LVS_EX_FLATSB
ListView_SetExtendedListViewStyle(hLV, dwExStyle)
Thanks Paul.
I will follow your advice.
Regards,
Jean-Pierre