最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
messagebox相对于div层居中解决方法
时间:2011-03-13 编辑:简简单单 来源:一聚教程网
messagebox相对于div层居中解决方法
public void wndprocret(object sender, wndprocreteventargs e)
{
switch (e.cw.message)
{
case wndmessage.wm_initdialog:
case wndmessage.wm_unknowinit:
user32.movewindow(e.cw.hwnd, rect.left, rect.top, rect.width, rect.height, 1);
// uninstall this hook
windowshook wndhook = (windowshook)sender;
debug.assert(wndprocrethook == wndhook);
wndprocrethook.uninstall();
wndprocrethook = null;
break;
default: break;
}
}
经过调用使用如下代码
public void wndprocret(object sender, wndprocreteventargs e)
{
switch (e.cw.message)
{
case wndmessage.wm_initdialog:
case wndmessage.wm_unknowinit:
case wndmessage.wm_activate://tony 2011.3.12 update 这是能否显示在当前父窗体中央的关键!
user32.movewindow(e.cw.hwnd, rect.left, rect.top, rect.width, rect.height, 1);
// uninstall this hook
windowshook wndhook = (windowshook)sender;
debug.assert(wndprocrethook == wndhook);
wndprocrethook.uninstall();
wndprocrethook = null;
break;
default: break;
}
}
-
上一个: json数据转换成有效数组三种方法
-
下一个: js if else优化方法
相关文章
- IE的margin居中问题几种解决办法 10-06
- div在IE8下不居中问题解决办法 05-07
- div层火狐居中在ie不居中 11-12
- div居中代码 09-02
- div 底部对齐居中 04-10
- 不用float实现div模块居中布局 01-11