GetKeyState with K_ALT_F4

Post Reply
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

GetKeyState with K_ALT_F4

Post by Silvio.Falconi »

on a dialog I insert

ON INIT ( oDlg:bValid := { || !GetKeyState( VK_ESCAPE ) },; run ok

but I wish block also alt+f4 (K_ALT_F4)

GetKeyState accept more parameters ?

I make ON INIT ( oDlg:bValid := { || !GetKeyState( VK_ESCAPE ) .and. !GetKeyState( K_ALT_F4 ) },;

and it make error not found K_ALT_F4
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
Post Reply