Skip to content
Advertisement

How to specify what actually happens when Yes/No is clicked with ctypes MessageBoxW?

JavaScript

Ive seen a lot of people show this code, however nobody has ever specified how to actually make the Yes/No work. Theyre buttons, and they are there, however how does one specify what actually happens when you click either or?

Advertisement

Answer

Something like this with proper ctypes wrapping:

JavaScript

See the documentation for MessageBox for the various value of the utype argument.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement