MFC CTreeCtrl on Smartphone

I create an MFC app using VS2005 for Smartphone. A CTreeCtrl (sitting on a CFormView) is not processing any keyboard input. For example, pressing the arrow keys or Action key does not expand/contract nodes. Am I missing something simple



Answer this question

MFC CTreeCtrl on Smartphone

  • Amr Adel

    By default, CTreeCtrl on Smartphone has limited navigation:

    Expand/Collapse node = Action Key
    Move focus = Up/Down
    Check/Uncheck box = <nothing>

    A sugeestion is to override this for Smartphone so that:

    Expand/Collapse node = Left/Right key
    Move focus = Up/Down
    Check/Uncheck box = Action key

    Hope that helps.


  • MFC CTreeCtrl on Smartphone