none
CMFCRibbonEdit类的问题 RRS feed

  • 问题

  • 做xp时候的界面的时候,获取控件可以用getDlgItem什么的。

    但在vs2010中,怎么样去获取比如说CMFCRibbonEDIT这样的元素的ID或者编辑框里的文字啊?

    谢谢!

    2010年9月28日 12:21

答案

  • 看看ribbon资源的源代码……

    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年9月29日 14:53
    版主

全部回复

  • CMFCRibbonEdit::GetEditText

    ID是在构造函数里传进去的



    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年9月28日 19:05
    版主
  • 那如果是在界面那里做出来的CMFCRibbonEdit呢?

    不是在窗口填个id不需要构造函数么。。。以前是用getdlgitem获取控件来对控件进行操作,现在这种的替代是什么 ?

    求解。。。谢谢

    2010年9月29日 6:57
  • 看看ribbon资源的源代码……

    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年9月29日 14:53
    版主
  • 感谢提醒,我去找找看。。居然忘记这个了,太懒了
    2010年9月30日 10:17