Insert-->NewClasss里找不到这个类。

解决方案 »

  1.   

    只能从一个比较相近的控件类先派生,然后再替换成CDialogBar。这是没有办法的事。只能这样。
      

  2.   

    没关系, 随便找个基类,比如CWnd, 建好后将CWnd改成CDialogBar就可以了
      

  3.   

    Insert-->NewClasss-> 选择Generic Class , 在下面的列表写上CDialogBar
      

  4.   

    赞同 ymbymb() ,比如CWnd, 建好后将CWnd改成CDialogBar就可以了(在.h 和.cpp文件都要改)
      

  5.   

    让 striking(硬撑者) 占了先!
      

  6.   

    class CDeviceBar : public CDialogBar
    {
    // Construction
    public:
    CDeviceBar();
             virtual ~CDeviceBar();
             virtual void InitDialogBar(WORD wParam, DWORD lParam);
    }#include "stdafx.h"
    #ifdef _DEBUG
    #define new DEBUG_NEW
    #undef THIS_FILE
    static char THIS_FILE[] = __FILE__;
    #endif/////////////////////////////////////////////////////////////////////////////
    // CDeviceBarCDeviceBar::CDeviceBar()
    {
    }CDeviceBar::~CDeviceBar()
    {
    }
      

  7.   

    为什么需要继承?
    创建一个Dialog资源之后,在程序中:
     CDialogBar dlg;
     dlg.Create( AfxGetApp()->m_pMainnWnd, IDD_DIALOG1);就可以了。