PRB: ISMOUSE Function Always Returns .T. in Windows 95 & 98 (190262)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 3.0b
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
- Microsoft Visual FoxPro for Windows 6.0
This article was previously published under Q190262 SYMPTOMS
When running Visual FoxPro versions 3.x and 5.x in Windows 95 or Windows
98, the ISMOUSE() function always returns .T. regardless of the presence of
the mouse. However, the ISMOUSE() function works as expected in Windows NT.
CAUSE
Visual FoxPro is using the GetSystemMetrics API function to check
SM_MOUSEPRESENT to determine if a mouse is present or not. If
GetSystemMetrics returns zero (false), you would expect ISMOUSE() to return
.F.. However, in Windows 95 or Windows 98, the GetSystemMetrics API always
returns .T. regardless of the presence of the mouse.
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 5/12/2003 |
---|
Keywords: | kbprb KB190262 |
---|
|