Changeset 2069 for trunk/eraser
- Timestamp:
- 5/8/2010 1:54:00 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/eraser/Eraser.Util/ExtensionClasses/SplitButton.cs
r2067 r2069 45 45 { 46 46 CreateParams createParams = base.CreateParams; 47 createParams.Style |= NativeMethods.BS_SPLITBUTTON; 47 if (IsSupportedOnCurrentPlatform) 48 createParams.Style |= NativeMethods.BS_SPLITBUTTON; 48 49 return createParams; 49 50 } … … 86 87 //we will also show the context menu when the user right-clicks 87 88 //the button. 88 if ( Environment.OSVersion.Version.Major >= 6)89 if (!IsSupportedOnCurrentPlatform) 89 90 return; 90 91 break; … … 92 93 93 94 base.WndProc(ref m); 95 } 96 97 /// <summary> 98 /// Checks whether the current platform supports the control. 99 /// </summary> 100 private static bool IsSupportedOnCurrentPlatform 101 { 102 get 103 { 104 return Environment.OSVersion.Version.Major >= 6; 105 } 94 106 } 95 107
Note: See TracChangeset
for help on using the changeset viewer.
