Original link: http://www.cnblogs.com/xukaixiang/archive/2012/05/27/2520059.html
When I was working on a software today, I found that the form Win32 created could not respond to WM_LBUTTONDBLCLK messages. After a Google Baidu, finally found a solution;
The form does not respond to WM_LBUTTONDBLCLK messages, as long as the style members of the WNDCLASS and cs_dblclks styles are added when registering the window class.
Here are a few CS styles:
Cs_hredraw: redraws The window when the width of the form changes.
Cs_vredraw: redraws The window when the height of the form changes.
Cs_dblclks: Can receive user's double-click event in the window.
CS_OWNDC: Assigns individual device environments to each window in the class.
Cs_noclose: Disables the "close" command in the System menu.
CS_CLASSDC: Assigns a shared device environment to each window of the window class.
CS_PARENTDC: Specifies the device environment in which the child window inherits its parent window. 、
Cs_savebits: Save the portion of the screen image that is obscured by the window as a bitmap. When the window is moved, Windows uses the saved bitmap to reconstruct the screen image.
Resolve WIN32 window does not respond to WM_LBUTTONDBLCLK messages