Win32:编辑框冒泡

mac2022-06-30  35

#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);

转载于:https://www.cnblogs.com/shenchao/archive/2013/06/06/3121483.html

相关资源:JAVA上百实例源码以及开源项目
最新回复(0)