需要带有搜索功能
简单的添加一个图标不算
这个代码(VC6)已经有了
如下
CRegKey reg;
char KeyName[]="Software\\Microsoft\\Internet Explorer\\Extensions\\{06926B30-424E-4f1c-8EE3-543CD96573DC}";
TCHAR PathName[MAX_PATH];
TCHAR IconPathName[MAX_PATH]; ///正常时的图标全路径
TCHAR HotIconPathName[MAX_PATH]; ///鼠标覆盖时的图标全路径
GetModuleFileName(0,PathName,MAX_PATH); ///得到本可执行文件的路径
strcpy(IconPathName,PathName);
strcpy(HotIconPathName,PathName);
strcat(HotIconPathName,",131"); ///131是图标的ID,你可以以资源方式打开EXE文件就可以看到所有资源及其ID
strcat(IconPathName,",129");
reg.Create(HKEY_LOCAL_MACHINE,KeyName);
reg.SetValue("{1FBA04EE-3024-11D2-8F1F-0000F87ABD16}","CLSID");
reg.SetValue("Yes","Default Visible");
reg.SetValue("VC知识库","ButtonText");
reg.SetValue(IconPathName,"Icon");
reg.SetValue(HotIconPathName,"HotIcon");
/////假如是执行脚本,可以是reg.SetValue("c:\\test.html","Script"); ///在test.html 存放你的脚本代码<br>
reg.SetValue("http://www.vckbase.com/","Exec");///打开网页 是选自 vckbase上面的浙江省温岭市电信局 王骏 先生的

解决方案 »

  1.   

    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/Shell/programmersguide/shell_adv/bands.asp
    这里是一篇很有价值的文章
    正在分析中
      

  2.   

    faint~~~~~~~~~
    怎么没有兄弟关注啊??
    看来应该放到VC里面去
      

  3.   

    http://www.euromind.com/iedelphi/ie5tools.htm. 
    看到了一些Delphi的代码
    可惜还有一些没有实现的功能
    http://www.vckbase.com/document/viewdoc/?id=1457
    这个代码也正在分析
    可惜编译使用VC6 VC2003 VC2005均出现错误
    如果有朋友关心这个错误
    我明天贴出
      

  4.   

    http://www.microsoft.com/msj/1199/bandobj/bandobj.aspx
      

  5.   

    Xtreme Toolkit Pro v9.60
    能看到源码功能强的一塌糊涂
      

  6.   

    to loverx(烟花---俺想有系列之俺想有部车) ( ) 
    能否给我提供一份代码
    我在网上搜索不到
    谢谢
    [email protected] jiangsheng(蒋晟.Net[MVP]) ( ) 
    我下载下来编译了
    不是我要的效果
    倒是这里http://www.codeproject.com/atl/ietoolbartutorial.asp
    有点意思不过还是谢谢各位
      

  7.   

    Xtreme Toolkit Pro v9.60
    代码写的超级经典
    就是资料太少,一切都要靠自己
      

  8.   

    C:\Documents and Settings\Administrator\桌面\WholeProject\MotleyFool_src\MotleyFool\MFToolbar.cpp(35) : error C2065: 'TBSTYLE_EX_MIXEDBUTTONS' : undeclared identifier
    C:\Documents and Settings\Administrator\桌面\WholeProject\MotleyFool_src\MotleyFool\MFToolbar.cpp(58) : error C2065: 'BTNS_BUTTON' : undeclared identifier
    C:\Documents and Settings\Administrator\桌面\WholeProject\MotleyFool_src\MotleyFool\MFToolbar.cpp(58) : error C2065: 'BTNS_AUTOSIZE' : undeclared identifier
    C:\Documents and Settings\Administrator\桌面\WholeProject\MotleyFool_src\MotleyFool\MFToolbar.cpp(58) : error C2065: 'BTNS_SHOWTEXT' : undeclared identifier
    MotleyFool.cpp
    ReflectionWnd.cpp
    StockBar.cpp
    Generating Code...
    Error executing cl.exe.MotleyFool.dll - 4 error(s), 0 warning(s)下面是我查到的解决方法
    但是我还是没有解决
    大侠帮忙看看
    谢谢Hello,You need to make sure the library in the SDK not the Visual Studio is the one the linker picks up. I first tried adding the path of the SDK library using Tools->Options->Directories Tab. I placed the SDK path at the top of the order, but this did not solve the error. Instead, I added the path of the SDK library here:Project->Settings->C++ Tab->Category Proprocessor. 
    In the additional include directories, I entered the SDK path. After that all worked ok.
    I hope it helps.You can check for previous threads. Several of them deal with your problem. If I remember, you need to install the SDK platform. To use the dll, you need to register it, the project do it for you. You can read the final part of the tutorial to understand how to use it in IE.
    need   platform   sdk.
    下载之后将sdk里的头文件设置为最前.