none
对话框回车键和取消键如何屏蔽 RRS feed

  • 问题

  • 进入对话框后,按回车和取消键会直接退出对话框,说明按这2个键应该是执行了类似确定和取消按钮的功能,但是我需要在里面写入内容,回车正好是换行键,那么如何屏蔽回车的关闭功能呢,请指教
    2013年8月16日 8:05

答案

  • 指的是在编辑框中按回车键吗?如果是的话,设置编辑框属性want return.

    Visual C++ enthusiast, like network programming and driver development. At present is being engaged in the WinCE/Windows Mobile platform embedded development.

    2013年8月16日 10:51
    版主
  • 指的是在编辑框中按回车键吗?如果是的话,设置编辑框属性want return.

    Visual C++ enthusiast, like network programming and driver development. At present is being engaged in the WinCE/Windows Mobile platform embedded development.

    你好,

    如果您想要在编辑框中响应回车键进行换行编辑,首先需要将编辑框的Multiline属性设置为true, 然后设置Want Return 属性为true.

    希望对您有帮助!

    May


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.


    2013年8月20日 5:35

全部回复

  • 指的是在编辑框中按回车键吗?如果是的话,设置编辑框属性want return.

    Visual C++ enthusiast, like network programming and driver development. At present is being engaged in the WinCE/Windows Mobile platform embedded development.

    2013年8月16日 10:51
    版主
  • 指的是在编辑框中按回车键吗?如果是的话,设置编辑框属性want return.

    Visual C++ enthusiast, like network programming and driver development. At present is being engaged in the WinCE/Windows Mobile platform embedded development.

    你好,

    如果您想要在编辑框中响应回车键进行换行编辑,首先需要将编辑框的Multiline属性设置为true, 然后设置Want Return 属性为true.

    希望对您有帮助!

    May


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.


    2013年8月20日 5:35