Changeset 1097
- Timestamp:
- 6/3/2009 2:41:24 AM (4 years ago)
- File:
-
- 1 edited
-
trunk/eraser6/Eraser.Util/UxThemeApi.cs (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/eraser6/Eraser.Util/UxThemeApi.cs
r1071 r1097 142 142 143 143 if (NativeMethods.IsThemeBackgroundPartiallyTransparent(hTheme, 144 (int)NativeMethods.MENUPARTS.MENU_POPUPBACKGROUND, 0)) 145 { 146 NativeMethods.DrawThemeParentBackground(control.Handle, hDC, ref rect); 147 } 148 NativeMethods.DrawThemeBackground(hTheme, hDC, 149 (int)NativeMethods.MENUPARTS.MENU_POPUPBACKGROUND, 0, ref rect, ref rect); 150 151 if (NativeMethods.IsThemeBackgroundPartiallyTransparent(hTheme, 152 (int)NativeMethods.MENUPARTS.MENU_POPUPBORDERS, 0)) 153 { 154 NativeMethods.DrawThemeParentBackground(control.Handle, hDC, ref rect); 155 } 144 (int)NativeMethods.MENUPARTS.MENU_POPUPITEM, 0)) 145 { 146 NativeMethods.DrawThemeBackground(hTheme, hDC, 147 (int)NativeMethods.MENUPARTS.MENU_POPUPBACKGROUND, 0, ref rect, ref rect); 148 } 149 156 150 NativeMethods.DrawThemeBackground(hTheme, hDC, (int) 157 151 NativeMethods.MENUPARTS.MENU_POPUPBORDERS, 0, ref rect, ref rect); … … 168 162 rect.Offset(1, 0); 169 163 170 if (NativeMethods.IsThemeBackgroundPartiallyTransparent(hTheme,171 (int)NativeMethods.MENUPARTS.MENU_POPUPGUTTER, 0))172 {173 NativeMethods.DrawThemeParentBackground(control.Handle, hDC, ref rect);174 }175 164 NativeMethods.DrawThemeBackground(hTheme, hDC, 176 165 (int)NativeMethods.MENUPARTS.MENU_POPUPGUTTER, 0, ref rect, ref rect); … … 234 223 (item.Enabled ? NativeMethods.POPUPCHECKSTATES.MC_CHECKMARKNORMAL : 235 224 NativeMethods.POPUPCHECKSTATES.MC_CHECKMARKDISABLED) : 0); 236 if (NativeMethods.IsThemeBackgroundPartiallyTransparent(hTheme,237 (int)NativeMethods.MENUPARTS.MENU_POPUPCHECK, checkState))238 {239 NativeMethods.DrawThemeParentBackground(control.Handle, hDC, ref imgRect);240 }241 225 NativeMethods.DrawThemeBackground(hTheme, hDC, 242 226 (int)NativeMethods.MENUPARTS.MENU_POPUPCHECK, checkState,
Note: See TracChangeset
for help on using the changeset viewer.
