I'm trying to implement a files in use dialog and I've noticed a discrepancy 
between the values in Microsoft.Deployment.WindowsInstaller.MessageResult and 
the values of the dialog box command ID's in WinUser.h.  Here's what I see in 
MessageResult:



    public enum MessageResult

    {

        Error = -1,

        None = 0,

        OK = 1,

        Cancel = 2,

        Abort = 2,

        Retry = 3,

        Ignore = 4,

        Yes = 5,

        No = 6,

    }





Here's what I see in WinUser.h:



/*

 * Dialog Box Command IDs

 */

#define IDOK                1

#define IDCANCEL            2

#define IDABORT             3

#define IDRETRY             4

#define IDIGNORE            5

#define IDYES               6

#define IDNO                7



MessageResult values appear to be off by 1 from Abort on.   Is this a known 
problem?



-J

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to