Option "Do not show it again" in message blocks

In C ++ / MFC, what is the easiest way to show a message box with the option "Don't show it again"?

In my case, I just want a simple MB_OK message box (one OK button).

+3
source share
5 answers
+14
source

If on Vista and above you can use the new TaskDialogAPI.
Here is a usage example with the "Do not show again" checkbox.

+6
source

, CDialog , .

, , . DoModal() , .

+5

. , @Stefan , .

, XMessageBox. , , , . XMessageBox http://www.codeproject.com/KB/dialog/xmessagebox.aspx.

+2

Source: https://habr.com/ru/post/1720584/


All Articles