EnableHardwareInput API Problem in VB4.0 
Author Message
 EnableHardwareInput API Problem in VB4.0

I am developing an application in a Windows 3.1 environment utilizing
Visual Basic 4.0 (Professional Edition - 16 bit).  The application I am
developing uses the SSTAB control.  In an attempt to prevent multiple
mouse clicks or accelerator key presses from interfering with my code in
the SSTAB control click event I would like to suppress total keyboard
input as I enter the click event and restore keyboard input when I exit.
I tried using the EnableHardwareInput API to achieve this and all works
well except:
  1. The first time I use the mouse to click elsewhere I need to depress
      the button twice instead of just once as is usual.
  2. When I exit my application, all keyboard keys except the ESC and the
     space bar are inoperable.

Am I missing something here?  Is there a way to make sure that the
keyboard is properly initialized when exiting the SSTAB click event?

Tue, 07 Mar 2000 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. EnableHardwareInput API

2. Req: Problems using API call SetWindowWord in 16Bit VB4

3. Problem plotting from API calls in VB4.0

4. Fun API problems using VB4.0

5. Help in VB4: Problem in opening Project in VB4

6. Upgrade Problems: VB4.0/16Bit to VB4.0/32Bit

7. PROBLEM: Adding a printer via API, then creating a printer Share via API (source included)

8. VB4.0 and API for Windows 95

9. Can you use win32s API with VB4?

10. Error in VB4 calling registry API functions

11. API functions VB4.0 32bits

12. Windows API Via VB4


Powered by phpBB® Forum Software