j'ai changé la disposition pour la mettre horizontal (vertical a l'origine )
2 exploreurs dans la meme fenetre
mais bon, on peut aussi faire 2 fenetres qui seraient collé l'une a l'autre
ou utiliser les MDI fenetres
ça ouvre des perspective
Code : Tout sélectionner
; Auteur : Le Soldat Inconnu
; Version de PB : 4.50
; version horizontal et mis en Pb5.50 par Zorro
If OpenWindow(0, 0, 0, 1024, 768, "Groupe Exploreur", #PB_Window_SystemMenu | #PB_Window_ScreenCentered | #PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget | #PB_Window_SizeGadget) = 0
End
EndIf
RunProgram("explorer.exe")
Delay(1000)
id = GetForegroundWindow_()
SetParent_(id, WindowID(0))
; SetWindowLongPtr_(Id2, #GWL_HWNDPARENT, Id)
Style = GetWindowLongPtr_(id, #GWL_STYLE)
SetWindowLongPtr_(id, #GWL_STYLE, (Style | #WS_CHILDWINDOW) & ~#WS_TILEDWINDOW)
SetWindowPos_(id, 0, 0, 0, WindowWidth(0)/2, WindowHeight(0) , 0)
RunProgram("explorer.exe")
Delay(1000)
id2 = GetForegroundWindow_()
SetParent_(id2, WindowID(0))
; SetWindowLongPtr_(Id2, #GWL_HWNDPARENT, Id)
Style = GetWindowLongPtr_(id2, #GWL_STYLE)
SetWindowLongPtr_(id2, #GWL_STYLE, (Style | #WS_CHILDWINDOW) & ~#WS_TILEDWINDOW)
SetWindowPos_(id2, 0, WindowWidth(0)/2, 0, WindowWidth(0)/2, WindowHeight(0) , 0)
Repeat
Event = WaitWindowEvent()
Select Event
Case #PB_Event_Menu
Select EventMenu() ; Menus
EndSelect
Case #PB_Event_Gadget
Select EventGadget() ; Gadgets
EndSelect
Case #PB_Event_SizeWindow
SetWindowPos_(id, 0, 0, 0, WindowWidth(0)/2, WindowHeight(0) , 0)
SetWindowPos_(id2, 0, WindowWidth(0)/2, 0, WindowWidth(0)/2, WindowHeight(0) , 0)
EndSelect
Until Event = #PB_Event_CloseWindow