Resolve WIN32 window does not respond to WM_LBUTTONDBLCLK messages

Source: Internet
Author: User
Tags win32 window

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.