Thank you for your question.
matteocima wrote:When in a translucent form the property .DefaultMenu is not longer working and is always set to false, and the mousedown events are not fired on the form.
See the code of the example Sample4_Translucency (file MyTranslucencyForm.cs):
Code: Select all
protected override void WndProc(ref Message m)
{
if (WM_NCHITTEST == m.Msg)
{
m.Result = new System.IntPtr(HTCAPTION);
}
else
{
base.WndProc(ref m);
}
}
The form handles WM_NCHITTEST to allow user drag the window. If you comment this:
Code: Select all
protected override void WndProc(ref Message m)
{
// if (WM_NCHITTEST == m.Msg)
// {
// m.Result = new System.IntPtr(HTCAPTION);
// }
// else
// {
base.WndProc(ref m);
// }
}
...right click event will work. And the standard menu too (if .StandardMenu = true).