Page 1 of 1

Menu Pop

Posted: Wed Jul 20, 2011 12:16 pm
by KRCNET
nIdSelect := TrackPopupMenuEx( hMenu, TPM_RETURNCMD, nRow, nCol, oWnd:hWnd )

Erro : MsgStop(nIdSelect ,"nIdSelect") Retorna .T.


deveria estar retornar um valor numerico do item selecionado

Alguem sabe me dizer porque ??

Re: Menu Pop

Posted: Sun Sep 04, 2011 7:29 pm
by Antonio Linares
Cleber,

TrackPopupMenuEx() returns a BOOL (logical) value. From Windows API:

BOOL
WINAPI
TrackPopupMenuEx(
HMENU hmenu,
UINT uFlags,
int x,
int y,
HWND hwnd,
LPTPMPARAMS lptpm);

so FWPPC returns a logical value using hb_retl()