Exemple #1
0
        // CUSTOM METHODS

        public static string GetMessageBoxText(DialogBoxCommandID messageId)
        {
            string str = Marshal.PtrToStringAuto(MB_GetString((int)messageId));

            if (str[0] == '&')
            {
                str = str.Substring(1, str.Length - 1);
            }
            return(str);
        }
Exemple #2
0
 public static extern IntPtr MB_GetString(DialogBoxCommandID strId);