c++ - Get the WNDPROC for windows handle -
exist windows api function retrieve wndproc windows handle?
thanks in advance.
use getwindowlongptr(hwnd, gwlp_wndproc).
caution: getwindowlongptr #defined getwindowlong 32-bit systems, in order import in delphi might need use getwindowlong instead. well, getwindowlongptr #defined either getwindowlongptra or getwindowlongptrw (for non-unicode , unicode targets), again might need choose right name manually delphi if import system there not smart.
remember if going call obtained window proc, should using callwindowproc. @in silico hint.
please note value returned not real pointer window procedure. it's kind of handle recognized , correctly processed callwindowproc. example, you'll not real function pointer if application ansi, window belongs unicode component (or vice versa). see this posting in the old new thing more details.
Comments
Post a Comment