pedrit0 Posted February 2, 2011 Share Posted February 2, 2011 Hi all If I drag and drop a file from an explorer window to a "Shell.Explorer.2" object that is created within a form : it works If I try the same drag and drop to a "Shell.Explorer.2" object that is created within a tab : it does NOT work I tested it under Windows 7 and Windows XP as administrator : same behaviour on both systems My problem can be understood with the following example code where you can see 2 "Shell.Explorer.2" objects. One is directly created in the form while the other one is created within a tab. expandcollapse popup#include <GUIConstantsEx.au3> #include <WindowsConstants.au3> Example() Func Example() Local $oIE, $oIE2, $GUIActiveX1, $GUIActiveX2 Local $msg $oIE = ObjCreate("Shell.Explorer.2") $oIE2 = ObjCreate("Shell.Explorer.2") GUICreate("Embedded Web control Test", 570, 470, 0, 0, BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS, $WS_CLIPCHILDREN)) $TabSet = GUICtrlCreateTab(10, 50, 550, 220, 0) $TabSheet1 = GUICtrlCreateTabItem("test") $GUIActiveX1 = GUICtrlCreateObj ($oIE, 20, 100, 525, 150) $GUIActiveX2 = GUICtrlCreateObj ($oIE2, 20, 280, 525, 150) GUISetState() $oIE.navigate("c:\") $oIE2.navigate("c:\windows") While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop EndSelect WEnd GUIDelete() EndFunc I am almost sure this is a not a bug : I think I am missing something (required style or extended style or whatever), but cannot find what. Can you help me to open my eyes :-) thx a lot. Pedrit0 Pedrit0, calme et tranquille, la tete dans les nuages et la b*** dans le champagne. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now