How do I use function TrackPopupMenuEx without a window handle (such as in a DLL)? It always return 0 immediately although I used TPM_NONOTIFY and TPM_RETURNCMD flags.

Do Quyet Tien