If gadgets are created with #PB_Any, the wrong DialogID is entered, so the wrong IdFrom comes in the Notify NMHDR.
With X64 this is 64bit.
Window Notify NMHDR\idFrom
Window Notify NMHDR\idFrom
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Re: Window Notify NMHDR\idFrom
The issue occurs because Windows uses the GetDlgCtrlID function to obtain the control ID value, and its return value is always a 4-byte integer.
If a valid 64-bit ID value is set when a gadget is created, it is not a bug in PB.
Therefore, there is no general solution, and you must use a workaround as shown below.
If a valid 64-bit ID value is set when a gadget is created, it is not a bug in PB.
Therefore, there is no general solution, and you must use a workaround as shown below.
Code: Select all
*hdr.NMHDR = lParam
Gadget = GetWindowLongPtr_(*hdr\hwndFrom, #GWLP_ID)
; Is it a valid PB gadget?
If GadgetID(Gadget) = *hdr\hwndFrom
...
EndIf

