Message box with cancel button only

后端 未结 3 885
半阙折子戏
半阙折子戏 2021-01-15 05:36

Can we have a message box with cancel button only ? If so , any hints ? Is there a built in api method to get only messagebox with cancel button alone/

How to create

3条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-15 05:46

    For a message box that only displays a notification, I believe it's convention to use an "OK" box. Cancel seems a bit, redundant?

    But i suppose if you wanted to do it, you could do it by defining your own message box object and specify the buttons yourself using "Cancel" as the text attribute.

    C++ nor any other language has a built-in function for defining message boxes with just "Cancel" again, as "OK" is the convention.

提交回复
热议问题