Problem with dialog control?

Discussion in 'MFC' started by alis, Sep 1, 2009.

  1. alis

    alis New Member

    Joined:
    Aug 1, 2009
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    0
    1-In my dialog mfc project, when I press enter dialog closed.
    I have some Editbox and Button, I want that When I'm in Editbox and press enter it work like tab and when press enter on button it work like button click.
    How can I do it?

    2- I have a CheckBox button, I setfocus this object in initdialog, but when I run program, it isn't focused. Where is my mistake?

    Thanks
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice