那里有关于IShellChangeNotify::OnChange的实例代码,跪谢!! 讲解IShellChangeNotify的内容网页,小弟深表感谢 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 STDMETHODIMP CMyShellChangeNotify::OnChange(LONG lEvent, LPCITEMIDLIST pidl1, LPCITEMIDLIST pidl2){ HRESULT hr = E_FAIL; int iImage; switch(lEvent) { // An image in the system image list has changed. case SHCNE_UPDATEIMAGE: { hr = S_OK; if (pidl2) iImage = SHHandleUpdateImage(pidl2); else iImage = *(int UNALIGNED *)((BYTE *)pidl1 + 2); if (iImage != -1) { // Process iImage as desired. } break; } // Other cases } return hr;}http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/reference/functions/shhandleupdateimage.asp 关于利用textout打印小票换行的问题 格式化磁盘的方法 如何实现点击按钮后按钮无效,按钮中程序执行完后自动恢复,再此过程中再此点击按钮不响应 CFileDialog 小算法,高手来指点下迷津 如何用调用外部程序打开文件(*.txt,*.doc) tcp方式发送会出现阻塞,这时是通过什么机制避免的 关于文件类型! 如何在对话框中的CRichEditCtrl里面使用Tab排版? 钩子高手帮帮忙。如何安装一个系统读文件的钩子? activex控件如何取得本IE窗口的SESSION和COOKIE啊。。。 怎样做一个弹出式菜单?
LPCITEMIDLIST pidl1,
LPCITEMIDLIST pidl2)
{
HRESULT hr = E_FAIL;
int iImage; switch(lEvent)
{
// An image in the system image list has changed.
case SHCNE_UPDATEIMAGE:
{
hr = S_OK; if (pidl2)
iImage = SHHandleUpdateImage(pidl2);
else
iImage = *(int UNALIGNED *)((BYTE *)pidl1 + 2);
if (iImage != -1)
{
// Process iImage as desired.
}
break;
}
// Other cases
}
return hr;
}
http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/reference/functions/shhandleupdateimage.asp