In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article will explain in detail how to apply the EnableWindow () function. The content of the article is of high quality, so the editor will share it for you as a reference. I hope you will have some understanding of the relevant knowledge after reading this article.
Function prototype:
BOOL EnableWindow (
HWND hWnd, / / handle to window (I) BOOL bEnable / / flag for enabling or disabling input (I))
Function function:
This function disables / allows the specified window or control to reject / accept mouse and keyboard input. When disabled, the window does not respond to mouse and key input, and when allowed, the window accepts all input.
Parameters:
HWnd: handle to a forbidden / allowed window.
BEnable: defines whether windows are allowed or disabled. If this parameter is TRUE, the window is allowed. If this parameter is FALSE, the window is disabled.
Return value:
If the window is originally in the prohibited state, the return value is not zero; if the window is in the allowed state, the return value is zero. To get more error messages, call the GetLastError function.
Note:
If the permission / prohibition status of the window changes, the Enblewindow function sends a WM_ENABLE message. If the window is disabled, then all of its child windows are also disabled, even if they are not sent WM_ENABLE messages.
The window must be in the allowed state before it can be activated. For example, if an application is displaying a modeless dialog box and its main window is disabled, the application must put its main window in the allowed state before undoing the dialog box. Otherwise, other windows will accept keyboard input focus and be activated. If the child window is disabled, the system ignores the window when determining which window accepts the mouse message.
The window defaults to the allowed state when it is created. To create a window that is initialized to a forbidden state, the application needs to specify the WS_DISABLED style in the CreateWindow or CreateWindowEX function. After the window is created, the application can use the EnbleWindow function to place the window in the allowed or prohibited state.
Applications can use this function to allow / disable a control in a dialog box. Prohibited controls can neither accept keyboard input nor be accessed by the user.
Quick check:
Windows NT:3.1 and above
Windows:95 and above
Windows CE:1.0 and above
Header file: Winuser.h
Library file: user32.lib.
On how to carry out the application of EnableWindow () function to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.