Menu Pop

Post Reply
KRCNET
Posts: 25
Joined: Wed Mar 14, 2007 1:58 pm
Location: Belo Horizonte/MG/Brasil

Menu Pop

Post 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 ??
Cleber Ribeiro Conde
Krc Sistemas
FWH 7.1 / xHarbour 0.99.71 / xMate/ SqlLib
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Menu Pop

Post 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()
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply