This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- How to display MessageBox in TOPMOST
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Mar 07, 2022
06:39 AM
How to display MessageBox in TOPMOST
Hi team,
We want to display the message "Are you sure you want to continue?" When uninstalling.
So I use the MessageBox function to send a message like this:
#define MB_TOPMOST 0x00040000L
#define MB_SETFOREGROUND 0x00010000L
...
szMsg = "Confirmation message.";
MessageBox (szMsg, MB_TOPMOST|MB_ICONQUESTION|MB_SETFOREGROUND|MB_YESNO|MB_DEFBUTTON2);
...
Most of these work fine, but MB_TOPMOST may or may not work and is unstable.
Is there a way to make sure the MessageBox stays in the foreground?
Thanks for your support.
- Tags:
- messagebox
(0) Replies