Jump to content

How to force the IE page to expand to full screen along with the GUI.


tommytx
 Share

Recommended Posts

This GUI is eating my lunch. I have one similar that is working but I cannot detect what the difference is... When it hits the code to expand full screen only the gui expands.. I also have a maximize button on the Gui and it also expands the gui only and not the page... Any help would be appreciate.. or tell me what I might check... Thanks.

I have used the _IEproperty to view via msgbox that the title is correct on both the ie page and the gui..

$name = "Win1"
$width = 500
$height = 250
$left = 20
$top = 10

$hGUI = GUICreate($name, $width, $height, $left, $top, BitOR($WS_EX_TOPMOST, $WS_SIZEBOX, $WS_MINIMIZEBOX, $WS_MAXIMIZEBOX, $WS_BORDER), $WS_EX_COMPOSITED)
 
$oIE1 = ObjCreate("Shell.Explorer.2")
 
$Obj_ctrl = GUICtrlCreateObj($oIE1, 2, 2, $width-10, $height-10)
 
GUICtrlSetResizing($Obj1_ctrl, 0x0001)

GUISetState(@SW_SHOW)

WinSetState("Win1", "", @SW_MAXIMIZE)
WinActivate("Win1")
Link to comment
Share on other sites

This is very important.. I keep trying everything I can think of.. Just tried changing the name of the gui compared to the title of the page loaded.. but no help.. I suppose I could order a resize, but there has got to be a way to make the page maximize... I have done it before with a GUi.. just cannot remember how I did it...

Link to comment
Share on other sites

This one expands.

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$name = "Win1"
$width = 500
$height = 250
$left = 20
$top = 10
$hGUI = GUICreate($name, $width, $height, $left, $top, BitOR($WS_EX_TOPMOST, $WS_SIZEBOX, $WS_MINIMIZEBOX, $WS_MAXIMIZEBOX, $WS_BORDER), $WS_EX_COMPOSITED)
$oIE1 = ObjCreate("Shell.Explorer.2")
$Obj_ctrl = GUICtrlCreateObj($oIE1, 2, 2, $width - 10, $height - 10)
;GUICtrlSetResizing($Obj1_ctrl, 0x0001);>>>>>>>>>>>>>>>>>>>>>>>>>
GUICtrlSetResizing($Obj_ctrl, 0x0001)
GUISetState(@SW_SHOW)
;WinSetState("Win1", "", @SW_MAXIMIZE)
;WinActivate("Win1")

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd

Re: below post.

My wife has asked me before; "how many smart mistakes have you made?"

(I didn't want to bump so edit instead)

Edited by lorenkinzel
Link to comment
Share on other sites

$Obj_ctrl = GUICtrlCreateObj($oIE1, 2, 2, $width - 10, $height - 10)

;GUICtrlSetResizing($Obj1_ctrl, 0x0001);>>>>>>>>>>>>>>>>>>>>>>>>>

Thank you! What a stupid mistake.. on naming the obj_ctrl...

Obviously it would not work... you made my day..

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...