There is a button. How can I set my own wndProc handler through subclassing?

  • SetWindowLong(hWnd, GWL_WNDPROC, (LONG)newProc); where newProc is a new handler. SetWindowLong() will return the address of the previous handler, which must be converted to WNDPROC and called from the new window procedure instead of DefWindowProc() . - ฿Š฿š฿ค฿˜

0