Code: Select all
Procedure pptproc( hwnd, msg, wParam, lParam)
Select msg
Case #WM_LBUTTONUP
scrollareachild=pptLVstruct(a)\scrollareachild
pptnumber=CountList(PptLVnumber())
For a=0 To pptnumber-1
ClearList(FindChild())
EnumChildWindows_(pptLVstruct(a)\scrollareachild, @EnumChildProc(), 0)
ResetList(FindChild())
ForEach FindChild()
Index = ListIndex(FindChild())
If hwnd = FindChild()\childwindowhandle
SendMessage_(FindChild()\childwindowhandle,#BM_SETCHECK,#BST_UNCHECKED,0)
ForEach FindChild()
If hwnd <> FindChild()\childwindowhandle
SendMessage_(FindChild()\childwindowhandle,#BM_SETCHECK,#BST_UNCHECKED,0)
EndIf
Next
EndIf
Next
Next
EndSelect
ProcedureReturn CallWindowProc_(origproc(0),hwnd,msg,wParam,lParam)
EndProcedure now my procedure to create the gadget is
Code: Select all
ProcedureDLL PPtListview(number,x,y,width,height,Imagenumber)
;;;;;yadayada
origproc(0)= SetWindowLong_(GadgetID(pptLVstruct(Index)\childimages[a]), #GWL_WNDPROC, @pptproc())
endprocedure
when i tailbite the code to a PB lib, and test the gadget out, the pptproc() subclassing does NOT work. doesnt tailbite when compiling look at the procedure where the subclassing is pointing to and include that code?
any help is appreciated to get this code to work. i DO NOT want to use setwindowcallback(), as i am trying to AVOID that. i want to be able to subclass from a tailbitten compiled PB library.
