Moderators: Phil Wright, Chris Porter
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class Form1
Inherits System.Windows.Forms.Form
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class Form1
Inherits ComponentFactory.Krypton.Toolkit.KryptonForm
using ComponentFactory.Krypton.Toolkit;
...
public partial class Form1 : KryptonForm case PI.WM_SETCURSOR:
processed = OnSetCursor(ref m);
break;
private bool OnSetCursor(ref Message m)
{
uint val = PI.GetWindowLong(Handle, -16);
uint newVal = (val - PI.WS_VISIBLE);
PI.SetWindowLong(Handle, PI.GWL_STYLE, (int)newVal); // val & PI.WS_VISIBLE);
try
{
DefWndProc(ref m); // base.WndProc(ref m);
}
finally
{
PI.SetWindowLong(Handle, PI.GWL_STYLE, (int)val);
}
return true;
}
Users browsing this forum: Bing [Bot] and 0 guests