PB window class name

Everything else that doesn't fall into one of the other PB categories.
Seldon
Enthusiast
Enthusiast
Posts: 405
Joined: Fri Aug 22, 2003 7:12 am
Location: Italia

PB window class name

Post by Seldon »

Do you know the class name PB gives to its windows opened with OpenWindow() ?? I'm using FindWindow() and I want to be 100% sure, so I'd like to check both the name of my window (title) both the class name. Thank you in advance.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

I just ran the following program and it seems that Purebasic registers the window class as 'WindowClass_' + #window.

Code: Select all

OpenWindow(8, 100, 200, 195, 260, #PB_Window_SystemMenu | #PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget, "PureBasic Window")
  a$=Space(1024)
  GetClassName_(WindowID(),@a$,1024)
  Debug a$
  Repeat
    EventID.l = WaitWindowEvent()
    If EventID = #PB_Event_CloseWindow
      Quit = 1
    EndIf
  Until Quit = 1
End
I may look like a mule, but I'm not a complete ass.
Post Reply