Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
WinEnableWindow (1.2)
◄Function Group► ◄Overview► ◄Up► ◄Next► ◄Previous►
────────────────────────────────────────────────────────────────────────────
#define INCL_WINMESSAGEMGR
BOOL WinEnableWindow(hwnd, fEnable)
HWND hwnd; /* handle of the window */
BOOL fEnable; /* enable-state flag */
The WinEnableWindow function sets the window's enabled state.
Parameter Description
────────────────────────────────────────────────────────────────────────────
hwnd Identifies the window whose enabled state is to be set.
fEnable Specifies the new enabled state. If TRUE, the window state is set
to enabled. If FALSE, the window state is set to disabled.
Return Value
The return value is TRUE if the function is successful or FALSE if an error
occurs.
Comments
If the enable state of the window is changing, a WM_ENABLE message is sent
before this function returns.
If a window is disabled, all its child windows are implicitly disabled,
although they are not sent a WM_ENABLE message.
See Also
WinIsWindowEnabled, WM_ENABLE
♦