message box flags

About this tag
Message box flags are constants used with the Windows MessageBox function to control the appearance and behavior of dialog boxes. In a Windows service application on Windows 10, using the MB_DEFAULT_DESKTOP_ONLY flag can cause unexpected UI issues, such as preventing the Start menu's power button popup menu from appearing. This problem was observed in version 10.0.18362 but not in earlier versions like RS4 and RS5. The tag covers discussions about flag combinations like MB_YESNO and MB_ICONWARNING, and their impact on system interactions, particularly in service contexts.
  1. F

    Windows 10 Can not show Popup menu items when clicking Power button from the start menu

    On Windows 10, version: 10.0.18362, I have a Windows service application. In the service process, when I use the following code to display a user interactive message box: //Start Impersonate Loggon User MessageBox(IntPtr.Zero, message, caption, MB_DEFAULT_DESKTOP_ONLY | MB_YESNO |...
Back
Top