to scum:
    我先给你20分,能不能告诉我第一个怎么调用?

解决方案 »

  1.   

    我来回答你的第一项,可能比较傻,呵呵
    其实很简单呀,你不是想显示internet选项吗?
    你会用shell语句吗?会用就行了,还记得internet选项是控制面板里的一项吗?
    你只要用shell("rundll32.exe inetcpl.cpl")(对不起呀,我知道肯定行,但可能我这句写错了,你去查查就可以了).
    记得给我分呀:))
      

  2.   

    下面这一段是我刚找到的,还没试,应该没问题:Using the ClassWizard, select the "Add Class..." button. Select "From a type library...". Browse to the systems 32 directory and select SHDocVw.dll. Select the IShellDispatch item and click on OK. This will add two files to your project, shdocvw.cpp and shdocvw.h Include shdocvw.h in the source file which is invoking the internet options. Include Initguid.h in the source file which is invoking the internet options.Define the GUID for the shell class: DEFINE_GUID(CLSID_Shell,0x13709620,0xc279,0x11ce,0xa4,0x9e,0x44,0x45,0x53,0x54,0x00,0x00);and some code to actually invoke the control panel applet... 
    IShellDispatch disp;
    HRESULT sc;
    sc = ::CoInitialize(NULL);
    if (FAILED (sc))
    {
    CString str;
    str.Format(_T("Failed to Initialize."));
    TRACE( str) ;
    return;
    }sc = ::CoCreateInstance( CLSID_Shell, NULL, CLSCTX_SERVER,
    IID_IDispatch, (void**)&disp ) ;
    if (FAILED (sc))
    {
    CString str;
    str.Format(_T("Failed to create Instance :-( "));
    TRACE( str) ;
    return;
    }disp.ControlPanelItem("inetcpl.cpl"); 来源:CODEGURU。给分罢
    o o
     -
      

  3.   

    to ab,你这还不是要启动控制面板里的internet选项,不过人家是vb,你怎么找来vc++里的example呀,可惜我没法在网吧里查.
      

  4.   

    据我所知,自动完成功能可以通过如下代码实现:
    Public Declare Function FindWindowEx Lib "User32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long    '此函数用来找到Windows标准编辑框的句柄Public Declare Function SHAutoComplete Lib "Shlwapi.dll" (ByVal hWndEdit As Long, ByVal dwFlags As Long) As Long    '此函数由IE5提供Public Const SHACF_DEFAULT  As Long = &H0   '还有一系列常数表示其他功能,可惜我忘了'具体实现函数
    Public Function DoAutocomplete(ObjX As Object) As Long
        On Error Resume Next
        Dim hWndEdit As Long
        If TypeOf ObjX Is TextBox Then    '如果ObjX类型是TextBox
            hWndEdit = ObjX.hwnd
        ElseIf TypeOf ObjX Is ComboBox Then    '如果ObjX类型是ComboBox
            hWndEdit = FindWindowEx(ObjX.hwnd, 0, "EDIT", vbNullString)
        Else
            Exit Function
        End If
        DoAutocomplete = SHAutoComplete(hWndEdit, SHACF_DEFAULT)
    End Function希望对你有所帮助.
      

  5.   

    trueiceman:对于第一项:具体的做法是,Shell "Control.exe Inetcpl.cpl", vbNormalFocus很简单,如果想调用其他的cpl的话(就是控制面板的东西),可以搜索一下硬盘里的所有的*.cpl文件,再调用便可,当然有些是带参数的。
      

  6.   

        Shell "control.exe inetcpl.cpl", vbNormalFocus
      

  7.   

    哇,看来我错了,应该是"control.exe inetcpl.cpl",而且这么多人都会,可人家的问题问了那么久怎么就没有人回答呢?(我的专家分好低,每次都是可怜的10分)