Hi,
I m developing a window application and need to project the application to multiple monitors. I m using the NVIDIA control to manage the displays. When I changed the FormBorderStyle properties to None and added the following codes below, my nView option is not available anymore. I cant send my application to its respective displays as usual.
protected override CreateParams CreateParams
{
get
{
CreateParams cp = base.CreateParams;
cp.Style = WS_CLIPCHILDREN | WS_MINIMIZEBOX | WS_SYSMENU;
cp.ClassStyle = CS_DBLCLKS;
return cp;
}
}
protected override void WndProc(ref Message m)
{
if (m.Msg == WM_NCHITTEST)
{
Point pt = this.PointToClient(new Point(m.LParam.ToInt32()));
if (ClientRectangle.Contains(pt))
{
m.Result =
new IntPtr(HTCAPTION);
return;
}
}
base.WndProc(ref m);
}
Hope someone can help me sort out this problem soon. Need the option to be available again?