Closed hellottyp closed 1 year ago
Hello, thank you for your information.
This is library's problem. I'll fix future release, but could you add 1 line (see below) and try again?
// about line 260.
builder.RenderStream(ref pinCategory, ref mediaType, vcap_source, null, null);
vw.put_Owner(controlHandle);
vw.put_MessageDrain(controlHandle); <- ADD THIS LINE.
panel1.MouseMove += (s, ev) =>
{
Console.WriteLine("mouse move"); // work well
};
panel1.MouseLeave += (s, ev) =>
{
Console.WriteLine("mouse leave"); //fired too
};
panel1.MouseClick += (s, ev) =>
{
Console.WriteLine("mouse click"); //not work
};
I have a none border window.I want to drag the window by the container of the camera.
It seems that it is limitation of DirectShow. https://stackoverflow.com/questions/35488532/ivideowindow-messagedrain-not-working-in-vb
Please use MouseUp and MouseDown event instead.