GetWindowSubclass

Syntax:

GetWindowSubclass( hWnd, pfnSubclass, uID[, uData])

Parameters:

hWnd

=

(in)

pfnSubclass

=

(in) This pointer and the subclass identifier (uID) uniquely identify this subclass callback

uID

=

(in)

uData

=

(out) optional


Return Values:

#TRUE

=

The subclass callback was successfully installed.

#FALSE

=

The subclass callback was not installed.


Description:

Retrieves the reference data for the specified window subclass callback


Example:

  Enumeration
    #Subclass_0
  EndEnumeration

  Procedure Callback(hwnd,uMsg,wParam,lParam,uId,uData)

    ProcedureReturn DefSubclassProc(hwnd,uMsg,wParam,lParam)
  EndProcedure

  hwnd = OpenWindow(0,#PB_Ignore,#PB_Ignore,200,200,"SubClass")

  SetWindowSubclass(hwnd,@Callback(),#Subclass_0,1234)

  If GetWindowSubclass(hwnd,@Callback(),#Subclass_0,@Value)
    Debug "Data = " + Str(Value)
  EndIf

  Repeat
    event = WaitWindowEvent()

  Until event = #PB_Event_CloseWindow


Supported OS:   Windows