How to fix error when overriding a ListView
When dragging on the form, an error occurs.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
#include "MyComponent.h"
using namespace System;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
public ref class FlickerFreeListView : public ListView
{
protected:
virtual void WndProc(Message m) override
{
// Filter WM_LBUTTONDBLCLK
if (m.Msg != 0x203)
{
ListView::WndProc(m);
}
}
};
| |
Error : Failed to load toolbox item it will be removed from the toolbox
Last edited on
Topic archived. No new replies allowed.