SetWindowCallback()

Syntax

SetWindowCallback(@ProcedureName())
Description
For experienced programmers only. It's only supported on Microsoft Windows OS. Normal events should be handled with the regulars WaitWindowEvent() or WindowEvent(). It associates a callback to handle the events of the current window. All the events are catched by this callback and can be processed here. Warning, this way is lowlevel. The callback procedure must have 4 parameters. Here is a sample code to use a callback correctly:
  Procedure MyWindowCallback(WindowID, Message, wParam, lParam)
    Result = #PB_ProcessPureBasicEvents
    ;
    ; you code here
    ;
    ProcedureReturn Result
  EndProcedure

Supported OS

Windows

<- ResizeWindow() - Window Index - SetWindowTitle() ->