none
关于控件类型的问题 RRS feed

  • 问题

  • 最近看书遇到一个问题,书上提到在visual C++中建立MFC AppWizard(exe)中选择“基于对话框”设计对话框界面时,控件类型选择为Label,请问Label到底是哪个控件类型?因为我在controls找不到有Label的。

    2010年10月27日 3:22

答案

  • 是啊,CStatic是对话框资源中Label对应的Win32控件在MFC里面的封装类的类名

    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
    Visual C++ MVP
    2011年1月9日 17:49
    版主

全部回复

  • CStatic

    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
    Visual C++ MVP
    2010年10月27日 5:45
    版主

  • CStatic ?

    你指的是Static  Text吗?或者控件类型Label就是指Static  Text?

    2010年10月27日 14:54
  • 是啊,CStatic是对话框资源中Label对应的Win32控件在MFC里面的封装类的类名

    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
    Visual C++ MVP
    2011年1月9日 17:49
    版主
  • 应该是CStatic控件

    2011年1月10日 3:07
    版主