Win32:编辑框冒泡
#include <commctrl.h >
#pragma comment(linker,"\"/manifestdependency:type='win32' \
name='Microsoft.Windows.Common-Controls' version='6.0.0.0' \
processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
// put this call in WinMain() or elsewhere
//InitCommonControls();
Please, PLEASE change the samples in the article to processorArchitecture="*" instead of "processorArchitecture="X86"" because processorArchitecture="X86" works on x64 sometimes - just enough to miss it during testing but failing very badly in production deployment.
=》
#pragma comment(linker,"\"/manifestdependency:type='win32' \
name='Microsoft.Windows.Common-Controls' version='6.0.0.0' \
processorArchitecture='X86' publicKeyToken='6595b64144ccf1df' language='*'\"")
ZeroMemory(&Data.Tip, sizeof(EDITBALLOONTIP));
Data.Tip.cbStruct = sizeof(EDITBALLOONTIP);
Data.Tip.ttiIcon = TTI_ERROR;
//Edit_ShowBalloonTip(hWnd,&Data.Tip );
::SendMessage(hWnd, EM_SHOWBALLOONTIP, 0, (LPARAM)&Data.Tip);