/*
* System Menu Command Values from WinUser.h
*/
// #define SC_SIZE 0xF000
// #define SC_MOVE 0xF010
// #define SC_MINIMIZE 0xF020
// #define SC_MAXIMIZE 0xF030
// #define SC_RESTORE 0xF120
private const int SC_SIZE = 0xF000;
private const int SC_MOVE = 0xF010;
private const int SC_MINIMIZE = 0xF020;
private const int SC_MAXIMIZE = 0xF030;
private const int SC_RESTORE = 0xF120;
protected override void WndProc(ref Message m)
{
switch( m.WParam.ToInt32() )
{
case SC_SIZE:
break;
case SC_MINIMIZE:
break;
case SC_RESTORE:
break;
default:
base.WndProc (ref m);
break;
}
}
Creating a immovable windows' form in c#
最新推荐文章于 2025-05-02 21:40:32 发布