OwnerDraw CButton mfc focus

前端 未结 1 1139
没有蜡笔的小新
没有蜡笔的小新 2021-01-28 23:01

With standard buttons if I have OK and Cancel, with default on OK and I press the right arrow the Cancel is focused and pressing enter on the keyboard the Cancel button function

1条回答
  •  天涯浪人
    2021-01-28 23:37

    The major reason is that the Dialog normally uses BS_DEFPUSHBUTTON and BS_PUSHBUTTON to indicate this, but the ownerdraw flag is mutually exclusive to that.

    Check this article: It explains the complete Background: http://www.codeproject.com/Articles/1318/COddButton

    0 讨论(0)
提交回复
热议问题