Hi,
I'm Trying to detect enter key in OnNotify()
a key is detect but the enter key is not return...
What am i doing wrong?
if(code = LVNKEYDOWN) /* Double click droit */
{
if (*(NMLISTVIEW)pnmhdr.iItem) <> -1
{
NMTCKEYDOWN VKey;
messagebox(this,numtostr(Vkey.wVKey),"test");
if Vkey.wVKey = 0x0D //Enter
{
//do something
}
}
}
KrYpT, LVN_KEYDOWN Notification has other syntax, the lParam points to NMLVKEYDOWN structure
struct LVKEYDOWN {
NMHDR hdr;
WORD wVKey; // Virtual key code
UINT flags; // zero
}
You can download free winsows xp/server/vista platform SDK, or the whole MSDN and lookup here for all questions :)
i've tryed NMTCKEYDOWN (already defined Aurora struct) which is the same as NMLVKEYDOWN (also tryed)
it return the samething...
ok found it,
if (*(NMTCKEYDOWN)pnmhdr.wVKey) = 0x0D //Enter
is doing the trick ;)
Thank sapero :)