I know how to do it when creating the window but the problem is I need to CHANGE THE FLAGS AFTER THE WINDOW IS ALREADY CREATED!!!
Is it possible?
Please help (no one ever really does)
Is it possible?
Please help (no one ever really does)
SuperStrict Global win:TGadget = CreateWindow( "Window", 0,0, 128,128, Null, WINDOW_RESIZABLE | WINDOW_TITLEBAR) Global btn:TGadget = CreateButton( "Test", 32,32, 75,25, win) Global btn2:TGadget = CreateButton( "Exit", 32,64, 75,25, win) While WaitEvent() Select EventID() Case EVENT_GADGETACTION Select EventSource() Case btn ' change window style Local hwnd:Int = QueryGadget( win, QUERY_HWND) Local style:Int = GetWindowLongA( hwnd, GWL_STYLE) SetWindowLongA( hwnd, GWL_STYLE, style & ~( WS_CAPTION | WS_BORDER | WS_THICKFRAME)) ' only way i could get it to update itself SetGadgetShape( win, GadgetX(win),GadgetY(win), GadgetWidth(win) + 1,GadgetHeight(win) + 1) SetGadgetShape( win, GadgetX(win),GadgetY(win), GadgetWidth(win) - 1,GadgetHeight(win) - 1) Case btn2 Exit EndSelect Case EVENT_WINDOWCLOSE Exit EndSelect Wend EndNote, i could not get the window to update itself after the change, no matter which invalidate/redraw/whatever functions i tried. so i resorted to resizing it instead, which is allmost garuanteed ;)