Hello,
Can someone help me and translate these C# instructions to Cobol?
public Form1()
{
InitializeComponent();
this.FormBorderStyle = FormBorderStyle.None;
this.DoubleBuffered = true;
this.SetStyle(ControlStyles.ResizeRedraw, true);
}
Rectangle Top1 {
get {
return new Rectangle(0, 0, this.ClientSize.Width, 10);
}
}
protected override void WndProc(ref Message messages)
{
base.WndProc(ref messages);
if (messages.Msg == 0x84) // WM_NCHITTEST
{
var cursor12 = this.PointToClient(Cursor.Position);
if (Top1.Contains(cursor12)) {
messages.Result = (IntPtr)12;
}
}
}
Thanks,
Luiz Furlanetto.