我用了SETADDRESSBAR这个函数但是程序没有反映啊,望高手赐教

解决方案 »

  1.   

    在CMainFrame中添加 CString m_strAddress;
    CReBar m_wndReBar;
    CComboBoxEx m_wndAddressBar;
    在OnCreate中添加
    if (!m_wndReBar.Create(this))
    {
    TRACE0("Failed to create rebar\n");
    return -1;      // fail to create
    }
    if (!m_wndAddressBar.Create(CBS_DROPDOWN | WS_CHILD, CRect(0, 0, 200, 120), this, AFX_IDW_TOOLBAR + 1))
    {
    TRACE0("Failed to create combobox\n");
    return -1;      // fail to create
    }
    m_wndReBar.AddBar(&m_wndAddressBar,_T("地址:"));
    添加ON_COMMAND(IDOK, 你的函数名)解决回车自动跳转页面。
    具体建议你参考MSDN中的MFCIE的SAMPLE