How to pass a method as callback to a Windows API call?

前端 未结 6 1853
萌比男神i
萌比男神i 2020-12-14 13:10

I\'d like to pass a method of a class as callback to a WinAPI function. Is this possible and if yes, how?

Example case for setting a timer:

TMyClass          


        
6条回答
  •  抹茶落季
    2020-12-14 13:49

    I've used MakeObjectInstance a few times to do the same. Here's an article on the subject: How to use a VCL class member-function as a Win32 callback

提交回复
热议问题