Taskbarbuttoncreated message not received

Source: Internet
Author: User

A small wtl dialog boxProgramTo add the progress bar feature unique to Windows 7 on the taskbar, you cannot register the message.

Registerwindowmessage (_ T ("taskbarbuttoncreated"); successful, but no message can be received in any case.

Re-use the Wizard to create a simple applet, and we can find it works. After half a day of comparison, we gradually reduced the scope of the problem and suffered for several hours,

Finally, we found that the original dialog box has a property: ws_ex_toolwindow

Remove this attribute.

Diff-r fd2da7b96050 ling/Ling. RC
--- A/ling/Ling. RC sat Mar 03 13:57:18 2012 + 0800
++ B/ling/Ling. RC sat Mar 03 16:00:40 2012 + 0800
-89,7 + 89,6 @@
Language lang_neutral, sublang_neutral
Idd_maindlg dialog 0, 0,351, 28
Style ds_3dlook | ds_center | ds_shellfont | ws_border | ws_visible | ws_popup | ws_sysmenu
-Exstyle ws_ex_toolwindow
Font 8, "Ms shell DLG"
{
Control "exit", idok, wc_button, ws_tabstop | bs_ownerdraw, 335, 0, 14, 14
Diff-r fd2da7b96050 ling/release/ling.exe
Binary File ling/release/ling.exe has changed

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.