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;
}
}
* 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;
}
}
相关文章推荐
- Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xm
- 'System.Threading.ThreadStateException' occurred in "System.Windows.Forms.dll " in opencv1.1 version
- (原)mysql错误1093 You can't specify target table 'wms_cabinet_form' for update in FROM clause
- creating bean with name 'dataSource' defined in class path resource错误的解决办法
- c#在windows form开发时多线程对UI…
- Error creating bean with name 'sessionFactory' defined in ServletContext resource
- Error creating bean with name 'dataSource' defined in class path resource [applicationContext.xml]: Initialization of bean faile
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContex
- How To Find User's SIDs in windows
- mysql 一个较特殊的问题:You can't specify target table 'wms_cabinet_form' for update in FROM clause
- Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xm
- No configuration found for the specified action: '/myNameSpace/login.action' in namespace: ''. Form
- 关于C#中的错误:The type 'X' does not exists in the "Y"
- Error creating bean with name 'txManager' defined in file
- Creating a Windows Service in C#
- ssh2 整合 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in Servl
- Spring异常:Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/classes/applicationContext.
- creating bean with name 'sessionFactory' defined in ServletContext resource
- Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xm
- Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applica