virtual BOOL Create(
   CWnd* pParentWnd,
   LPCTSTR lpszTemplateName,
   UINT nStyle,
   UINT nID 
);
virtual BOOL Create(
   CWnd* pParentWnd,
   UINT nIDTemplate,
   UINT nStyle,
   UINT nID 
);
/*********************************************************/
nID    The control ID of the dialog bar.nIDTemplate    The resource ID of the CDialogBar object's dialog-box template.
lpszTemplateName    A pointer to the name of the CDialogBar object's dialog-box resource template.
有谁能详细解释一下nID,nIDTemplate,lpsztemplateName.
不是求翻译,是求解释.
谢谢.

解决方案 »

  1.   

    翻译就是解释nID 工具条ID
    nIDTemplate 工具条对象—> 对话框模板资源ID
    lpszTemplateName  指向 工具条对象—> 对话框资源模板的字符串
      

  2.   

    http://topic.csdn.net/u/20070331/02/83c9f1fe-ff11-4631-b7b4-1338cc61d79a.html
      

  3.   

    // nID是控件ID,也就是生成的DialogBar的ID,每个控件在程序中都有一个ID值,可将每个ID都看成是是一个int值,在Resource.h文件中都有定义。一般来说,一个合法的ID应该是唯一的。
    // nIDTemplate是DialogBar模板的ID,也就是DialogBar那个资源的ID
    // 同一个模板可以生成多个控件
    // lpszTemplateName是资源名称.