How do I remove the icon that appears in the caption bar on the window? I tried using the SETICON but the problem is PureBasic doesn't recognize ICON_SMALL or ICON_LARGE

Code: Select all
OpenWindow(0, #PB_Ignore, #PB_Ignore, 240,120, "No System Menu", #PB_Window_TitleBar)
CreateGadgetList(WindowID(0))
ButtonGadget(0,224,0,16,16,"X")
TextGadget(1,16,32,160,20,"No Control-Buttons either")
Repeat
EvID = WaitWindowEvent()
EvGd = EventGadget()
If EvID = #PB_Event_Gadget
If EvGd = 0
Quit = 1
EndIf
EndIf
Until Quit = 1
Not necessarilyKaeru Gaman wrote:nProblem is: you need the SystemMenu to have the Min/Max/Close Buttons.
Code: Select all
OpenWindow(0,0,0,320,240,"No Window Icon", #WS_OVERLAPPEDWINDOW | #WS_VISIBLE | 1)
SetWindowLong_(WindowID(0),#GWL_EXSTYLE,#WS_EX_DLGMODALFRAME)
HideWindow(0,0)
While WaitWindowEvent() ! #PB_Event_CloseWindow : Wend