我想为listview中的每一个子项subitem都设置tooltip,使用了LVM_SETINFOTIP的消息,但是每次都执行失败?上网查了很多天,都没有找到原因,希望各位指导一下!!万分感谢!!!!!!
在stdafx.h中添加了:
#pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
LVM_SETINFOTIP的调用是在我创建了listview,并且添加了子项之后的:
LVSETINFOTIP setinfotip = {0}; setinfotip.cbSize = sizeof(LVSETINFOTIP);
setinfotip.dwFlags = 0;
setinfotip.iItem = 1;
setinfotip.iSubItem = 1; setinfotip.pszText = TEXT("test"); if(FALSE == SendMessage(hlistview, LVM_SETINFOTIP, 0, &setinfotip))
MessageBox(hwnd, TEXT("fail"), TEXT("fail"), MB_OK);
LVM_SETINFOTIP SDKlistview
在stdafx.h中添加了:
#pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
LVM_SETINFOTIP的调用是在我创建了listview,并且添加了子项之后的:
LVSETINFOTIP setinfotip = {0}; setinfotip.cbSize = sizeof(LVSETINFOTIP);
setinfotip.dwFlags = 0;
setinfotip.iItem = 1;
setinfotip.iSubItem = 1; setinfotip.pszText = TEXT("test"); if(FALSE == SendMessage(hlistview, LVM_SETINFOTIP, 0, &setinfotip))
MessageBox(hwnd, TEXT("fail"), TEXT("fail"), MB_OK);
LVM_SETINFOTIP SDKlistview
解决方案 »
- 画图后,怎样保存所画图形的信息
- 如何让CreateFile打开文件后,其他的程序也能打开这个文件?
- 文件包含
- 设置字体问题
- 请问一下关于Rect的问题
- 为何选用Multithreaded DLL编译程序出错
- 谁能帮我解释一下,事务处理CommitTrans和BeginTrans是干吗的?用来保存变化?那用pSet->Edit()+pSet->Update不也一样吗
- 请问哪有Acrobat Reader 中文版 5.0 for Linux ?
- 帮我看看这段程序,我有些不明白。
- CreateWindow创建子窗口时父窗口的背景会刷新吗
- vs2012开发的OCX,XP下regsvr32找不到文件
- OnMouseWheel事件触发两次,求各路大神帮帮忙,小弟跪谢了!!!
Note To use this message, you must provide a manifest specifying Comclt32.dll version 6.0.
#pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")这样也是可以的吧?
类型 24
ID 1
manifest.bin"#pragma comment..." 会被 ignoredvc2005 以上又不用 管。