I am currently attempting to apply
CExtScrollbars (for which I have custom skins) to all my custom non-ProfUIS components with the
CExtNCSB template. Here are the problems I’ve encountered :
On my custom
CListCtrl class (
class MyCListCtrl : public CExtNCSB < CListCtrl > ), the
CExtScrollbars are applied and are functional, but when I use the up/down buttons or the mousewheel to scroll.. the central part changes to the default windows scrollbar and changes back to the
CExtScrollbar when I stop scrolling. If I define the template on the declarations of my custom
CListCtrl components (
CExtNCSB < CListCtrl > _ListCtrl1; ) everything works fine (no more flickering to the old scrollbar).
I tried to apply the
CExtNCSB template to my custom
CListBox components :
class MyCTreeCtrl : public CExtNCSB < CTreeCtrl >
class MyCListBox : public CExtNCSB < CListBox >
And in both cases I get the following compilation error : ’CTreeCtrl/CListBox::CTreeCtrl/CListBox’ : no overloaded function takes 2 arguments.
MyCListBox I tried to apply the following templates :
class MyCListBox : public CExtNCSB_Impl< CExtANCSB < CListBox > > and the
CExtScrollbars were applied, but for almost every event on the window / scrollbars (focus gain/loss, scroll up/down, mousewheel, click) they flicker back to the default windows scrollbars and sometimes take a while before turning back to the
CExtScrollbars. Again, defining the template on every
MyCListBox declaration solves this problem (
CExtNCSB < MyCListBox > _ListBox1;).
I would prefer not having to define the template on every single non-ProfUIS component declaration, just making sure the template is applied properly in the custom non-ProfUIS component classes. Could you please point me in the right direction?
Thanks in advance,