Very usefull code. I used in a Borland Builder project(obviously, with small changes) and it works fine. But,
sir, check if the function OFNHookProc process sometime the message WM_DRAWITEM. I attached a code line with
"SendMessage" function with the message WM_DRAWITEM to force OFNHookProc to process this message
and it works. But before that, no.
Thank you, sir.