I want to create a toolwindow with Maximize-&MinimizeGadgets.
This was one of my attempts. But it don't works.
Code: Select all
OpenWindow(0, 0, 0, 219, 85, #PB_Window_SystemMenu|#PB_Window_Invisible|#PB_Window_ScreenCentered|#pb_window_maximizegadget, "ToolWindow") 
SetWindowLong_(WindowID(),#GWL_EXSTYLE,#WS_EX_TOOLWINDOW)   
ShowWindow_(WindowID(),#SW_SHOW)   
Repeat 
    Select WaitWindowEvent() 
    Case #PB_Event_CloseWindow
    Quit = 1 
    EndSelect    
Until Quit = 1 
Can anybody help me ?

