CWnd::MessageBox:

只有CWnd的派生类才可以使用MessageBox

所以应用程序类中使用:AfxMessageBox

    // 初始化 OLE 库
    if (!AfxOleInit())
    {
        AfxMessageBox(IDP_OLE_INIT_FAILED);
        return FALSE;
    }

 

Afx_xxx 全局函数,不属于某个类特有

xxxEx:   xxxW:,拓展函数:

如:TextOut(),TextOutW(),用法一样

命名规范

形参:

isFlag

isPressTest

成员变量

m_xxx

m_hWnd

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-13
  • 2021-12-25
猜你喜欢
  • 2021-12-26
  • 2021-08-23
  • 2022-12-23
  • 2021-10-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案