 |
EnableWindow ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
Enables or disables mouse and keyboard input to the specified window or control. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
BOOL EnableWindow(
HWND hWnd, // handle to window
BOOL bEnable // enable or disable input
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER EnableWindow IN user32;
INTEGER hwnd,;
INTEGER fEnable
|
 |
 |
 |
| Parameters: |
 |
hWnd
[in] Handle to the window to be enabled or disabled.
bEnable
[in] Specifies whether to enable or disable the window. If this parameter is TRUE, the window is enabled. If the parameter is FALSE, the window is disabled. |
 |
 |
| Return value: |
 |
| If the window was previously disabled, the return value is nonzero. |
 |
 |
| My comment: |
 |
A window must be enabled before it can be activated. That is why VFP application can not be accessed through the Task Manager, when disabled with this function.
Only a few windowed controls in VFP expose HWND property. They can be disabled or enabled by calling this function. |
 |
 |
| Word Index links for the EnableWindow : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2001-08-02 12:00:00 | | Modified: | 2007-02-07 09:31:41 | Visited in last 7 days: 14 |