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