下面是C++代码,但是不知道如何在c#下使用禁止窗体重绘:
SendMessage(hWnd, WM_SETREDRAW, FALSE, 0L);
允许窗体重绘:
SendMessage(hWnd, WM_SETREDRAW, TRUE, 0L);
解决方案 »
- 我想做这么小工具,请教一下都需要学习什么知识
- 怎么把字符类型转换时间类型,高手帮看看
- DirectX 9.0c没有sdk吗?
- 关于范型使用的简单问题
- 谁有FastReport C#.net版本的打印实例,分不够就加!!
- 如何实现windowsform框架
- 高手求助~~windows 2003 安装 SQL2005失败
- session里怎样保存LIST对象? 如: Session.add((list<RoomInfo>) temp)?
- MID父类获取子类窗体的问题
- .net,大数据量,存贮过程,参数,速度,麻烦....
- 为每个用户创建一个SQLITE可行吗?
- 求无向图中任意两点间,包含节点数最少的一条路径
public static extern bool SendMessage(
IntPtr hWnd, // handle to destination window
int Msg, // message
int wParam, // first message parameter
[MarshalAs(UnmanagedType.LPTStr)]StringBuilder lParam // second message parameter
);
const int WM_GETTEXT =0x000B;
const int FALSE = 0x0000;
const int TRUE = 0x0001;
SendMessage((IntPtr)this.Handle,WM_SETREDRAW,FALSE,0);
[DllImport( "USER32.DLL ", CharSet=CharSet.Auto, SetLastError=true)]
public static extern bool SendMessage(
IntPtr hWnd, // handle to destination window
int Msg, // message
int wParam // first message parameter
);
const int WM_GETTEXT =0x000B;
const int FALSE = 0x0000;
const int TRUE = 0x0001;
SendMessage((IntPtr)this.Handle,WM_SETREDRAW,FALSE,0);
[DllImport( "USER32.DLL ", CharSet=CharSet.Auto, SetLastError=true)]
public static extern bool SendMessage(
IntPtr hWnd, // handle to destination window
int Msg, // message
int wParam, // first message parameter
int lParam
);
const int WM_GETTEXT =0x000B;
const int FALSE = 0x0000;
const int TRUE = 0x0001;
SendMessage((IntPtr)this.Handle,WM_SETREDRAW,FALSE,0);