int fm_trackPopupMenu (int hMenu, int type, int x, int y, int style)

Returns the number of the menu item (uItem) that was selected by the user (but only if you use 0 or TPM_RETURNCMD or the style parameter). If no menu item was selected, zero is returned.