For example if you need to get the ID number of a button you can write:
Code: Select all
GetProp_(GadgetID(buttonNumber),"PB_ID")
;or
GetWindowLongPtr_(GadgetID(buttonNumber), #GWLP_ID)
;or the number of a window:
GetProp_(WindowID(windowNumber), "PB_WINDOWID") - 1