#include "wx/msw/private.h"
+#if defined(__WXWINCE__)
+ #include <ole2.h>
+ #include <shellapi.h>
+ #include <aygshell.h>
+#endif
+
// include <commctrl.h> "properly"
#include "wx/msw/wrapcctl.h"
event.m_col = nmHDR->iItem;
break;
+#ifdef __WXWINCE__
+ case GN_CONTEXTMENU:
+#endif __WXWINCE__
case NM_RCLICK:
{
eventType = wxEVT_COMMAND_LIST_COL_RIGHT_CLICK;
event.m_item.m_data = GetItemData(iItem);
break;
+#ifdef __WXWINCE__
+ case GN_CONTEXTMENU:
+#endif __WXWINCE__
case NM_RCLICK:
// if the user processes it in wxEVT_COMMAND_RIGHT_CLICK(),
// don't do anything else
{
wxASSERT_MSG( IsVirtual(), _T("this is for virtual controls only") );
- if ( !::SendMessage(GetHwnd(), LVM_SETITEMCOUNT, (WPARAM)count, LVSICF_NOSCROLL) )
+ if ( !::SendMessage(GetHwnd(), LVM_SETITEMCOUNT, (WPARAM)count,
+ LVSICF_NOSCROLL | LVSICF_NOINVALIDATEALL) )
{
wxLogLastError(_T("ListView_SetItemCount"));
}