用setwindowplacement设置的ie页面最大化
我用setwindowplacement函数来设置ie页面的最大化可是运行结果是页面自动关闭了
不知道是为什么?、
现在把那段代码贴出来请高手指教,
我是用vb做的。。
Dim sText As String * 255
Dim lpwndlp As WINDOWPLACEMENT
Dim poin As POINTAPI
Dim poit As POINTAPI
Dim r As RECT
GetWindowPlacement txtWnd.Text, lpwndlp ///txtWnd.Text是得到的页面句柄
lpwndlp.Length = sizeof(WINDOWPLACEMENT)
lpwndlp.flags = WPF_RESTORETOMAXIMIZED
lpwndlp.showCmd = SW_SHOWMINIMIZED
lpwndlp.ptMaxPosition.x = 0
lpwndlp.ptMaxPosition.y = 0
SetWindowPlacement txtWnd.Text, lpwndlp
我这样做不知道是不是正确·~~请高手指教
补充:VB , 基础类