I've created a WTL based owner drawn listview control. In case of receiving WM_VSCROLL message, I want to repaint the whole listview control so I call Invalidate() followed by UpdateWindow() in WM_VSCROLL message handler function.
class CListViewExClass : ....
// Handle remaining OCM_xxxx messages
LRESULT OnReflectedDrawItem(UINT msg, WPARAM wParam, LPARAM lParam, BOOL& handled)
// Draw my list with customization
LRESULT OnVScroll(UINT msg, WPARAM wParam, LPARAM lParam, BOOL& isHandled)
to be called when I call
. But that does not happen.
Can someone help me to figure out what's wrong with my code.
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)