您的位置:首页 > 编程语言 > C#

Creating a immovable windows' form in c#

2009-07-24 15:38 344 查看
/*
* 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;
}
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐