Code: Select all
;Main tab
Main:
Gui, Main: Default
Gui, Add, Tab3, x12 y9 w770 h380 hwndhTab vTab gTab, EmailServicesa|SocialMediaServicesa|StreamingServicesa|GamingServicesa|Helpa
hParent := DllCall("GetWindow", Ptr, hTab, UInt, GW_HWNDNEXT := 1, Ptr)
Gui, EmailServicesa: Default
Gui, +Parent%hParent% -Caption +ToolWindow
Gui, Color, B4CAEA
Gui, Add, Button, x272 y19 w30 h30 gSecond, Settings
Gui, Show, NA x5 y5 w750 h345
Gui, Main: Show
return
;Settings tab
Second:
;Gui, Main: Destroy
Gui, Second: Default
Gui, Add, Tab3, x12 y9 w770 h380 hwndhTab vTab2 gTab2, EmailServices|SocialMediaServices|StreamingServices|GamingServices|Help
hParent := DllCall("GetWindow", Ptr, hTab, UInt, GW_HWNDNEXT := 2, Ptr)
Gui, EmailServices: Default
Gui, +Parent%hParent% -Caption +ToolWindow
Gui, Color, B4CAEA
Gui, Show, NA x5 y5 w750 h345
Gui, Second: Show
return