看到这样一句话,CPicCap(CWnd* pParent = NULL);   // standard constructor,什么是标准的
构造函数啊?我刚注册的,还每分能给大家,大家原谅啊...........

解决方案 »

  1.   

    ...
    就是说CPicCap(CWnd* pParent = NULL);是类CPicCap的标准构造函数构造函数可以被重载
    如CPicCap(CWnd* pParent = NULL, BOOL bShow);而CPicCap(CWnd* pParent = NULL);则被称标准构造函数,一个名字而已
    当没指定如何初始化时,默认被调用的构造函数如CPicCap cap;
    或CPicCap *pcap = new CPicCap();
    都是调用构造函数CPicCap(CWnd* pParent = NULL);
      

  2.   


    因为窗口的创建需要提供一个父窗口的句柄
    可以参看
    MFC:
    CWnd::Create()或CreateEx参数里都有CWnd* pParentWnd,
    等等SDK:
    CreateWindow,CreateWindowEx参数里都有HWND hWndParent
    等等