ExtPaintManager.cpp
上传用户:sesekoo
上传日期:2020-07-18
资源大小:21543k
文件大小:1653k
源码类别:

界面编程

开发平台:

Visual C++

  1. m_bmpRibbonMenuResizingGripperHV.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  2. VERIFY( m_bmpRibbonMenuResizingGripperV.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_MRG_V_OBSIDIAN) ) );
  3. m_bmpRibbonMenuResizingGripperV.Make32();
  4. m_bmpRibbonMenuResizingGripperV.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  5. m_clrRibbonModeMenuTextNormal = RGB(57,60,63);
  6. VERIFY(
  7. m_bmpRibbonModeMenuBorder.LoadBMP_Resource(
  8. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_MENU_BORDER_R1)
  9. )
  10. );
  11. m_bmpRibbonModeMenuBorder.Make32();
  12. m_bmpRibbonModeMenuBorder.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  13. m_clrMenuCaptionText = RGB(57,60,63);
  14. m_rcMenuCaptionBmpPadding.SetRect( 0, 2, 0, 2 );
  15. VERIFY(
  16. m_bmpMenuCaptionBk.LoadBMP_Resource(
  17. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_MENU_CAPTION_BK_R1)
  18. )
  19. );
  20. m_rcPaddingRibbonFileMenuBigBorder.SetRect( 6, 6, 6, 29 );
  21. VERIFY( m_bmpRibbonFileMenuBigBorder.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RM_BIG_BORDER_R1) ) );
  22. m_bmpRibbonFileMenuBigBorder.Make32();
  23. m_bmpRibbonFileMenuBigBorder.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  24. m_rcPaddingRibbonFileMenuOptionsButton.SetRect( 2, 2, 2, 2 );
  25. // VERIFY(
  26. // m_bmpRibbonFileMenuOptionsButtonCold.LoadBMP_Resource(
  27. // MAKEINTRESOURCE(IDB_EXT_2007_RM_OPTION_COLD_R1)
  28. // )
  29. // );
  30. // m_bmpRibbonFileMenuOptionsButtonCold.Make32();
  31. // m_bmpRibbonFileMenuOptionsButtonCold.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  32. VERIFY(
  33. m_bmpRibbonFileMenuOptionsButtonHot.LoadBMP_Resource(
  34. MAKEINTRESOURCE(IDB_EXT_2007_RM_OPTION_HOT_R1)
  35. )
  36. );
  37. m_bmpRibbonFileMenuOptionsButtonHot.Make32();
  38. m_bmpRibbonFileMenuOptionsButtonHot.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  39. VERIFY( m_bmpResizingGripper.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RESIZING_GRIPPER_R1) ) );
  40. m_bmpResizingGripper.Make32();
  41. m_bmpResizingGripper.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  42. // spin bitmaps
  43. VERIFY( m_arrBmpSpinArrowDown. LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_SPIN_ARROW_DOWN_R1) ) );
  44. VERIFY( m_arrBmpSpinArrowUp. LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_SPIN_ARROW_UP_R1) ) );
  45. VERIFY( m_arrBmpSpinDown. LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_SPIN_DOWN_R1) ) );
  46. VERIFY( m_arrBmpSpinUp. LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_SPIN_UP_R1) ) );
  47. }
  48. CExtPaintManagerOffice2010_R1::~CExtPaintManagerOffice2010_R1()
  49. {
  50. }
  51. CExtPaintManagerOffice2010_R2_Blue::CExtPaintManagerOffice2010_R2_Blue()
  52. {
  53. m_bThemedMenuItemsEverywhere = true;
  54. m_clrFillHint = RGB(192,211,235);
  55. m_clrAccentHint = RGB(255,227,140); // RGB(156,193,234);
  56. m_clrIconAlphaColor = RGB(114,121,138);
  57. m_clrAdvTipGradientBottom = RGB(229,229,240);
  58. VERIFY( m_arrMdiRightIcons[0].m_bmpNormal.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_MDI_ICON_SC_MINIMIZE) ) );
  59. VERIFY( m_arrMdiRightIcons[1].m_bmpNormal.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_MDI_ICON_SC_RESTORE) ) );
  60. VERIFY( m_arrMdiRightIcons[2].m_bmpNormal.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_MDI_ICON_SC_CLOSE) ) );
  61. //  m_clrDCA1 = RGB(192,211,235);
  62. //  m_clrDCA2 = RGB(192,211,235);
  63. //  m_clrDCA3 = RGB(192,211,235);
  64. //  m_bDocumentClientAreaBkgndR2 = true;
  65. VERIFY( m_bmpDCA.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_DCA_R2_BLUE) ) );
  66. //  m_bmpDCA.PreMultiplyRGBChannels();
  67. //  m_bmpDCA.PreMultipliedRGBChannelsSet( true );
  68. //  m_clrDCA_Solid = RGB(192,211,235);
  69. m_bUseNcFrameBmpForDockerBkgnd = true;
  70. m_clrCustomDropDownGlyphEnabled = RGB(0,0,0);
  71. m_clrCustomDropDownGlyphDisabled = RGB(141,141,141);
  72. m_clrDockingFrameDark = m_clrFloatingToolbarGripperSolid = RGB(83,96,125);
  73. m_clrDockingFrameCaptionTextActive = RGB(51,51,51);
  74. m_clrDockingFrameCaptionTextInactive = RGB(51,51,51);
  75. m_clrDockingFrameCaptionTextFloatingFixed =  RGB(255,255,255);
  76. m_clrDockingCaptionShapeFixedNormal =  RGB(255,255,255);
  77. m_rcNcFrameBordersActive.SetRect( 3, 4, 3, 2 );
  78. m_rcNcFrameBordersInactive.SetRect( 3, 4, 3, 2 );
  79. m_nCaptionHeightActive = m_nCaptionHeightInactive = 26;
  80. VERIFY( m_bmpNcFrameActive.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_FRAME_ACTIVE_R2_BLUE) ) );
  81. VERIFY( m_bmpNcFrameInactive.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_FRAME_INACTIVE_R2_BLUE) ) );
  82. VERIFY( m_bmpNcFrameActive.Make32() );
  83. VERIFY( m_bmpNcFrameInactive.Make32() );
  84. m_bmpNcFrameActive.AlphaColor( m_clrTransparentNcFrameActive, RGB(0,0,0), 0 );
  85. m_bmpNcFrameInactive.AlphaColor( m_clrTransparentNcFrameInactive, RGB(0,0,0), 0 );
  86. m_clrNcFrameTextActive = RGB(69,69,69); // = RGB(123,123,123);
  87. m_clrNcFrameTextInactive = RGB(163,163,163); // = RGB(183,183,183);
  88. m_bmpNcFrameActive.PreMultiplyRGBChannels();
  89. m_bmpNcFrameActive.PreMultipliedRGBChannelsSet( true );
  90. m_bmpNcFrameInactive.PreMultiplyRGBChannels();
  91. m_bmpNcFrameInactive.PreMultipliedRGBChannelsSet( true );
  92. m_sizeNcButtonShapeInArr.cx = m_sizeNcButtonShapeInArr.cy = 21;
  93. m_nNcBtnIdxNormalActive = m_nNcBtnIdxNormalInactive = 0;
  94. m_rcNcButtonBkPadding.SetRect( 4, 4, 4, 4 );
  95. VERIFY( m_bmpNcButtonBkHover.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_BUTTON_BK_HOVER_R2_BLUE) ) );
  96. VERIFY( m_bmpNcButtonBkPressed.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_BUTTON_BK_PRESSED_R2_BLUE) ) );
  97. VERIFY( m_bmpNcButtonBkHover.Make32() );
  98. VERIFY( m_bmpNcButtonBkPressed.Make32() );
  99. m_bmpNcButtonBkHover.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  100. m_bmpNcButtonBkPressed.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  101. m_bmpNcButtonBkHover.PreMultiplyRGBChannels();
  102. m_bmpNcButtonBkHover.PreMultipliedRGBChannelsSet( true );
  103. m_bmpNcButtonBkPressed.PreMultiplyRGBChannels();
  104. m_bmpNcButtonBkPressed.PreMultipliedRGBChannelsSet( true );
  105. VERIFY( m_bmpNcButtonBkHoverX.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_BUTTON_BK_HOVER_X_R2_BLUE) ) );
  106. VERIFY( m_bmpNcButtonBkPressedX.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_BUTTON_BK_PRESSED_X_R2_BLUE) ) );
  107. VERIFY( m_bmpNcButtonBkHoverX.Make32() );
  108. VERIFY( m_bmpNcButtonBkPressedX.Make32() );
  109. m_bmpNcButtonBkHoverX.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  110. m_bmpNcButtonBkPressedX.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  111. m_bmpNcButtonBkHoverX.PreMultiplyRGBChannels();
  112. m_bmpNcButtonBkHoverX.PreMultipliedRGBChannelsSet( true );
  113. m_bmpNcButtonBkPressedX.PreMultiplyRGBChannels();
  114. m_bmpNcButtonBkPressedX.PreMultipliedRGBChannelsSet( true );
  115. m_sizeNcButtonShapeInArr.cx = 13;
  116. m_sizeNcButtonShapeInArr.cy = 12;
  117. m_nNcBtnIdxNormalActive = 0;
  118. m_nNcBtnIdxHover = 1;
  119. m_nNcBtnIdxPressed = 2;
  120. m_nNcBtnIdxNormalInactive = 3;
  121. m_nNcBtnIdxDisabled = 4;
  122. VERIFY( m_bmpArrNcButtonsClose.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_ARR_CLOSE_R2_BLUE) ) );
  123. // m_bmpArrNcButtonsClose.PreMultiplyRGBChannels();
  124. m_bmpArrNcButtonsClose.PreMultipliedRGBChannelsSet( true );
  125. VERIFY( m_bmpArrNcButtonsMaximize.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_ARR_MAXIMIZE_R2_BLUE) ) );
  126. // m_bmpArrNcButtonsMaximize.PreMultiplyRGBChannels();
  127. m_bmpArrNcButtonsMaximize.PreMultipliedRGBChannelsSet( true );
  128. VERIFY( m_bmpArrNcButtonsRestore.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_ARR_RESTORE_R2_BLUE) ) );
  129. // m_bmpArrNcButtonsRestore.PreMultiplyRGBChannels();
  130. m_bmpArrNcButtonsRestore.PreMultipliedRGBChannelsSet( true );
  131. VERIFY( m_bmpArrNcButtonsMinimize.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_ARR_MINIMIZE_R2_BLUE) ) );
  132. // m_bmpArrNcButtonsMinimize.PreMultiplyRGBChannels();
  133. m_bmpArrNcButtonsMinimize.PreMultipliedRGBChannelsSet( true );
  134. VERIFY( m_bmpArrNcButtonsHelp.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_ARR_HELP_R1) ) );
  135. m_bmpArrNcButtonsHelp.PreMultiplyRGBChannels();
  136. #if (!defined __EXT_MFC_NO_STATUSBAR)
  137. m_clrStatusPaneTextColorNormal   = RGB(35,30,66);
  138. m_clrStatusPaneTextColorDisabled = RGB(136,142,149);
  139. m_rcStatusBkPadding.SetRect( 0, 2, 0, 1 );
  140. VERIFY( m_bmpStatusBkLight.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_STATUSBAR_BK_LIGHT_R2_BLUE) ) );
  141. VERIFY( m_bmpStatusBkDark.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_STATUSBAR_BK_DARK_R2_BLUE) ) );
  142. m_rcStatusSeparatorPadding.SetRect( 0, 2, 0, 1 );
  143. VERIFY( m_bmpStatusSeparator.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_STATUSBAR_SEPARATOR_R2_BLUE) ) );
  144. #endif // (!defined __EXT_MFC_NO_STATUSBAR)
  145. #if (!defined __EXT_MFC_NO_TAB_CTRL)
  146. m_clrTabTextNormal = m_clrTabTextSelected = RGB( 52, 52, 64 );
  147. m_clrTabTextNormalDWM = m_clrTabTextSelectedDWM = RGB( 30, 57, 91 );
  148. m_nIdxTabShapeHover = 0;
  149. m_nIdxTabShapePressed = 1;
  150. m_nIdxTabShapeSelected = 1;
  151. m_nIdxTabShapeSelectedHover = 1;
  152. m_arrSizeTabShape[__ETSOI_TOP].cx
  153. = m_arrSizeTabShape[__ETSOI_BOTTOM].cx
  154. = m_arrSizeTabShape[__ETSOI_LEFT].cy
  155. = m_arrSizeTabShape[__ETSOI_RIGHT].cy
  156. = 13;
  157. m_arrSizeTabShape[__ETSOI_TOP].cy
  158. = m_arrSizeTabShape[__ETSOI_BOTTOM].cy
  159. = m_arrSizeTabShape[__ETSOI_LEFT].cx
  160. = m_arrSizeTabShape[__ETSOI_RIGHT].cx
  161. = 23;
  162. m_arrRectTabShapePadding[__ETSOI_TOP].SetRect( 4, 3, 4, 3 );
  163. m_arrRectTabShapePadding[__ETSOI_BOTTOM].SetRect( 4, 3, 4, 3 );
  164. m_arrRectTabShapePadding[__ETSOI_LEFT].SetRect( 3, 4, 3, 4 );
  165. m_arrRectTabShapePadding[__ETSOI_RIGHT].SetRect( 3, 4, 3, 4 );
  166. VERIFY(
  167. m_arrBmpTabShapeNormal[__ETSOI_TOP].LoadBMP_Resource(
  168. MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_TAB_SHAPE_ARR_R2_BLUE )
  169. )
  170. );
  171. m_arrBmpTabShapeNormal[__ETSOI_TOP].PreMultipliedRGBChannelsSet( true );
  172. VERIFY(
  173. m_arrBmpTabShapeNormal[__ETSOI_BOTTOM].CreateRotated9xStack(
  174. m_arrBmpTabShapeNormal[__ETSOI_TOP],
  175. 180,
  176. 4,
  177. m_arrSizeTabShape[__ETSOI_TOP].cx,
  178. m_arrSizeTabShape[__ETSOI_TOP].cy,
  179. false,
  180. false
  181. )
  182. );
  183. VERIFY(
  184. m_arrBmpTabShapeNormal[__ETSOI_LEFT].CreateRotated9xStack(
  185. m_arrBmpTabShapeNormal[__ETSOI_TOP],
  186. 270,
  187. 4,
  188. m_arrSizeTabShape[__ETSOI_TOP].cx,
  189. m_arrSizeTabShape[__ETSOI_TOP].cy,
  190. false,
  191. false
  192. )
  193. );
  194. VERIFY(
  195. m_arrBmpTabShapeNormal[__ETSOI_RIGHT].CreateRotated9xStack(
  196. m_arrBmpTabShapeNormal[__ETSOI_TOP],
  197. 90,
  198. 4,
  199. m_arrSizeTabShape[__ETSOI_TOP].cx,
  200. m_arrSizeTabShape[__ETSOI_TOP].cy,
  201. false,
  202. false
  203. )
  204. );
  205. VERIFY(
  206. m_arrBmpTabShapeSelArea[__ETSOI_TOP].LoadBMP_Resource(
  207. MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_TAB_SHAPE_ARR_SEL_AREA_R2_BLUE )
  208. )
  209. );
  210. m_arrBmpTabShapeSelArea[__ETSOI_TOP].PreMultipliedRGBChannelsSet( true );
  211. VERIFY(
  212. m_arrBmpTabShapeSelArea[__ETSOI_BOTTOM].CreateRotated9xStack(
  213. m_arrBmpTabShapeSelArea[__ETSOI_TOP],
  214. 180,
  215. 4,
  216. m_arrSizeTabShape[__ETSOI_TOP].cx,
  217. m_arrSizeTabShape[__ETSOI_TOP].cy,
  218. false,
  219. false
  220. )
  221. );
  222. VERIFY(
  223. m_arrBmpTabShapeSelArea[__ETSOI_LEFT].CreateRotated9xStack(
  224. m_arrBmpTabShapeSelArea[__ETSOI_TOP],
  225. 270,
  226. 4,
  227. m_arrSizeTabShape[__ETSOI_TOP].cx,
  228. m_arrSizeTabShape[__ETSOI_TOP].cy,
  229. false,
  230. false
  231. )
  232. );
  233. VERIFY(
  234. m_arrBmpTabShapeSelArea[__ETSOI_RIGHT].CreateRotated9xStack(
  235. m_arrBmpTabShapeSelArea[__ETSOI_TOP],
  236. 90,
  237. 4,
  238. m_arrSizeTabShape[__ETSOI_TOP].cx,
  239. m_arrSizeTabShape[__ETSOI_TOP].cy,
  240. false,
  241. false
  242. )
  243. );
  244. m_arrRectTabAreaPadding[__ETSOI_TOP].SetRect( 3, 3, 3, 3 );
  245. m_arrRectTabAreaPadding[__ETSOI_BOTTOM].SetRect( 3, 3, 3, 3 );
  246. m_arrRectTabAreaPadding[__ETSOI_LEFT].SetRect( 3, 3, 3, 3 );
  247. m_arrRectTabAreaPadding[__ETSOI_RIGHT].SetRect( 3, 3, 3, 3 );
  248. m_arrTabAreaMargins[__ETSOI_TOP] = 1;
  249. m_arrTabAreaMargins[__ETSOI_BOTTOM] = 1;
  250. m_arrTabAreaMargins[__ETSOI_LEFT] = 1;
  251. m_arrTabAreaMargins[__ETSOI_RIGHT] = 1;
  252. m_arrSizeTabSeparator[__ETSOI_TOP].cx
  253. = m_arrSizeTabSeparator[__ETSOI_BOTTOM].cx
  254. = m_arrSizeTabSeparator[__ETSOI_LEFT].cy
  255. = m_arrSizeTabSeparator[__ETSOI_RIGHT].cy
  256. = 2;
  257. m_arrSizeTabSeparator[__ETSOI_TOP].cy
  258. = m_arrSizeTabSeparator[__ETSOI_BOTTOM].cy
  259. = m_arrSizeTabSeparator[__ETSOI_LEFT].cx
  260. = m_arrSizeTabSeparator[__ETSOI_RIGHT].cx
  261. = 23;
  262. m_arrRectTabSeparatorPadding[__ETSOI_TOP].SetRect( 0, 2, 0, 2 );
  263. m_arrRectTabSeparatorPadding[__ETSOI_BOTTOM].SetRect( 0, 2, 0, 2 );
  264. m_arrRectTabSeparatorPadding[__ETSOI_LEFT].SetRect( 2, 0, 2, 0 );
  265. m_arrRectTabSeparatorPadding[__ETSOI_RIGHT].SetRect( 2, 0, 2, 0 );
  266. VERIFY(
  267. m_arrBmpTabSeparator[__ETSOI_TOP].LoadBMP_Resource(
  268. MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_TAB_SEPARATOR_R2_BLUE )
  269. )
  270. );
  271. VERIFY( m_arrBmpTabSeparator[__ETSOI_TOP].Make32() );
  272. //  m_arrBmpTabSeparator[__ETSOI_TOP].PreMultiplyRGBChannels();
  273. //  m_arrBmpTabSeparator[__ETSOI_TOP].PreMultipliedRGBChannelsSet( true );
  274. VERIFY(
  275. m_arrBmpTabSeparator[__ETSOI_BOTTOM].CreateRotated9xStack(
  276. m_arrBmpTabSeparator[__ETSOI_TOP],
  277. 180,
  278. 1,
  279. m_arrSizeTabSeparator[__ETSOI_TOP].cx,
  280. m_arrSizeTabSeparator[__ETSOI_TOP].cy,
  281. false,
  282. false
  283. )
  284. );
  285. VERIFY(
  286. m_arrBmpTabSeparator[__ETSOI_LEFT].CreateRotated9xStack(
  287. m_arrBmpTabSeparator[__ETSOI_TOP],
  288. 270,
  289. 1,
  290. m_arrSizeTabSeparator[__ETSOI_TOP].cx,
  291. m_arrSizeTabSeparator[__ETSOI_TOP].cy,
  292. false,
  293. false
  294. )
  295. );
  296. VERIFY(
  297. m_arrBmpTabSeparator[__ETSOI_RIGHT].CreateRotated9xStack(
  298. m_arrBmpTabSeparator[__ETSOI_TOP],
  299. 90,
  300. 1,
  301. m_arrSizeTabSeparator[__ETSOI_TOP].cx,
  302. m_arrSizeTabSeparator[__ETSOI_TOP].cy,
  303. false,
  304. false
  305. )
  306. );
  307. #endif // (!defined __EXT_MFC_NO_TAB_CTRL)
  308. VERIFY(
  309. m_bmpArrStatesCheckBox.LoadBMP_Resource(
  310. MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_CHECK_BOX_R1 )
  311. )
  312. );
  313. VERIFY(
  314. m_bmpArrStatesRadioButton.LoadBMP_Resource(
  315. MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_RADIO_BUTTON_R1 )
  316. )
  317. );
  318. m_clrMenuItemLeftAreaMarginL = RGB(226, 228, 231);
  319. m_clrMenuItemLeftAreaMarginR = RGB(245, 245, 245);
  320. m_rcMenuItemPaddingLargeLeft.SetRect(  3, 3, 3, 16 );
  321. m_rcMenuItemPaddingLargeRight.SetRect( 1, 3, 3, 16 );
  322. m_rcMenuItemPaddingSmallLeft.SetRect(  3, 3, 3, 10 );
  323. m_rcMenuItemPaddingSmallRight.SetRect( 1, 3, 3, 10 );
  324. VERIFY(
  325. m_bmpMenuItemLargeLeft.LoadBMP_Resource(
  326. MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_MENU_ITEM_R1_LARGE_LEFT )
  327. )
  328. );
  329. VERIFY(
  330. m_bmpMenuItemLargeRight.LoadBMP_Resource(
  331. MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_MENU_ITEM_R1_LARGE_RIGHT )
  332. )
  333. );
  334. VERIFY(
  335. m_bmpMenuItemSmallLeft.LoadBMP_Resource(
  336. MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_MENU_ITEM_R1_SMALL_LEFT )
  337. )
  338. );
  339. VERIFY(
  340. m_bmpMenuItemSmallRight.LoadBMP_Resource(
  341. MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_MENU_ITEM_R1_SMALL_RIGHT )
  342. )
  343. );
  344. VERIFY(
  345. m_bmpMenuArrow.LoadBMP_Resource(
  346. MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_MENU_ITEM_ARROW )
  347. )
  348. );
  349. m_sizeMenuCheckAreaChecked.cx = 16;
  350. m_sizeMenuCheckAreaChecked.cy = 16;
  351. m_sizeMenuCheckAreaUnchecked.cx = 20;
  352. m_sizeMenuCheckAreaUnchecked.cy = 20;
  353. m_arrRectMenuCheckAreaCheckedPadding[0].SetRect( 1, 1, 1, 1 );
  354. m_arrRectMenuCheckAreaCheckedPadding[1].SetRect( 1, 1, 1, 1 );
  355. m_arrRectMenuCheckAreaUncheckedPadding[0].SetRect( 1, 1, 1, 1 );
  356. m_arrRectMenuCheckAreaUncheckedPadding[1].SetRect( 1, 1, 1, 1 );
  357. VERIFY( m_bmpMenuCheckAreaChecked.LoadBMP_Resource(   MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_MENU_CHECK_AREA_CHECKED_R1   ) ) );
  358. VERIFY( m_bmpMenuCheckAreaUnchecked.LoadBMP_Resource( MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_MENU_CHECK_AREA_UNCHECKED_R1 ) ) );
  359. #if (!defined __EXT_MFC_NO_PAGE_NAVIGATOR )
  360. m_arrClrPnCaptNormal[0]  = RGB(235,238,250);
  361. m_arrClrPnCaptNormal[1]  = RGB(215,219,229);
  362. m_arrClrPnCaptNormal[2]  = RGB(197,199,209);
  363. m_arrClrPnCaptNormal[3]  = RGB(212,216,226);
  364. m_arrClrPnSplitter[0]    = RGB( 219, 235, 255 );
  365. m_arrClrPnSplitter[1]    = RGB( 198, 216, 237 );
  366. m_clrPnCaptText  = RGB( 30, 57, 91 );
  367. m_arrClrPnItemText[0]    = RGB(0,0,0);
  368. m_arrClrPnItemText[1]    = RGB(76,83,92);
  369. m_clrPnConfigButton  = RGB(101,104,112); 
  370. static const UINT g_arrResIdPnItemExpanded[ePn_Count] =
  371. {
  372. IDB_EXT_2010_OFFICE_PN_ITEM_EXPANDED_NORMAL_R1,
  373. IDB_EXT_2010_OFFICE_PN_ITEM_EXPANDED_HOVER_R1,
  374. IDB_EXT_2010_OFFICE_PN_ITEM_EXPANDED_PRESSED_R1,
  375. IDB_EXT_2010_OFFICE_PN_ITEM_EXPANDED_SELECTED_R1,
  376. IDB_EXT_2010_OFFICE_PN_ITEM_EXPANDED_SELECTED_HOVER_R1,
  377. };
  378. static const UINT g_arrResIdPnItemCollapsed[ePn_Count] =
  379. {
  380. IDB_EXT_2010_OFFICE_PN_ITEM_COLLAPSED_NORMAL_R1,
  381. IDB_EXT_2010_OFFICE_PN_ITEM_COLLAPSED_HOVER_R1,
  382. IDB_EXT_2010_OFFICE_PN_ITEM_COLLAPSED_PRESSED_R1,
  383. IDB_EXT_2010_OFFICE_PN_ITEM_COLLAPSED_SELECTED_R1,
  384. IDB_EXT_2010_OFFICE_PN_ITEM_COLLAPSED_SELECTED_HOVER_R1,
  385. };
  386. INT nPnIndex;
  387. for( nPnIndex = 0; nPnIndex < INT(ePn_Count); nPnIndex ++ )
  388. {
  389. VERIFY( m_arrBmpPnItemExpanded[nPnIndex].LoadBMP_Resource( MAKEINTRESOURCE(g_arrResIdPnItemExpanded[nPnIndex]) ) );
  390. VERIFY( m_arrBmpPnItemCollapsed[nPnIndex].LoadBMP_Resource( MAKEINTRESOURCE(g_arrResIdPnItemCollapsed[nPnIndex]) ) );
  391. m_arrRcPnItemPaddingExpanded[nPnIndex].SetRect( 0, 2, 0, 2 );
  392. m_arrRcPnItemPaddingCollapsed[nPnIndex].SetRect( 0, 0, 0, 0 );
  393. m_arrClrPnItemTextBmpVer[nPnIndex] = RGB(0,0,0);
  394. }
  395. #endif // (!defined __EXT_MFC_NO_PAGE_NAVIGATOR )
  396. VERIFY( m_bmpArrComboBoxDropDown.LoadBMP_Resource( MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_COMBO_BOX_BUTTON_R2_BLUE ) ) );
  397. m_bmpArrComboBoxDropDown.PreMultipliedRGBChannelsSet( true );
  398. m_arrClrComboBoxBorder[0] = RGB(212,214,217);
  399. m_arrClrComboBoxBorder[1] = RGB(164,164,164);
  400. m_arrClrComboBoxBorder[2] = RGB(164,164,164);
  401. m_arrClrComboBoxBorder[3] = RGB(228,231,235);
  402. CRect SbSkinDataPaddingH( 5, 3, 5, 3 ), SbSkinDataPaddingV( 3, 5, 3, 5 );
  403. CRect rcEntirePaddingRH( 2, 2, 2, 2 ), rcEntirePaddingRV( 2, 2, 2, 2 );
  404. CRect rcEntirePaddingCH( 1, 1, 1, 1 ), rcEntirePaddingCV( 1, 1, 1, 1 );
  405. m_SbSkinDataT_Zoom.Load2010_Zoom_R1(
  406. IDB_EXT_2010_OFFICE_ZS_PLUS_R2_BLUE, IDB_EXT_2010_OFFICE_ZS_MINUS_R2_BLUE, IDB_EXT_2010_OFFICE_ZS_THUMB_R2_BLUE,
  407. RGB(222,234,247), RGB(138,156,184), RGB(222,234,247), RGB(138,156,184), AFX_IDW_DOCKBAR_TOP
  408. );
  409. m_SbSkinDataB_Zoom.Load2010_Zoom_R1(
  410. IDB_EXT_2010_OFFICE_ZS_PLUS_R2_BLUE, IDB_EXT_2010_OFFICE_ZS_MINUS_R2_BLUE, IDB_EXT_2010_OFFICE_ZS_THUMB_R2_BLUE,
  411. RGB(222,234,247), RGB(138,156,184), RGB(222,234,247), RGB(138,156,184), AFX_IDW_DOCKBAR_BOTTOM
  412. );
  413. m_SbSkinDataL_Zoom.Load2010_Zoom_R1(
  414. IDB_EXT_2010_OFFICE_ZS_PLUS_R2_BLUE, IDB_EXT_2010_OFFICE_ZS_MINUS_R2_BLUE, IDB_EXT_2010_OFFICE_ZS_THUMB_R2_BLUE,
  415. RGB(222,234,247), RGB(138,156,184), RGB(222,234,247), RGB(138,156,184), AFX_IDW_DOCKBAR_LEFT
  416. );
  417. m_SbSkinDataR_Zoom.Load2010_Zoom_R1(
  418. IDB_EXT_2010_OFFICE_ZS_PLUS_R2_BLUE, IDB_EXT_2010_OFFICE_ZS_MINUS_R2_BLUE, IDB_EXT_2010_OFFICE_ZS_THUMB_R2_BLUE,
  419. RGB(222,234,247), RGB(138,156,184), RGB(222,234,247), RGB(138,156,184), AFX_IDW_DOCKBAR_RIGHT
  420. );
  421. m_SbSkinDataH_Light.Load2007_R1(
  422. IDB_EXT_2010_OFFICE_SCROLL_BAR_STACK_BUTTONS_R2_BLUE_HORZ_LIGHT,
  423. 16,
  424. IDB_EXT_2010_OFFICE_SCROLL_BAR_GRIPPER_R2_LIGHT_HORZ,
  425. SbSkinDataPaddingH,
  426. COLORREF(-1L),
  427. COLORREF(-1L),
  428. IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_UP_NORMAL_R2_LIGHT,
  429. IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_UP_DISABLED_R2_LIGHT,
  430. IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_DOWN_NORMAL_R2_LIGHT,
  431. IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_DOWN_DISABLED_R2_LIGHT,
  432. true,
  433. IDB_EXT_2010_OFFICE_SCROLL_BAR_ENTIRE_BK_R2_BLUE_LIGHT,
  434. IDB_EXT_2010_OFFICE_SCROLL_BAR_PAGE_BK_R2_BLUE_LIGHT,
  435. rcEntirePaddingRH,
  436. rcEntirePaddingCH
  437. );
  438. m_SbSkinDataV_Light.Load2007_R1(
  439. IDB_EXT_2010_OFFICE_SCROLL_BAR_STACK_BUTTONS_R2_BLUE_VERT_LIGHT,
  440. 17,
  441. IDB_EXT_2010_OFFICE_SCROLL_BAR_GRIPPER_R2_LIGHT_VERT,
  442. SbSkinDataPaddingV,
  443. COLORREF(-1L),
  444. COLORREF(-1L),
  445. IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_UP_NORMAL_R2_LIGHT,
  446. IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_UP_DISABLED_R2_LIGHT,
  447. IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_DOWN_NORMAL_R2_LIGHT,
  448. IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_DOWN_DISABLED_R2_LIGHT,
  449. false,
  450. IDB_EXT_2010_OFFICE_SCROLL_BAR_ENTIRE_BK_R2_BLUE_LIGHT,
  451. IDB_EXT_2010_OFFICE_SCROLL_BAR_PAGE_BK_R2_BLUE_LIGHT,
  452. rcEntirePaddingRV,
  453. rcEntirePaddingCV
  454. );
  455. m_SbSkinDataH_Dark.Load2007_R1(
  456. IDB_EXT_2010_OFFICE_SCROLL_BAR_STACK_BUTTONS_R2_BLUE_HORZ_DARK,
  457. 16,
  458. IDB_EXT_2010_OFFICE_SCROLL_BAR_GRIPPER_R2_BLUE_HORZ,
  459. SbSkinDataPaddingH,
  460. COLORREF(-1L),
  461. COLORREF(-1L),
  462. IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_UP_NORMAL_R2_BLUE,
  463. IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_UP_DISABLED_R2_BLUE,
  464. IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_DOWN_NORMAL_R2_BLUE,
  465. IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_DOWN_DISABLED_R2_BLUE,
  466. true,
  467. IDB_EXT_2010_OFFICE_SCROLL_BAR_ENTIRE_BK_R2_BLUE_DARK,
  468. IDB_EXT_2010_OFFICE_SCROLL_BAR_PAGE_BK_R2_BLUE_DARK,
  469. rcEntirePaddingRH,
  470. rcEntirePaddingCH
  471. );
  472. m_SbSkinDataV_Dark.Load2007_R1(
  473. IDB_EXT_2010_OFFICE_SCROLL_BAR_STACK_BUTTONS_R2_BLUE_VERT_DARK,
  474. 17,
  475. IDB_EXT_2010_OFFICE_SCROLL_BAR_GRIPPER_R2_BLUE_VERT,
  476. SbSkinDataPaddingV,
  477. COLORREF(-1L),
  478. COLORREF(-1L),
  479. IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_UP_NORMAL_R2_BLUE,
  480. IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_UP_DISABLED_R2_BLUE,
  481. IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_DOWN_NORMAL_R2_BLUE,
  482. IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_DOWN_DISABLED_R2_BLUE,
  483. false,
  484. IDB_EXT_2010_OFFICE_SCROLL_BAR_ENTIRE_BK_R2_BLUE_DARK,
  485. IDB_EXT_2010_OFFICE_SCROLL_BAR_PAGE_BK_R2_BLUE_DARK,
  486. rcEntirePaddingRV,
  487. rcEntirePaddingCV
  488. );
  489. m_clrGridHeaderBkTop     = RGB(253,253,253);
  490. m_clrGridHeaderBkBottom  = RGB(212,215,220);
  491. m_clrGridHeaderSeparator = RGB(145,153,164);
  492. m_clrGridHeaderSortArrow = RGB(145,153,164);
  493. m_clrGridHeaderBorder    = RGB(145,153,164);
  494. m_clrRgHeaderBkTop     = RGB(253,253,253);
  495. m_clrRgHeaderBkBottom  = RGB(212,215,220);
  496. m_clrRgHeaderSeparator = RGB(145,153,164);
  497. m_clrRgHeaderSortArrow = RGB(145,153,164);
  498. m_clrRgHeaderText      = RGB(0,0,0);
  499. m_clrRgHeaderBorder    = RGB(76,83,92);
  500. #if (!defined __EXT_MFC_NO_REPORTGRIDWND)
  501. m_clrRgGroupAreaBk     = RGB(235,235,235);
  502. m_clrRgGroupAreaText   = RGB(70,70,70);
  503. #endif // (!defined __EXT_MFC_NO_REPORTGRIDWND)
  504. m_nPushBtnSimpleGlyphHeightH = 43;
  505. m_nPushBtnSimpleGlyphHeightV = 43;
  506. m_nPushBtnSDDLeftGlyphHeightH = 43;
  507. m_nPushBtnSDDLeftGlyphHeightV = 43;
  508. m_nPushBtnSDDRightGlyphHeightH = 43;
  509. m_nPushBtnSDDRightGlyphHeightV = 9;
  510. m_rcPushBtnSimplePaddingH.SetRect( 3, 3, 3, 3 );
  511. m_rcPushBtnSimplePaddingV.SetRect( 3, 3, 3, 3 );
  512. m_rcPushBtnSDDLeftPaddingH.SetRect( 3, 3, 3, 3 );
  513. m_rcPushBtnSDDLeftPaddingV.SetRect( 3, 3, 3, 3 );
  514. m_rcPushBtnSDDRightPaddingH.SetRect( 3, 3, 3, 3 );
  515. m_rcPushBtnSDDRightPaddingV.SetRect( 3, 3, 3, 3 );
  516. VERIFY(
  517. m_arrBmpPushBtnSimpleH.LoadBMP_Resource(
  518. MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_BUTTON_R1_SIMPLE )
  519. )
  520. );
  521. VERIFY(
  522. m_arrBmpPushBtnSDDLeftH.LoadBMP_Resource(
  523. MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_BUTTON_R1_LEFT_PART )
  524. )
  525. );
  526. VERIFY(
  527. m_arrBmpPushBtnSDDRightH.LoadBMP_Resource(
  528. MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_BUTTON_R1_RIGHT_PART )
  529. )
  530. );
  531. VERIFY(
  532. m_arrBmpPushBtnSimpleV.CreateRotated9xStack(
  533. m_arrBmpPushBtnSimpleH,
  534. 90,
  535. INT(__EPBGT_GLYPH_COUNT),
  536. m_arrBmpPushBtnSimpleH.GetSize().cx,
  537. m_nPushBtnSimpleGlyphHeightH,
  538. false,
  539. false
  540. )
  541. );
  542. VERIFY(
  543. m_arrBmpPushBtnSDDLeftV.CreateRotated9xStack(
  544. m_arrBmpPushBtnSDDLeftH,
  545. 90,
  546. INT(__EPBGT_GLYPH_COUNT),
  547. m_arrBmpPushBtnSDDLeftH.GetSize().cx,
  548. m_nPushBtnSDDLeftGlyphHeightH,
  549. false,
  550. false
  551. )
  552. );
  553. VERIFY(
  554. m_arrBmpPushBtnSDDRightV.CreateRotated9xStack(
  555. m_arrBmpPushBtnSDDRightH,
  556. 90,
  557. INT(__EPBGT_GLYPH_COUNT),
  558. m_arrBmpPushBtnSDDRightH.GetSize().cx,
  559. m_nPushBtnSDDRightGlyphHeightH,
  560. false,
  561. false
  562. )
  563. );
  564. m_arrBmpPushBtnSimpleV.PreMultipliedRGBChannelsSet( true );
  565. m_arrBmpPushBtnSDDLeftV.PreMultipliedRGBChannelsSet( true );
  566. m_arrBmpPushBtnSDDRightV.PreMultipliedRGBChannelsSet( true );
  567. #if (!defined __EXT_MFC_NO_RIBBON_BAR)
  568. if( g_PaintManager.m_bIsWinVistaOrLater )
  569. {
  570. VERIFY( m_bmpRibbonTabAreaBlur.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_TAB_AREA_DWM_BLUR) ) );
  571. m_rcRibbonTabAreaBlurPadding.SetRect( 35, 0, 35, 36 );
  572. }
  573. m_clrRibbonTabClientAreaActive = RGB(192,211,235);
  574. m_clrRibbonTabClientAreaInactive = RGB(223,235,247);
  575. m_clrContractedMargin1 = RGB(128,128,128);
  576. m_clrContractedMargin2 = RGB(223,235,247);
  577. m_bRibbonGroupCaptionAtTop = false;
  578. m_bRibbonGroupCaptionAreaHasPadding = true;
  579. m_nRibbonGroupCaptionAreaHeightExpanded = 16;
  580. m_nRibbonGroupCaptionAreaHeightCollapsed = 16;
  581. m_nRibbonGroupIconBkVertOffset = 2;
  582. m_nRibbonCaptionPartHeight = 17;
  583. m_rcRibbonPageOuterContentPadding.SetRect( 0, 0, 0, 0 );
  584. m_clrRibbonComboBackGroundNormal   = RGB(255,255,255);
  585. m_clrRibbonComboBackGroundDisabled = RGB(255,255,255);
  586. m_nRibbonTabIntersectionHeight = 1;
  587. //m_nRibbonQuickAccessBarButtonsAlignment = 0;
  588. m_clrRibbonGroupCaptionTextCollapsed
  589. = m_clrRibbonButtonNormal
  590. = RGB(57,60,63);
  591. m_clrRibbonButtonDisabled = RGB(128,128,128);
  592. m_clrRibbonGroupCaptionTextExpanded = RGB( 52, 52, 64 );
  593. //m_clrRibbonGroupCaptionTextShadowExpanded = RGB( 0, 0, 0 );
  594. //m_sizeRibbonGroupCaptionTextOffset = CSize( 1, 1 );
  595. m_nRibbonGroupCaptionTextDF
  596. = m_nRibbonGroupCaptionTextShadowDF
  597. = DT_SINGLELINE|DT_CENTER|DT_VCENTER|DT_END_ELLIPSIS;
  598. m_rcRibbonPageBkPadding.SetRect( 1, 1, 1, 1 );
  599. VERIFY(
  600. m_bmpRibbonPageBk.LoadBMP_Resource(
  601. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_PAGE_BK_R2_BLUE)
  602. )
  603. );
  604. m_rcRibbonGroupPaddingBkExpanded.SetRect( 2, 6, 4, 2 );
  605. VERIFY(
  606. m_bmpRibbonGroupBkExpanded[0].LoadBMP_Resource(
  607. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_GROUP_EXPANDED_NORMAL_BK_R2_BLUE)
  608. )
  609. );
  610. m_bmpRibbonGroupBkExpanded[0].PreMultipliedRGBChannelsSet( false );
  611. VERIFY(
  612. m_bmpRibbonGroupBkExpanded[1].LoadBMP_Resource(
  613. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_GROUP_EXPANDED_HOVER_BK_R2_BLUE)
  614. )
  615. );
  616. m_bmpRibbonGroupBkExpanded[1].PreMultipliedRGBChannelsSet( false );
  617. m_rcRibbonGroupPaddingBkCollapsed.SetRect( 2, 6, 4, 2 );
  618. VERIFY(
  619. m_bmpRibbonGroupBkCollapsed[0].LoadBMP_Resource(
  620. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_GROUP_COLLAPSED_NORMAL_BK_R2_BLUE)
  621. )
  622. );
  623. m_bmpRibbonGroupBkCollapsed[0].PreMultipliedRGBChannelsSet( false );
  624. VERIFY(
  625. m_bmpRibbonGroupBkCollapsed[1].LoadBMP_Resource(
  626. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_GROUP_COLLAPSED_HOVER_BK_R2_BLUE)
  627. )
  628. );
  629. m_bmpRibbonGroupBkCollapsed[1].PreMultipliedRGBChannelsSet( false );
  630. VERIFY(
  631. m_bmpRibbonGroupBkCollapsed[2].LoadBMP_Resource(
  632. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_GROUP_COLLAPSED_PRESSED_BK_R2_BLUE)
  633. )
  634. );
  635. m_bmpRibbonGroupBkCollapsed[2].PreMultipliedRGBChannelsSet( false );
  636. VERIFY(
  637. m_bmpRibbonGroupBkCollapsed[3].LoadBMP_Resource( // selected same as hover in R1
  638. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_GROUP_COLLAPSED_HOVER_BK_R2_BLUE)
  639. )
  640. );
  641. m_bmpRibbonGroupBkCollapsed[3].PreMultipliedRGBChannelsSet( false );
  642. //INT nBkIndex, nBkCount;
  643. // nBkCount = sizeof( m_bmpRibbonGroupBkExpanded ) / sizeof( m_bmpRibbonGroupBkExpanded[0] );
  644. // for( nBkIndex = 0; nBkIndex < nBkCount; nBkIndex ++ )
  645. // {
  646. // m_bmpRibbonGroupBkExpanded[nBkIndex].Make32();
  647. // m_bmpRibbonGroupBkExpanded[nBkIndex].AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  648. // } // for( nBkIndex = 0; nBkIndex < nBkCount; nBkIndex ++ )
  649. // nBkCount = sizeof( m_bmpRibbonGroupBkCollapsed ) / sizeof( m_bmpRibbonGroupBkCollapsed[0] );
  650. // for( nBkIndex = 0; nBkIndex < nBkCount; nBkIndex ++ )
  651. // {
  652. // m_bmpRibbonGroupBkCollapsed[nBkIndex].Make32();
  653. // m_bmpRibbonGroupBkCollapsed[nBkIndex].AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  654. // } // for( nBkIndex = 0; nBkIndex < nBkCount; nBkIndex ++ )
  655. VERIFY( m_bmpRibbonGroupBkQATB[0].LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_GROUP_BUTTON_QATB_NORMAL_BK_R2_BLUE) ) );
  656. //m_bmpRibbonGroupBkQATB[0].PreMultiplyRGBChannels( false );
  657. VERIFY( m_bmpRibbonGroupBkQATB[0].Make32() );
  658. m_bmpRibbonGroupBkQATB[0].AlphaColor( RGB(255,0,255), RGB(0,0,0), BYTE(0) );
  659. VERIFY( m_bmpRibbonGroupBkQATB[1].LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_GROUP_BUTTON_QATB_HOVER_BK_R2_BLUE) ) );
  660. //m_bmpRibbonGroupBkQATB[1].PreMultiplyRGBChannels( false );
  661. VERIFY( m_bmpRibbonGroupBkQATB[1].Make32() );
  662. m_bmpRibbonGroupBkQATB[1].AlphaColor( RGB(255,0,255), RGB(0,0,0), BYTE(0) );
  663. VERIFY( m_bmpRibbonGroupBkQATB[2].LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_GROUP_BUTTON_QATB_PRESSED_BK_R2_BLUE) ) );
  664. //m_bmpRibbonGroupBkQATB[2].PreMultiplyRGBChannels( false );
  665. VERIFY( m_bmpRibbonGroupBkQATB[2].Make32() );
  666. m_bmpRibbonGroupBkQATB[2].AlphaColor( RGB(255,0,255), RGB(0,0,0), BYTE(0) );
  667. m_bmpRibbonGroupBkQATB[3] = m_bmpRibbonGroupBkQATB[1];
  668. m_nRibbonSeparatorDrawModeH = INT( CExtBitmap::__EDM_STRETCH );
  669. m_nRibbonSeparatorDrawModeV = INT( CExtBitmap::__EDM_STRETCH );
  670. m_rcRibbonSeparatorPaddingH.SetRect( 0, 0, 0, 0 );
  671. VERIFY(
  672. m_bmpRibbonSeparatorH.LoadBMP_Resource(
  673. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_SEPARATOR_H_R2_BLUE)
  674. )
  675. );
  676. VERIFY( m_bmpRibbonSeparatorH.Make32() );
  677. m_bmpRibbonSeparatorH.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  678. m_rcRibbonSeparatorPaddingV.SetRect( 0, 0, 0, 0 );
  679. VERIFY(
  680. m_bmpRibbonSeparatorV.LoadBMP_Resource(
  681. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_SEPARATOR_V_R2_BLUE)
  682. )
  683. );
  684. VERIFY( m_bmpRibbonSeparatorV.Make32() );
  685. m_bmpRibbonSeparatorV.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  686. m_rcRibbonPaddingQACEB.SetRect( 3, 3, 3, 3 );
  687. m_nRibbonHeightOfQACEB = 22;
  688. m_nIdxRibbonQACEB_Normal   = 3;
  689. m_nIdxRibbonQACEB_Hover    = 0;
  690. m_nIdxRibbonQACEB_Pressed  = 1;
  691. m_nIdxRibbonQACEB_Selected = 2;
  692. VERIFY(
  693. m_bmpArrRibbonQACEB.LoadBMP_Resource(
  694. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_QATB_CEB_R2_BLUE)
  695. )
  696. );
  697. m_bmpArrRibbonQACEB.PreMultiplyRGBChannels( false );
  698. //m_bmpArrRibbonQACEB.PreMultipliedRGBChannelsSet( true );
  699. m_nRibbonEmbeddedCaptionTextAlignmentFlags = (DT_SINGLELINE|DT_CENTER|DT_VCENTER);
  700. //m_bRibbonFileButtonItegrationSupported = false;
  701. //m_nRibbonFileButtonMenuIntersectionHeight = 20;
  702. m_nQatbAdditionalSpaceAtRightDWM = 0;
  703. //  INT nCaptionHeightActive = NcFrame_GetCaptionHeight( true, NULL ) + m_rcNcFrameBordersActive.top;
  704. //  INT nCaptionHeightInactive = NcFrame_GetCaptionHeight( false, NULL ) + m_rcNcFrameBordersInactive.top;
  705. //  CExtBitmap::Filter _fBox( CExtBitmap::Filter::box );
  706. m_rcRibbonNcCornerLeftCP.SetRect( 53, 2, 2, 2 );
  707. m_rcRibbonNcCornerRightCP.SetRect( 2, 2, 42, 2 );
  708. VERIFY( m_bmpArrRibbonFileButton.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_FILE_BUTTON) ) );
  709. //m_bmpArrRibbonFileButton.PreMultipliedRGBChannelsSet( true );
  710. m_bmpArrRibbonFileButton.PreMultiplyRGBChannels( true );
  711. m_nRibbonFileButtonHeight = m_bmpArrRibbonFileButton.GetSize().cy / 3;
  712. m_rcPaddingRibbonQuickAccessBarBkAtTheBottom.SetRect( 2, 2, 2, 2 );
  713. VERIFY( m_bmpRibbonQuickAccessBarBkAtTheBottom.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_QATB_BK_R2_BLUE) ) );
  714. m_nRibbonHeightOfOneDLB = 14;
  715. m_nDlbIdxDisabled = m_nDlbIdxNormal = 0;
  716. m_nDlbIdxHover = 1;
  717. m_nDlbIdxPressed = 2;
  718. rcRibbonContentPaddingDLB.SetRect( 2, 2, 2, 2 );
  719. VERIFY( m_arrBmpRibbonDLB.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_GCB_R2_BLUE) ) );
  720. //m_arrBmpRibbonDLB.PreMultipliedRGBChannelsSet( true );
  721. m_arrBmpRibbonDLB.PreMultiplyRGBChannels( false );
  722. m_clrRibbonGalleryInplaceBorderNormal = m_clrRibbonGalleryInplaceBorderHover  = RGB(198,202,205);
  723. m_clrRibbonGalleryInplaceBkgndNormal  = m_clrRibbonGalleryInplaceBkgndHover   = RGB(255,255,255);
  724. m_rcRibbonGalleryScrollFill = RGB(255,255,255);
  725. m_rcRibbonGalleryScrollButtonPadding.SetRect( 3, 3, 3, 3 );
  726. m_nHeightRibbonGalleryScrollButton = -1; //20;
  727. m_nIndexRibbonGalleryScrollButtonNormal   = 0;
  728. m_nIndexRibbonGalleryScrollButtonHover    = 1;
  729. m_nIndexRibbonGalleryScrollButtonPressed  = 2;
  730. m_nIndexRibbonGalleryScrollButtonDisabled = 3;
  731. VERIFY(
  732. m_bmpArrRibbonGalleryScrollButtonDown.LoadBMP_Resource(
  733. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RGIBTN_DOWN_R2_BLUE)
  734. )
  735. );
  736. m_bmpArrRibbonGalleryScrollButtonDown.PreMultipliedRGBChannelsSet( true );
  737. VERIFY(
  738. m_bmpArrRibbonGalleryScrollButtonUp.LoadBMP_Resource(
  739. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RGIBTN_UP_R2_BLUE)
  740. )
  741. );
  742. m_bmpArrRibbonGalleryScrollButtonUp.PreMultipliedRGBChannelsSet( true );
  743. VERIFY(
  744. m_bmpArrRibbonGalleryScrollButtonMenu.LoadBMP_Resource(
  745. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RGIBTN_MENU_R2_BLUE)
  746. )
  747. );
  748. m_bmpArrRibbonGalleryScrollButtonMenu.PreMultipliedRGBChannelsSet( true );
  749. #endif // (!defined __EXT_MFC_NO_RIBBON_BAR)
  750. VERIFY( m_bmpRibbonDDA.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_DDA_R1) ) );
  751. VERIFY( m_bmpRibbonDDA.Make32() );
  752. m_bmpRibbonDDA.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  753. m_rcRibbonPaddingComboBoxDropDown.SetRect( 2, 2, 2, 2 );
  754. VERIFY( m_bmpArrRibbonComboBoxDropDown.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_COMBO_BOX_BUTTON_R1) ) );
  755. m_bmpArrRibbonComboBoxDropDown.PreMultipliedRGBChannelsSet( true );
  756. // buttons 2010
  757. m_nHeightOfButtonLSM = 66;
  758. m_nHeightOfButtonLSXM = 39;
  759. m_nHeightOfButtonLSXB = 27;
  760. // tool buttons 2010
  761. m_rcPaddingOfButtonTS.SetRect( 3, 3, 3, 3 );
  762. m_arrIndicesButtonTS[INT(__E07BI_NORMAL)] = -1;
  763. m_arrIndicesButtonTS[INT(__E07BI_HOVER)] = 0;
  764. m_arrIndicesButtonTS[INT(__E07BI_PRESSED)] = 1;
  765. m_arrIndicesButtonTS[INT(__E07BI_HDD)] = 2;
  766. m_arrIndicesButtonTS[INT(__E07BI_SEL_T)] = 3;
  767. m_arrIndicesButtonTS[INT(__E07BI_INDETERMINATE)] = 4;
  768. m_rcPaddingOfButtonSS.SetRect( 3, 3, 3, 3 );
  769. m_arrIndicesButtonSS_Left[INT(__E07BI_NORMAL)] = -1;
  770. m_arrIndicesButtonSS_Left[INT(__E07BI_HOVER)] = 0;
  771. m_arrIndicesButtonSS_Left[INT(__E07BI_PRESSED)] = 1;
  772. m_arrIndicesButtonSS_Left[INT(__E07BI_HDD)] = 2;
  773. m_arrIndicesButtonSS_Left[INT(__E07BI_SEL_T)] = 3;
  774. m_arrIndicesButtonSS_Left[INT(__E07BI_INDETERMINATE)] = 4;
  775. m_arrIndicesButtonSS_Right[INT(__E07BI_NORMAL)] = -1;
  776. m_arrIndicesButtonSS_Right[INT(__E07BI_HOVER)] = 0;
  777. m_arrIndicesButtonSS_Right[INT(__E07BI_PRESSED)] = 1;
  778. m_arrIndicesButtonSS_Right[INT(__E07BI_HDD)] = 2;
  779. m_arrIndicesButtonSS_Right[INT(__E07BI_SEL_T)] = 3;
  780. m_arrIndicesButtonSS_Right[INT(__E07BI_INDETERMINATE)] = 4;
  781. m_rcPaddingOfButtonLSM.SetRect( 4, 4, 4, 4 );
  782. m_arrIndicesButtonLSM[INT(__E07BI_NORMAL)] = -1;
  783. m_arrIndicesButtonLSM[INT(__E07BI_HOVER)] = 0;
  784. m_arrIndicesButtonLSM[INT(__E07BI_PRESSED)] = 1;
  785. m_arrIndicesButtonLSM[INT(__E07BI_HDD)] = 2;
  786. m_arrIndicesButtonLSM[INT(__E07BI_SEL_T)] = 3;
  787. m_arrIndicesButtonLSM[INT(__E07BIX_INDETERMINATE)] = 4;
  788. // m_rcPaddingOfButtonLSB.SetRect( 4, 4, 4, 4 );
  789. // m_arrIndicesButtonLSB[INT(__E07BI_NORMAL)] = -1;
  790. // m_arrIndicesButtonLSB[INT(__E07BI_HOVER)] = 0;
  791. // m_arrIndicesButtonLSB[INT(__E07BI_PRESSED)] = 1;
  792. // m_arrIndicesButtonLSB[INT(__E07BI_HDD)] = 2;
  793. // m_arrIndicesButtonLSB[INT(__E07BI_SEL_T)] = 3;
  794. // m_arrIndicesButtonLSB[INT(__E07BI_INDETERMINATE)] = 4;
  795. m_rcPaddingOfButtonLSXM.SetRect( 4, 4, 4, 4 );
  796. m_arrIndicesButtonLSXM[INT(__E07BIX_NORMAL)] = -1;
  797. m_arrIndicesButtonLSXM[INT(__E07BIX_HOVER)] = 0;
  798. m_arrIndicesButtonLSXM[INT(__E07BIX_HOVER2)] = 0;
  799. m_arrIndicesButtonLSXM[INT(__E07BIX_PRESSED)] = 1;
  800. m_arrIndicesButtonLSXM[INT(__E07BIX_PRESSED2)] = 1;
  801. m_arrIndicesButtonLSXM[INT(__E07BIX_PRESSED3)] = 1;
  802. m_arrIndicesButtonLSXM[INT(__E07BIX_INDETERMINATE)] = 5;
  803. m_arrIndicesButtonLSXM[INT(__E07BIX_SELECTED)] = 3;
  804. m_rcPaddingOfButtonLSXB.SetRect( 4, 4, 4, 4 );
  805. m_arrIndicesButtonLSXB[INT(__E07BIX_NORMAL)] = -1;
  806. m_arrIndicesButtonLSXB[INT(__E07BIX_HOVER)] = 0;
  807. m_arrIndicesButtonLSXB[INT(__E07BIX_HOVER2)] = 0;
  808. m_arrIndicesButtonLSXB[INT(__E07BIX_PRESSED)] = 1;
  809. m_arrIndicesButtonLSXB[INT(__E07BIX_PRESSED2)] = 1;
  810. m_arrIndicesButtonLSXB[INT(__E07BIX_PRESSED3)] = 1;
  811. m_arrIndicesButtonLSXB[INT(__E07BIX_INDETERMINATE)] = 5;
  812. m_arrIndicesButtonLSXB[INT(__E07BIX_SELECTED)] = 3;
  813. VERIFY(
  814. m_bmpArrButtonTS[INT(__EBTSA_SOLID)].LoadBMP_Resource(
  815. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_TB_SOLID_R1)
  816. )
  817. );
  818. m_bmpArrButtonTS[INT(__EBTSA_SOLID)].PreMultipliedRGBChannelsSet( true );
  819. VERIFY(
  820. m_bmpArrButtonTS[INT(__EBTSA_LEFT)].LoadBMP_Resource(
  821. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_TB_SOLID_R1)
  822. )
  823. );
  824. m_bmpArrButtonTS[INT(__EBTSA_LEFT)].PreMultipliedRGBChannelsSet( true );
  825. VERIFY(
  826. m_bmpArrButtonTS[INT(__EBTSA_MIDDLE)].LoadBMP_Resource(
  827. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_TB_SOLID_R1)
  828. )
  829. );
  830. m_bmpArrButtonTS[INT(__EBTSA_MIDDLE)].PreMultipliedRGBChannelsSet( true );
  831. VERIFY(
  832. m_bmpArrButtonTS[INT(__EBTSA_RIGHT)].LoadBMP_Resource(
  833. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_TB_SOLID_R1)
  834. )
  835. );
  836. m_bmpArrButtonTS[INT(__EBTSA_RIGHT)].PreMultipliedRGBChannelsSet( true );
  837. VERIFY(
  838. m_bmpArrButtonSS_DD[INT(__EBSSA_LEFT)].LoadBMP_Resource(
  839. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_BTN_PART_SMALL_LEFT_R1)
  840. )
  841. );
  842. m_bmpArrButtonSS_DD[INT(__EBSSA_LEFT)].PreMultipliedRGBChannelsSet( true );
  843. VERIFY(
  844. m_bmpArrButtonSS_DD[INT(__EBSSA_RIGHT)].LoadBMP_Resource(
  845. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_BTN_PART_SMALL_RIGHT_R1)
  846. )
  847. );
  848. m_bmpArrButtonSS_DD[INT(__EBSSA_RIGHT)].PreMultipliedRGBChannelsSet( true );
  849. m_bmpArrButtonSS_simple = m_bmpArrButtonSS_DD[ INT(__EBSSA_LEFT) ];
  850. if( ! m_bmpArrButtonSS_simple.IsEmpty() )
  851. {
  852. CSize _sizeBmp = m_bmpArrButtonSS_simple.GetSize();
  853. INT nY = 0, nXRange = _sizeBmp.cx / 2;
  854. for( ; nY < _sizeBmp.cy; nY ++ )
  855. {
  856. INT nXSrc = nXRange - 1, nXDst = _sizeBmp.cx - nXRange;
  857. for( ; nXDst < _sizeBmp.cx; nXDst ++, nXSrc -- )
  858. {
  859. RGBQUAD _pixel;
  860. VERIFY( m_bmpArrButtonSS_simple.GetPixel( nXSrc, nY, _pixel ) );
  861. VERIFY( m_bmpArrButtonSS_simple.SetPixel( nXDst, nY, _pixel ) );
  862. } // for( ; nXDst < _sizeBmp.cx; nXDst ++, nXSrc -- )
  863. } // for( ; nY < _sizeBmp.cy; nY ++ )
  864. } // if( m_bmpArrButtonSS_simple.IsEmpty() )
  865. VERIFY(
  866. m_bmpArrButtonLSM.LoadBMP_Resource(
  867. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_BTN_PART_LARGE_ALL_R1)
  868. )
  869. );
  870. m_bmpArrButtonLSM.PreMultipliedRGBChannelsSet( true );
  871. // VERIFY(
  872. // m_bmpArrButtonLSB.LoadBMP_Resource(
  873. // MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_BTN_PART_LARGE_BOTTOM_R2_BLUE)
  874. // )
  875. // );
  876. // m_bmpArrButtonLSB.PreMultipliedRGBChannelsSet( true );
  877. VERIFY(
  878. m_bmpArrButtonLSXM.LoadBMP_Resource(
  879. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_BTN_PART_LARGE_TOP_R1)
  880. )
  881. );
  882. m_bmpArrButtonLSXM.PreMultipliedRGBChannelsSet( true );
  883. VERIFY(
  884. m_bmpArrButtonLSXB.LoadBMP_Resource(
  885. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_BTN_PART_LARGE_BOTTOM_R1)
  886. )
  887. );
  888. m_bmpArrButtonLSXB.PreMultipliedRGBChannelsSet( true );
  889. VERIFY(
  890. m_bmpToolBtnSeparator[INT(__ETBS_HOVER)].LoadBMP_Resource(
  891. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_TB_SEPARATOR_HOVER_R2_BLUE)
  892. )
  893. );
  894. m_bmpToolBtnSeparator[INT(__ETBS_HOVER)].PreMultipliedRGBChannelsSet( true );
  895. VERIFY(
  896. m_bmpToolBtnSeparator[INT(__ETBS_PRESSED)].LoadBMP_Resource(
  897. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_TB_SEPARATOR_PRESSED_R2_BLUE)
  898. )
  899. );
  900. m_bmpToolBtnSeparator[INT(__ETBS_PRESSED)].PreMultipliedRGBChannelsSet( true );
  901. VERIFY(
  902. m_bmpLargeBtnSeparator[INT(__ELBS_HOVER)].LoadBMP_Resource(
  903. MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_BTN_PART_LARGE_SEPARATOR_HOVER_R1)
  904. )
  905. );
  906. m_bmpLargeBtnSeparator[INT(__ELBS_HOVER)].Make32();
  907. m_bmpLargeBtnSeparator[INT(__ELBS_HOVER)].AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  908. VERIFY(
  909. m_bmpLargeBtnSeparator[INT(__ELBS_PRESSED)].LoadBMP_Resource(
  910. MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_BTN_PART_LARGE_SEPARATOR_PRESSED_R1)
  911. )
  912. );
  913. m_bmpLargeBtnSeparator[INT(__ELBS_PRESSED)].Make32();
  914. m_bmpLargeBtnSeparator[INT(__ELBS_PRESSED)].AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  915. VERIFY( m_bmpRibbonMenuResizingMarginHV.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_MRB_HV_LUNA_BLUE) ) );
  916. VERIFY( m_bmpRibbonMenuResizingMarginV.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_MRB_V_LUNA_BLUE) ) );
  917. VERIFY( m_bmpRibbonMenuResizingGripperHV.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_MRG_HV_LUNA_BLUE) ) );
  918. m_bmpRibbonMenuResizingGripperHV.Make32();
  919. m_bmpRibbonMenuResizingGripperHV.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  920. VERIFY( m_bmpRibbonMenuResizingGripperV.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_MRG_V_LUNA_BLUE) ) );
  921. m_bmpRibbonMenuResizingGripperV.Make32();
  922. m_bmpRibbonMenuResizingGripperV.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  923. m_clrRibbonModeMenuTextNormal = RGB(57,60,63);
  924. VERIFY(
  925. m_bmpRibbonModeMenuBorder.LoadBMP_Resource(
  926. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_MENU_BORDER_R2_BLUE)
  927. )
  928. );
  929. m_bmpRibbonModeMenuBorder.Make32();
  930. m_bmpRibbonModeMenuBorder.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  931. m_clrMenuCaptionText = RGB(57,60,63);
  932. m_rcMenuCaptionBmpPadding.SetRect( 0, 2, 0, 2 );
  933. VERIFY(
  934. m_bmpMenuCaptionBk.LoadBMP_Resource(
  935. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_MENU_CAPTION_BK_R2_BLUE)
  936. )
  937. );
  938. m_rcPaddingRibbonFileMenuBigBorder.SetRect( 6, 6, 6, 29 );
  939. VERIFY( m_bmpRibbonFileMenuBigBorder.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RM_BIG_BORDER_R2_BLUE) ) );
  940. m_bmpRibbonFileMenuBigBorder.Make32();
  941. m_bmpRibbonFileMenuBigBorder.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  942. m_rcPaddingRibbonFileMenuOptionsButton.SetRect( 2, 2, 2, 2 );
  943. // VERIFY(
  944. // m_bmpRibbonFileMenuOptionsButtonCold.LoadBMP_Resource(
  945. // MAKEINTRESOURCE(IDB_EXT_2007_RM_OPTION_COLD_R2_BLUE)
  946. // )
  947. // );
  948. // m_bmpRibbonFileMenuOptionsButtonCold.Make32();
  949. // m_bmpRibbonFileMenuOptionsButtonCold.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  950. VERIFY(
  951. m_bmpRibbonFileMenuOptionsButtonHot.LoadBMP_Resource(
  952. MAKEINTRESOURCE(IDB_EXT_2007_RM_OPTION_HOT_R1)
  953. )
  954. );
  955. m_bmpRibbonFileMenuOptionsButtonHot.Make32();
  956. m_bmpRibbonFileMenuOptionsButtonHot.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  957. VERIFY( m_bmpResizingGripper.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RESIZING_GRIPPER_R2_BLUE) ) );
  958. m_bmpResizingGripper.Make32();
  959. m_bmpResizingGripper.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  960. // spin bitmaps
  961. VERIFY( m_arrBmpSpinArrowDown. LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_SPIN_ARROW_DOWN_R1) ) );
  962. VERIFY( m_arrBmpSpinArrowUp. LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_SPIN_ARROW_UP_R1) ) );
  963. VERIFY( m_arrBmpSpinDown. LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_SPIN_DOWN_R1) ) );
  964. VERIFY( m_arrBmpSpinUp. LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_SPIN_UP_R1) ) );
  965. }
  966. CExtPaintManagerOffice2010_R2_Blue::~CExtPaintManagerOffice2010_R2_Blue()
  967. {
  968. }
  969. CExtPaintManagerOffice2010_R2_Silver::CExtPaintManagerOffice2010_R2_Silver()
  970. {
  971. m_bThemedMenuItemsEverywhere = true;
  972. m_clrFillHint = RGB(233,235,238);
  973. m_clrAccentHint = RGB(255,227,140); // RGB(156,193,234);
  974. m_clrIconAlphaColor = RGB(114,121,138);
  975. m_clrAdvTipGradientBottom = RGB(229,229,240);
  976. VERIFY( m_arrMdiRightIcons[0].m_bmpNormal.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_MDI_ICON_SC_MINIMIZE) ) );
  977. VERIFY( m_arrMdiRightIcons[1].m_bmpNormal.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_MDI_ICON_SC_RESTORE) ) );
  978. VERIFY( m_arrMdiRightIcons[2].m_bmpNormal.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_MDI_ICON_SC_CLOSE) ) );
  979. //  m_clrDCA1 = RGB(234,237,239);
  980. //  m_clrDCA2 = RGB(234,237,239);
  981. //  m_clrDCA3 = RGB(234,237,239);
  982. //  m_bDocumentClientAreaBkgndR2 = true;
  983. VERIFY( m_bmpDCA.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_DCA_R2_SILVER) ) );
  984. //  m_bmpDCA.PreMultiplyRGBChannels();
  985. //  m_bmpDCA.PreMultipliedRGBChannelsSet( true );
  986. //  m_clrDCA_Solid = RGB(234,237,239);
  987. m_bUseNcFrameBmpForDockerBkgnd = true;
  988. m_clrCustomDropDownGlyphEnabled = RGB(0,0,0);
  989. m_clrCustomDropDownGlyphDisabled = RGB(141,141,141);
  990. m_clrDockingFrameDark = m_clrFloatingToolbarGripperSolid = RGB(83,96,125);
  991. m_clrDockingFrameCaptionTextActive = RGB(51,51,51);
  992. m_clrDockingFrameCaptionTextInactive = RGB(51,51,51);
  993. m_clrDockingFrameCaptionTextFloatingFixed =  RGB(255,255,255);
  994. m_clrDockingCaptionShapeFixedNormal =  RGB(255,255,255);
  995. m_rcNcFrameBordersActive.SetRect( 3, 4, 3, 2 );
  996. m_rcNcFrameBordersInactive.SetRect( 3, 4, 3, 2 );
  997. m_nCaptionHeightActive = m_nCaptionHeightInactive = 26;
  998. VERIFY( m_bmpNcFrameActive.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_FRAME_ACTIVE_R2_SILVER) ) );
  999. VERIFY( m_bmpNcFrameInactive.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_FRAME_INACTIVE_R2_SILVER) ) );
  1000. VERIFY( m_bmpNcFrameActive.Make32() );
  1001. VERIFY( m_bmpNcFrameInactive.Make32() );
  1002. m_bmpNcFrameActive.AlphaColor( m_clrTransparentNcFrameActive, RGB(0,0,0), 0 );
  1003. m_bmpNcFrameInactive.AlphaColor( m_clrTransparentNcFrameInactive, RGB(0,0,0), 0 );
  1004. m_clrNcFrameTextActive = RGB(69,69,69); // = RGB(123,123,123);
  1005. m_clrNcFrameTextInactive = RGB(163,163,163); // = RGB(183,183,183);
  1006. m_bmpNcFrameActive.PreMultiplyRGBChannels();
  1007. m_bmpNcFrameActive.PreMultipliedRGBChannelsSet( true );
  1008. m_bmpNcFrameInactive.PreMultiplyRGBChannels();
  1009. m_bmpNcFrameInactive.PreMultipliedRGBChannelsSet( true );
  1010. m_sizeNcButtonShapeInArr.cx = m_sizeNcButtonShapeInArr.cy = 21;
  1011. m_nNcBtnIdxNormalActive = m_nNcBtnIdxNormalInactive = 0;
  1012. m_rcNcButtonBkPadding.SetRect( 4, 4, 4, 4 );
  1013. VERIFY( m_bmpNcButtonBkHover.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_BUTTON_BK_HOVER_R2_SILVER) ) );
  1014. VERIFY( m_bmpNcButtonBkPressed.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_BUTTON_BK_PRESSED_R2_SILVER) ) );
  1015. VERIFY( m_bmpNcButtonBkHover.Make32() );
  1016. VERIFY( m_bmpNcButtonBkPressed.Make32() );
  1017. m_bmpNcButtonBkHover.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  1018. m_bmpNcButtonBkPressed.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  1019. m_bmpNcButtonBkHover.PreMultiplyRGBChannels();
  1020. m_bmpNcButtonBkHover.PreMultipliedRGBChannelsSet( true );
  1021. m_bmpNcButtonBkPressed.PreMultiplyRGBChannels();
  1022. m_bmpNcButtonBkPressed.PreMultipliedRGBChannelsSet( true );
  1023. VERIFY( m_bmpNcButtonBkHoverX.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_BUTTON_BK_HOVER_X_R2_SILVER) ) );
  1024. VERIFY( m_bmpNcButtonBkPressedX.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_BUTTON_BK_PRESSED_X_R2_SILVER) ) );
  1025. VERIFY( m_bmpNcButtonBkHoverX.Make32() );
  1026. VERIFY( m_bmpNcButtonBkPressedX.Make32() );
  1027. m_bmpNcButtonBkHoverX.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  1028. m_bmpNcButtonBkPressedX.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  1029. m_bmpNcButtonBkHoverX.PreMultiplyRGBChannels();
  1030. m_bmpNcButtonBkHoverX.PreMultipliedRGBChannelsSet( true );
  1031. m_bmpNcButtonBkPressedX.PreMultiplyRGBChannels();
  1032. m_bmpNcButtonBkPressedX.PreMultipliedRGBChannelsSet( true );
  1033. m_sizeNcButtonShapeInArr.cx = 13;
  1034. m_sizeNcButtonShapeInArr.cy = 12;
  1035. m_nNcBtnIdxNormalActive = 0;
  1036. m_nNcBtnIdxHover = 1;
  1037. m_nNcBtnIdxPressed = 2;
  1038. m_nNcBtnIdxNormalInactive = 3;
  1039. m_nNcBtnIdxDisabled = 4;
  1040. VERIFY( m_bmpArrNcButtonsClose.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_ARR_CLOSE_R2_SILVER) ) );
  1041. // m_bmpArrNcButtonsClose.PreMultiplyRGBChannels();
  1042. m_bmpArrNcButtonsClose.PreMultipliedRGBChannelsSet( true );
  1043. VERIFY( m_bmpArrNcButtonsMaximize.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_ARR_MAXIMIZE_R2_SILVER) ) );
  1044. // m_bmpArrNcButtonsMaximize.PreMultiplyRGBChannels();
  1045. m_bmpArrNcButtonsMaximize.PreMultipliedRGBChannelsSet( true );
  1046. VERIFY( m_bmpArrNcButtonsRestore.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_ARR_RESTORE_R2_SILVER) ) );
  1047. // m_bmpArrNcButtonsRestore.PreMultiplyRGBChannels();
  1048. m_bmpArrNcButtonsRestore.PreMultipliedRGBChannelsSet( true );
  1049. VERIFY( m_bmpArrNcButtonsMinimize.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_ARR_MINIMIZE_R2_SILVER) ) );
  1050. // m_bmpArrNcButtonsMinimize.PreMultiplyRGBChannels();
  1051. m_bmpArrNcButtonsMinimize.PreMultipliedRGBChannelsSet( true );
  1052. VERIFY( m_bmpArrNcButtonsHelp.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_ARR_HELP_R1) ) );
  1053. m_bmpArrNcButtonsHelp.PreMultiplyRGBChannels();
  1054. #if (!defined __EXT_MFC_NO_STATUSBAR)
  1055. m_clrStatusPaneTextColorNormal   = RGB(51,59,67);
  1056. m_clrStatusPaneTextColorDisabled = RGB(145,149,153);
  1057. m_rcStatusBkPadding.SetRect( 0, 2, 0, 1 );
  1058. VERIFY( m_bmpStatusBkLight.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_STATUSBAR_BK_LIGHT_R2_SILVER) ) );
  1059. VERIFY( m_bmpStatusBkDark.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_STATUSBAR_BK_DARK_R2_SILVER) ) );
  1060. m_rcStatusSeparatorPadding.SetRect( 0, 2, 0, 1 );
  1061. VERIFY( m_bmpStatusSeparator.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_STATUSBAR_SEPARATOR_R2_SILVER) ) );
  1062. #endif // (!defined __EXT_MFC_NO_STATUSBAR)
  1063. #if (!defined __EXT_MFC_NO_TAB_CTRL)
  1064. m_clrTabTextNormal = m_clrTabTextSelected = RGB( 52, 52, 64 );
  1065. m_clrTabTextNormalDWM = m_clrTabTextSelectedDWM = RGB( 76, 83, 92 );
  1066. m_nIdxTabShapeHover = 0;
  1067. m_nIdxTabShapePressed = 1;
  1068. m_nIdxTabShapeSelected = 1;
  1069. m_nIdxTabShapeSelectedHover = 1;
  1070. m_arrSizeTabShape[__ETSOI_TOP].cx
  1071. = m_arrSizeTabShape[__ETSOI_BOTTOM].cx
  1072. = m_arrSizeTabShape[__ETSOI_LEFT].cy
  1073. = m_arrSizeTabShape[__ETSOI_RIGHT].cy
  1074. = 13;
  1075. m_arrSizeTabShape[__ETSOI_TOP].cy
  1076. = m_arrSizeTabShape[__ETSOI_BOTTOM].cy
  1077. = m_arrSizeTabShape[__ETSOI_LEFT].cx
  1078. = m_arrSizeTabShape[__ETSOI_RIGHT].cx
  1079. = 23;
  1080. m_arrRectTabShapePadding[__ETSOI_TOP].SetRect( 4, 3, 4, 3 );
  1081. m_arrRectTabShapePadding[__ETSOI_BOTTOM].SetRect( 4, 3, 4, 3 );
  1082. m_arrRectTabShapePadding[__ETSOI_LEFT].SetRect( 3, 4, 3, 4 );
  1083. m_arrRectTabShapePadding[__ETSOI_RIGHT].SetRect( 3, 4, 3, 4 );
  1084. VERIFY(
  1085. m_arrBmpTabShapeNormal[__ETSOI_TOP].LoadBMP_Resource(
  1086. MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_TAB_SHAPE_ARR_R2_SILVER )
  1087. )
  1088. );
  1089. m_arrBmpTabShapeNormal[__ETSOI_TOP].PreMultipliedRGBChannelsSet( true );
  1090. VERIFY(
  1091. m_arrBmpTabShapeNormal[__ETSOI_BOTTOM].CreateRotated9xStack(
  1092. m_arrBmpTabShapeNormal[__ETSOI_TOP],
  1093. 180,
  1094. 4,
  1095. m_arrSizeTabShape[__ETSOI_TOP].cx,
  1096. m_arrSizeTabShape[__ETSOI_TOP].cy,
  1097. false,
  1098. false
  1099. )
  1100. );
  1101. VERIFY(
  1102. m_arrBmpTabShapeNormal[__ETSOI_LEFT].CreateRotated9xStack(
  1103. m_arrBmpTabShapeNormal[__ETSOI_TOP],
  1104. 270,
  1105. 4,
  1106. m_arrSizeTabShape[__ETSOI_TOP].cx,
  1107. m_arrSizeTabShape[__ETSOI_TOP].cy,
  1108. false,
  1109. false
  1110. )
  1111. );
  1112. VERIFY(
  1113. m_arrBmpTabShapeNormal[__ETSOI_RIGHT].CreateRotated9xStack(
  1114. m_arrBmpTabShapeNormal[__ETSOI_TOP],
  1115. 90,
  1116. 4,
  1117. m_arrSizeTabShape[__ETSOI_TOP].cx,
  1118. m_arrSizeTabShape[__ETSOI_TOP].cy,
  1119. false,
  1120. false
  1121. )
  1122. );
  1123. VERIFY(
  1124. m_arrBmpTabShapeSelArea[__ETSOI_TOP].LoadBMP_Resource(
  1125. MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_TAB_SHAPE_ARR_SEL_AREA_R2_SILVER )
  1126. )
  1127. );
  1128. m_arrBmpTabShapeSelArea[__ETSOI_TOP].PreMultipliedRGBChannelsSet( true );
  1129. VERIFY(
  1130. m_arrBmpTabShapeSelArea[__ETSOI_BOTTOM].CreateRotated9xStack(
  1131. m_arrBmpTabShapeSelArea[__ETSOI_TOP],
  1132. 180,
  1133. 4,
  1134. m_arrSizeTabShape[__ETSOI_TOP].cx,
  1135. m_arrSizeTabShape[__ETSOI_TOP].cy,
  1136. false,
  1137. false
  1138. )
  1139. );
  1140. VERIFY(
  1141. m_arrBmpTabShapeSelArea[__ETSOI_LEFT].CreateRotated9xStack(
  1142. m_arrBmpTabShapeSelArea[__ETSOI_TOP],
  1143. 270,
  1144. 4,
  1145. m_arrSizeTabShape[__ETSOI_TOP].cx,
  1146. m_arrSizeTabShape[__ETSOI_TOP].cy,
  1147. false,
  1148. false
  1149. )
  1150. );
  1151. VERIFY(
  1152. m_arrBmpTabShapeSelArea[__ETSOI_RIGHT].CreateRotated9xStack(
  1153. m_arrBmpTabShapeSelArea[__ETSOI_TOP],
  1154. 90,
  1155. 4,
  1156. m_arrSizeTabShape[__ETSOI_TOP].cx,
  1157. m_arrSizeTabShape[__ETSOI_TOP].cy,
  1158. false,
  1159. false
  1160. )
  1161. );
  1162. m_arrRectTabAreaPadding[__ETSOI_TOP].SetRect( 3, 3, 3, 3 );
  1163. m_arrRectTabAreaPadding[__ETSOI_BOTTOM].SetRect( 3, 3, 3, 3 );
  1164. m_arrRectTabAreaPadding[__ETSOI_LEFT].SetRect( 3, 3, 3, 3 );
  1165. m_arrRectTabAreaPadding[__ETSOI_RIGHT].SetRect( 3, 3, 3, 3 );
  1166. m_arrTabAreaMargins[__ETSOI_TOP] = 1;
  1167. m_arrTabAreaMargins[__ETSOI_BOTTOM] = 1;
  1168. m_arrTabAreaMargins[__ETSOI_LEFT] = 1;
  1169. m_arrTabAreaMargins[__ETSOI_RIGHT] = 1;
  1170. m_arrSizeTabSeparator[__ETSOI_TOP].cx
  1171. = m_arrSizeTabSeparator[__ETSOI_BOTTOM].cx
  1172. = m_arrSizeTabSeparator[__ETSOI_LEFT].cy
  1173. = m_arrSizeTabSeparator[__ETSOI_RIGHT].cy
  1174. = 2;
  1175. m_arrSizeTabSeparator[__ETSOI_TOP].cy
  1176. = m_arrSizeTabSeparator[__ETSOI_BOTTOM].cy
  1177. = m_arrSizeTabSeparator[__ETSOI_LEFT].cx
  1178. = m_arrSizeTabSeparator[__ETSOI_RIGHT].cx
  1179. = 23;
  1180. m_arrRectTabSeparatorPadding[__ETSOI_TOP].SetRect( 0, 2, 0, 2 );
  1181. m_arrRectTabSeparatorPadding[__ETSOI_BOTTOM].SetRect( 0, 2, 0, 2 );
  1182. m_arrRectTabSeparatorPadding[__ETSOI_LEFT].SetRect( 2, 0, 2, 0 );
  1183. m_arrRectTabSeparatorPadding[__ETSOI_RIGHT].SetRect( 2, 0, 2, 0 );
  1184. VERIFY(
  1185. m_arrBmpTabSeparator[__ETSOI_TOP].LoadBMP_Resource(
  1186. MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_TAB_SEPARATOR_R2_SILVER )
  1187. )
  1188. );
  1189. VERIFY( m_arrBmpTabSeparator[__ETSOI_TOP].Make32() );
  1190. //  m_arrBmpTabSeparator[__ETSOI_TOP].PreMultiplyRGBChannels();
  1191. //  m_arrBmpTabSeparator[__ETSOI_TOP].PreMultipliedRGBChannelsSet( true );
  1192. VERIFY(
  1193. m_arrBmpTabSeparator[__ETSOI_BOTTOM].CreateRotated9xStack(
  1194. m_arrBmpTabSeparator[__ETSOI_TOP],
  1195. 180,
  1196. 1,
  1197. m_arrSizeTabSeparator[__ETSOI_TOP].cx,
  1198. m_arrSizeTabSeparator[__ETSOI_TOP].cy,
  1199. false,
  1200. false
  1201. )
  1202. );
  1203. VERIFY(
  1204. m_arrBmpTabSeparator[__ETSOI_LEFT].CreateRotated9xStack(
  1205. m_arrBmpTabSeparator[__ETSOI_TOP],
  1206. 270,
  1207. 1,
  1208. m_arrSizeTabSeparator[__ETSOI_TOP].cx,
  1209. m_arrSizeTabSeparator[__ETSOI_TOP].cy,
  1210. false,
  1211. false
  1212. )
  1213. );
  1214. VERIFY(
  1215. m_arrBmpTabSeparator[__ETSOI_RIGHT].CreateRotated9xStack(
  1216. m_arrBmpTabSeparator[__ETSOI_TOP],
  1217. 90,
  1218. 1,
  1219. m_arrSizeTabSeparator[__ETSOI_TOP].cx,
  1220. m_arrSizeTabSeparator[__ETSOI_TOP].cy,
  1221. false,
  1222. false
  1223. )
  1224. );
  1225. #endif // (!defined __EXT_MFC_NO_TAB_CTRL)
  1226. VERIFY(
  1227. m_bmpArrStatesCheckBox.LoadBMP_Resource(
  1228. MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_CHECK_BOX_R1 )
  1229. )
  1230. );
  1231. VERIFY(
  1232. m_bmpArrStatesRadioButton.LoadBMP_Resource(
  1233. MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_RADIO_BUTTON_R1 )
  1234. )
  1235. );
  1236. m_clrMenuItemLeftAreaMarginL = RGB(226, 228, 231);
  1237. m_clrMenuItemLeftAreaMarginR = RGB(245, 245, 245);
  1238. m_rcMenuItemPaddingLargeLeft.SetRect(  3, 3, 3, 16 );
  1239. m_rcMenuItemPaddingLargeRight.SetRect( 1, 3, 3, 16 );
  1240. m_rcMenuItemPaddingSmallLeft.SetRect(  3, 3, 3, 10 );
  1241. m_rcMenuItemPaddingSmallRight.SetRect( 1, 3, 3, 10 );
  1242. VERIFY(
  1243. m_bmpMenuItemLargeLeft.LoadBMP_Resource(
  1244. MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_MENU_ITEM_R1_LARGE_LEFT )
  1245. )
  1246. );
  1247. VERIFY(
  1248. m_bmpMenuItemLargeRight.LoadBMP_Resource(
  1249. MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_MENU_ITEM_R1_LARGE_RIGHT )
  1250. )
  1251. );
  1252. VERIFY(
  1253. m_bmpMenuItemSmallLeft.LoadBMP_Resource(
  1254. MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_MENU_ITEM_R1_SMALL_LEFT )
  1255. )
  1256. );
  1257. VERIFY(
  1258. m_bmpMenuItemSmallRight.LoadBMP_Resource(
  1259. MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_MENU_ITEM_R1_SMALL_RIGHT )
  1260. )
  1261. );
  1262. VERIFY(
  1263. m_bmpMenuArrow.LoadBMP_Resource(
  1264. MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_MENU_ITEM_ARROW )
  1265. )
  1266. );
  1267. m_sizeMenuCheckAreaChecked.cx = 16;
  1268. m_sizeMenuCheckAreaChecked.cy = 16;
  1269. m_sizeMenuCheckAreaUnchecked.cx = 20;
  1270. m_sizeMenuCheckAreaUnchecked.cy = 20;
  1271. m_arrRectMenuCheckAreaCheckedPadding[0].SetRect( 1, 1, 1, 1 );
  1272. m_arrRectMenuCheckAreaCheckedPadding[1].SetRect( 1, 1, 1, 1 );
  1273. m_arrRectMenuCheckAreaUncheckedPadding[0].SetRect( 1, 1, 1, 1 );
  1274. m_arrRectMenuCheckAreaUncheckedPadding[1].SetRect( 1, 1, 1, 1 );
  1275. VERIFY( m_bmpMenuCheckAreaChecked.LoadBMP_Resource(   MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_MENU_CHECK_AREA_CHECKED_R1   ) ) );
  1276. VERIFY( m_bmpMenuCheckAreaUnchecked.LoadBMP_Resource( MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_MENU_CHECK_AREA_UNCHECKED_R1 ) ) );
  1277. #if (!defined __EXT_MFC_NO_PAGE_NAVIGATOR )
  1278. m_arrClrPnCaptNormal[0]  = RGB(235,238,250);
  1279. m_arrClrPnCaptNormal[1]  = RGB(215,219,229);
  1280. m_arrClrPnCaptNormal[2]  = RGB(197,199,209);
  1281. m_arrClrPnCaptNormal[3]  = RGB(212,216,226);
  1282. m_arrClrPnSplitter[0]    = RGB( 240, 243, 247 );
  1283. m_arrClrPnSplitter[1]    = RGB( 215, 219, 225 );
  1284. m_clrPnCaptText  = RGB( 30, 57, 91 );
  1285. m_arrClrPnItemText[0]    = RGB(0,0,0);
  1286. m_arrClrPnItemText[1]    = RGB(76,83,92);
  1287. m_clrPnConfigButton  = RGB(101,104,112); 
  1288. static const UINT g_arrResIdPnItemExpanded[ePn_Count] =
  1289. {
  1290. IDB_EXT_2010_OFFICE_PN_ITEM_EXPANDED_NORMAL_R1,
  1291. IDB_EXT_2010_OFFICE_PN_ITEM_EXPANDED_HOVER_R1,
  1292. IDB_EXT_2010_OFFICE_PN_ITEM_EXPANDED_PRESSED_R1,
  1293. IDB_EXT_2010_OFFICE_PN_ITEM_EXPANDED_SELECTED_R1,
  1294. IDB_EXT_2010_OFFICE_PN_ITEM_EXPANDED_SELECTED_HOVER_R1,
  1295. };
  1296. static const UINT g_arrResIdPnItemCollapsed[ePn_Count] =
  1297. {
  1298. IDB_EXT_2010_OFFICE_PN_ITEM_COLLAPSED_NORMAL_R1,
  1299. IDB_EXT_2010_OFFICE_PN_ITEM_COLLAPSED_HOVER_R1,
  1300. IDB_EXT_2010_OFFICE_PN_ITEM_COLLAPSED_PRESSED_R1,
  1301. IDB_EXT_2010_OFFICE_PN_ITEM_COLLAPSED_SELECTED_R1,
  1302. IDB_EXT_2010_OFFICE_PN_ITEM_COLLAPSED_SELECTED_HOVER_R1,
  1303. };
  1304. INT nPnIndex;
  1305. for( nPnIndex = 0; nPnIndex < INT(ePn_Count); nPnIndex ++ )
  1306. {
  1307. VERIFY( m_arrBmpPnItemExpanded[nPnIndex].LoadBMP_Resource( MAKEINTRESOURCE(g_arrResIdPnItemExpanded[nPnIndex]) ) );
  1308. VERIFY( m_arrBmpPnItemCollapsed[nPnIndex].LoadBMP_Resource( MAKEINTRESOURCE(g_arrResIdPnItemCollapsed[nPnIndex]) ) );
  1309. m_arrRcPnItemPaddingExpanded[nPnIndex].SetRect( 0, 2, 0, 2 );
  1310. m_arrRcPnItemPaddingCollapsed[nPnIndex].SetRect( 0, 0, 0, 0 );
  1311. m_arrClrPnItemTextBmpVer[nPnIndex] = RGB(0,0,0);
  1312. }
  1313. #endif // (!defined __EXT_MFC_NO_PAGE_NAVIGATOR )
  1314. VERIFY( m_bmpArrComboBoxDropDown.LoadBMP_Resource( MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_COMBO_BOX_BUTTON_R2_SILVER ) ) );
  1315. m_bmpArrComboBoxDropDown.PreMultipliedRGBChannelsSet( true );
  1316. m_arrClrComboBoxBorder[0] = RGB(212,214,217);
  1317. m_arrClrComboBoxBorder[1] = RGB(164,164,164);
  1318. m_arrClrComboBoxBorder[2] = RGB(164,164,164);
  1319. m_arrClrComboBoxBorder[3] = RGB(228,231,235);
  1320. CRect SbSkinDataPaddingH( 5, 3, 5, 3 ), SbSkinDataPaddingV( 3, 5, 3, 5 );
  1321. CRect rcEntirePaddingRH( 2, 2, 2, 2 ), rcEntirePaddingRV( 2, 2, 2, 2 );
  1322. CRect rcEntirePaddingCH( 1, 1, 1, 1 ), rcEntirePaddingCV( 1, 1, 1, 1 );
  1323. m_SbSkinDataT_Zoom.Load2010_Zoom_R1(
  1324. IDB_EXT_2010_OFFICE_ZS_PLUS_R2_SILVER, IDB_EXT_2010_OFFICE_ZS_MINUS_R2_SILVER, IDB_EXT_2010_OFFICE_ZS_THUMB_R2_SILVER,
  1325. RGB(255,255,255), RGB(157,166,176), RGB(255,255,255), RGB(157,166,176), AFX_IDW_DOCKBAR_TOP
  1326. );
  1327. m_SbSkinDataB_Zoom.Load2010_Zoom_R1(
  1328. IDB_EXT_2010_OFFICE_ZS_PLUS_R2_SILVER, IDB_EXT_2010_OFFICE_ZS_MINUS_R2_SILVER, IDB_EXT_2010_OFFICE_ZS_THUMB_R2_SILVER,
  1329. RGB(255,255,255), RGB(157,166,176), RGB(255,255,255), RGB(157,166,176), AFX_IDW_DOCKBAR_BOTTOM
  1330. );
  1331. m_SbSkinDataL_Zoom.Load2010_Zoom_R1(
  1332. IDB_EXT_2010_OFFICE_ZS_PLUS_R2_SILVER, IDB_EXT_2010_OFFICE_ZS_MINUS_R2_SILVER, IDB_EXT_2010_OFFICE_ZS_THUMB_R2_SILVER,
  1333. RGB(255,255,255), RGB(157,166,176), RGB(255,255,255), RGB(157,166,176), AFX_IDW_DOCKBAR_LEFT
  1334. );
  1335. m_SbSkinDataR_Zoom.Load2010_Zoom_R1(
  1336. IDB_EXT_2010_OFFICE_ZS_PLUS_R2_SILVER, IDB_EXT_2010_OFFICE_ZS_MINUS_R2_SILVER, IDB_EXT_2010_OFFICE_ZS_THUMB_R2_SILVER,
  1337. RGB(255,255,255), RGB(157,166,176), RGB(255,255,255), RGB(157,166,176), AFX_IDW_DOCKBAR_RIGHT
  1338. );
  1339. m_SbSkinDataH_Light.Load2007_R1(
  1340. IDB_EXT_2010_OFFICE_SCROLL_BAR_STACK_BUTTONS_R2_SILVER_HORZ_LIGHT,
  1341. 16,
  1342. IDB_EXT_2010_OFFICE_SCROLL_BAR_GRIPPER_R2_LIGHT_HORZ,
  1343. SbSkinDataPaddingH,
  1344. COLORREF(-1L),
  1345. COLORREF(-1L),
  1346. IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_UP_NORMAL_R2_LIGHT,
  1347. IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_UP_DISABLED_R2_LIGHT,
  1348. IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_DOWN_NORMAL_R2_LIGHT,
  1349. IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_DOWN_DISABLED_R2_LIGHT,
  1350. true,
  1351. IDB_EXT_2010_OFFICE_SCROLL_BAR_ENTIRE_BK_R2_SILVER_LIGHT,
  1352. IDB_EXT_2010_OFFICE_SCROLL_BAR_PAGE_BK_R2_SILVER_LIGHT,
  1353. rcEntirePaddingRH,
  1354. rcEntirePaddingCH
  1355. );
  1356. m_SbSkinDataV_Light.Load2007_R1(
  1357. IDB_EXT_2010_OFFICE_SCROLL_BAR_STACK_BUTTONS_R2_SILVER_VERT_LIGHT,
  1358. 17,
  1359. IDB_EXT_2010_OFFICE_SCROLL_BAR_GRIPPER_R2_LIGHT_VERT,
  1360. SbSkinDataPaddingV,
  1361. COLORREF(-1L),
  1362. COLORREF(-1L),
  1363. IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_UP_NORMAL_R2_SILVER,
  1364. IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_UP_DISABLED_R2_SILVER,
  1365. IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_DOWN_NORMAL_R2_SILVER,
  1366. IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_DOWN_DISABLED_R2_SILVER,
  1367. false,
  1368. IDB_EXT_2010_OFFICE_SCROLL_BAR_ENTIRE_BK_R2_SILVER_LIGHT,
  1369. IDB_EXT_2010_OFFICE_SCROLL_BAR_PAGE_BK_R2_SILVER_LIGHT,
  1370. rcEntirePaddingRV,
  1371. rcEntirePaddingCV
  1372. );
  1373. m_SbSkinDataH_Dark.Load2007_R1(
  1374. IDB_EXT_2010_OFFICE_SCROLL_BAR_STACK_BUTTONS_R2_SILVER_HORZ_DARK,
  1375. 16,
  1376. IDB_EXT_2010_OFFICE_SCROLL_BAR_GRIPPER_R2_SILVER_HORZ,
  1377. SbSkinDataPaddingH,
  1378. COLORREF(-1L),
  1379. COLORREF(-1L),
  1380. IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_UP_NORMAL_R2_SILVER,
  1381. IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_UP_DISABLED_R2_SILVER,
  1382. IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_DOWN_NORMAL_R2_SILVER,
  1383. IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_DOWN_DISABLED_R2_SILVER,
  1384. true,
  1385. IDB_EXT_2010_OFFICE_SCROLL_BAR_ENTIRE_BK_R2_SILVER_DARK,
  1386. IDB_EXT_2010_OFFICE_SCROLL_BAR_PAGE_BK_R2_SILVER_DARK,
  1387. rcEntirePaddingRH,
  1388. rcEntirePaddingCH
  1389. );
  1390. m_SbSkinDataV_Dark.Load2007_R1(
  1391. IDB_EXT_2010_OFFICE_SCROLL_BAR_STACK_BUTTONS_R2_SILVER_VERT_DARK,
  1392. 17,
  1393. IDB_EXT_2010_OFFICE_SCROLL_BAR_GRIPPER_R2_SILVER_VERT,
  1394. SbSkinDataPaddingV,
  1395. COLORREF(-1L),
  1396. COLORREF(-1L),
  1397. IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_UP_NORMAL_R2_SILVER,
  1398. IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_UP_DISABLED_R2_SILVER,
  1399. IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_DOWN_NORMAL_R2_SILVER,
  1400. IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_DOWN_DISABLED_R2_SILVER,
  1401. false,
  1402. IDB_EXT_2010_OFFICE_SCROLL_BAR_ENTIRE_BK_R2_SILVER_DARK,
  1403. IDB_EXT_2010_OFFICE_SCROLL_BAR_PAGE_BK_R2_SILVER_DARK,
  1404. rcEntirePaddingRV,
  1405. rcEntirePaddingCV
  1406. );
  1407. m_clrGridHeaderBkTop     = RGB(253,253,253);
  1408. m_clrGridHeaderBkBottom  = RGB(212,215,220);
  1409. m_clrGridHeaderSeparator = RGB(145,153,164);
  1410. m_clrGridHeaderSortArrow = RGB(145,153,164);
  1411. m_clrGridHeaderBorder    = RGB(145,153,164);
  1412. m_clrRgHeaderBkTop     = RGB(253,253,253);
  1413. m_clrRgHeaderBkBottom  = RGB(212,215,220);
  1414. m_clrRgHeaderSeparator = RGB(145,153,164);
  1415. m_clrRgHeaderSortArrow = RGB(145,153,164);
  1416. m_clrRgHeaderText      = RGB(0,0,0);
  1417. m_clrRgHeaderBorder    = RGB(76,83,92);
  1418. #if (!defined __EXT_MFC_NO_REPORTGRIDWND)
  1419. m_clrRgGroupAreaBk     = RGB(235,235,235);
  1420. m_clrRgGroupAreaText   = RGB(70,70,70);
  1421. #endif // (!defined __EXT_MFC_NO_REPORTGRIDWND)
  1422. m_nPushBtnSimpleGlyphHeightH = 43;
  1423. m_nPushBtnSimpleGlyphHeightV = 43;
  1424. m_nPushBtnSDDLeftGlyphHeightH = 43;
  1425. m_nPushBtnSDDLeftGlyphHeightV = 43;
  1426. m_nPushBtnSDDRightGlyphHeightH = 43;
  1427. m_nPushBtnSDDRightGlyphHeightV = 9;
  1428. m_rcPushBtnSimplePaddingH.SetRect( 3, 3, 3, 3 );
  1429. m_rcPushBtnSimplePaddingV.SetRect( 3, 3, 3, 3 );
  1430. m_rcPushBtnSDDLeftPaddingH.SetRect( 3, 3, 3, 3 );
  1431. m_rcPushBtnSDDLeftPaddingV.SetRect( 3, 3, 3, 3 );
  1432. m_rcPushBtnSDDRightPaddingH.SetRect( 3, 3, 3, 3 );
  1433. m_rcPushBtnSDDRightPaddingV.SetRect( 3, 3, 3, 3 );
  1434. VERIFY(
  1435. m_arrBmpPushBtnSimpleH.LoadBMP_Resource(
  1436. MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_BUTTON_R1_SIMPLE )
  1437. )
  1438. );
  1439. VERIFY(
  1440. m_arrBmpPushBtnSDDLeftH.LoadBMP_Resource(
  1441. MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_BUTTON_R1_LEFT_PART )
  1442. )
  1443. );
  1444. VERIFY(
  1445. m_arrBmpPushBtnSDDRightH.LoadBMP_Resource(
  1446. MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_BUTTON_R1_RIGHT_PART )
  1447. )
  1448. );
  1449. VERIFY(
  1450. m_arrBmpPushBtnSimpleV.CreateRotated9xStack(
  1451. m_arrBmpPushBtnSimpleH,
  1452. 90,
  1453. INT(__EPBGT_GLYPH_COUNT),
  1454. m_arrBmpPushBtnSimpleH.GetSize().cx,
  1455. m_nPushBtnSimpleGlyphHeightH,
  1456. false,
  1457. false
  1458. )
  1459. );
  1460. VERIFY(
  1461. m_arrBmpPushBtnSDDLeftV.CreateRotated9xStack(
  1462. m_arrBmpPushBtnSDDLeftH,
  1463. 90,
  1464. INT(__EPBGT_GLYPH_COUNT),
  1465. m_arrBmpPushBtnSDDLeftH.GetSize().cx,
  1466. m_nPushBtnSDDLeftGlyphHeightH,
  1467. false,
  1468. false
  1469. )
  1470. );
  1471. VERIFY(
  1472. m_arrBmpPushBtnSDDRightV.CreateRotated9xStack(
  1473. m_arrBmpPushBtnSDDRightH,
  1474. 90,
  1475. INT(__EPBGT_GLYPH_COUNT),
  1476. m_arrBmpPushBtnSDDRightH.GetSize().cx,
  1477. m_nPushBtnSDDRightGlyphHeightH,
  1478. false,
  1479. false
  1480. )
  1481. );
  1482. m_arrBmpPushBtnSimpleV.PreMultipliedRGBChannelsSet( true );
  1483. m_arrBmpPushBtnSDDLeftV.PreMultipliedRGBChannelsSet( true );
  1484. m_arrBmpPushBtnSDDRightV.PreMultipliedRGBChannelsSet( true );
  1485. #if (!defined __EXT_MFC_NO_RIBBON_BAR)
  1486. if( g_PaintManager.m_bIsWinVistaOrLater )
  1487. {
  1488. VERIFY( m_bmpRibbonTabAreaBlur.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_TAB_AREA_DWM_BLUR) ) );
  1489. m_rcRibbonTabAreaBlurPadding.SetRect( 35, 0, 35, 36 );
  1490. }
  1491. m_clrRibbonTabClientAreaActive = RGB(233,235,238);
  1492. m_clrRibbonTabClientAreaInactive = RGB(252,252,252);
  1493. m_clrContractedMargin1 = RGB(128,128,128);
  1494. m_clrContractedMargin2 = RGB(128,128,128);
  1495. m_bRibbonGroupCaptionAtTop = false;
  1496. m_bRibbonGroupCaptionAreaHasPadding = true;
  1497. m_nRibbonGroupCaptionAreaHeightExpanded = 16;
  1498. m_nRibbonGroupCaptionAreaHeightCollapsed = 16;
  1499. m_nRibbonGroupIconBkVertOffset = 2;
  1500. m_nRibbonCaptionPartHeight = 17;
  1501. m_rcRibbonPageOuterContentPadding.SetRect( 0, 0, 0, 0 );
  1502. m_clrRibbonComboBackGroundNormal   = RGB(255,255,255);
  1503. m_clrRibbonComboBackGroundDisabled = RGB(255,255,255);
  1504. m_nRibbonTabIntersectionHeight = 1;
  1505. //m_nRibbonQuickAccessBarButtonsAlignment = 0;
  1506. m_clrRibbonGroupCaptionTextCollapsed
  1507. = m_clrRibbonButtonNormal
  1508. = RGB(57,60,63);
  1509. m_clrRibbonButtonDisabled = RGB(128,128,128);
  1510. m_clrRibbonGroupCaptionTextExpanded = RGB( 52, 52, 64 );
  1511. //m_clrRibbonGroupCaptionTextShadowExpanded = RGB( 0, 0, 0 );
  1512. //m_sizeRibbonGroupCaptionTextOffset = CSize( 1, 1 );
  1513. m_nRibbonGroupCaptionTextDF
  1514. = m_nRibbonGroupCaptionTextShadowDF
  1515. = DT_SINGLELINE|DT_CENTER|DT_VCENTER|DT_END_ELLIPSIS;
  1516. m_rcRibbonPageBkPadding.SetRect( 1, 1, 1, 1 );
  1517. VERIFY(
  1518. m_bmpRibbonPageBk.LoadBMP_Resource(
  1519. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_PAGE_BK_R2_SILVER)
  1520. )
  1521. );
  1522. m_rcRibbonGroupPaddingBkExpanded.SetRect( 2, 6, 4, 2 );
  1523. VERIFY(
  1524. m_bmpRibbonGroupBkExpanded[0].LoadBMP_Resource(
  1525. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_GROUP_EXPANDED_NORMAL_BK_R2_SILVER)
  1526. )
  1527. );
  1528. m_bmpRibbonGroupBkExpanded[0].PreMultipliedRGBChannelsSet( false );
  1529. VERIFY(
  1530. m_bmpRibbonGroupBkExpanded[1].LoadBMP_Resource(
  1531. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_GROUP_EXPANDED_HOVER_BK_R2_SILVER)
  1532. )
  1533. );
  1534. m_bmpRibbonGroupBkExpanded[1].PreMultipliedRGBChannelsSet( false );
  1535. m_rcRibbonGroupPaddingBkCollapsed.SetRect( 2, 6, 4, 2 );
  1536. VERIFY(
  1537. m_bmpRibbonGroupBkCollapsed[0].LoadBMP_Resource(
  1538. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_GROUP_COLLAPSED_NORMAL_BK_R2_SILVER)
  1539. )
  1540. );
  1541. m_bmpRibbonGroupBkCollapsed[0].PreMultipliedRGBChannelsSet( false );
  1542. VERIFY(
  1543. m_bmpRibbonGroupBkCollapsed[1].LoadBMP_Resource(
  1544. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_GROUP_COLLAPSED_HOVER_BK_R2_SILVER)
  1545. )
  1546. );
  1547. m_bmpRibbonGroupBkCollapsed[1].PreMultipliedRGBChannelsSet( false );
  1548. VERIFY(
  1549. m_bmpRibbonGroupBkCollapsed[2].LoadBMP_Resource(
  1550. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_GROUP_COLLAPSED_PRESSED_BK_R2_SILVER)
  1551. )
  1552. );
  1553. m_bmpRibbonGroupBkCollapsed[2].PreMultipliedRGBChannelsSet( false );
  1554. VERIFY(
  1555. m_bmpRibbonGroupBkCollapsed[3].LoadBMP_Resource( // selected same as hover in R1
  1556. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_GROUP_COLLAPSED_HOVER_BK_R2_SILVER)
  1557. )
  1558. );
  1559. m_bmpRibbonGroupBkCollapsed[3].PreMultipliedRGBChannelsSet( false );
  1560. //INT nBkIndex, nBkCount;
  1561. // nBkCount = sizeof( m_bmpRibbonGroupBkExpanded ) / sizeof( m_bmpRibbonGroupBkExpanded[0] );
  1562. // for( nBkIndex = 0; nBkIndex < nBkCount; nBkIndex ++ )
  1563. // {
  1564. // m_bmpRibbonGroupBkExpanded[nBkIndex].Make32();
  1565. // m_bmpRibbonGroupBkExpanded[nBkIndex].AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  1566. // } // for( nBkIndex = 0; nBkIndex < nBkCount; nBkIndex ++ )
  1567. // nBkCount = sizeof( m_bmpRibbonGroupBkCollapsed ) / sizeof( m_bmpRibbonGroupBkCollapsed[0] );
  1568. // for( nBkIndex = 0; nBkIndex < nBkCount; nBkIndex ++ )
  1569. // {
  1570. // m_bmpRibbonGroupBkCollapsed[nBkIndex].Make32();
  1571. // m_bmpRibbonGroupBkCollapsed[nBkIndex].AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  1572. // } // for( nBkIndex = 0; nBkIndex < nBkCount; nBkIndex ++ )
  1573. VERIFY( m_bmpRibbonGroupBkQATB[0].LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_GROUP_BUTTON_QATB_NORMAL_BK_R2_SILVER) ) );
  1574. //m_bmpRibbonGroupBkQATB[0].PreMultiplyRGBChannels( false );
  1575. VERIFY( m_bmpRibbonGroupBkQATB[0].Make32() );
  1576. m_bmpRibbonGroupBkQATB[0].AlphaColor( RGB(255,0,255), RGB(0,0,0), BYTE(0) );
  1577. VERIFY( m_bmpRibbonGroupBkQATB[1].LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_GROUP_BUTTON_QATB_HOVER_BK_R2_SILVER) ) );
  1578. //m_bmpRibbonGroupBkQATB[1].PreMultiplyRGBChannels( false );
  1579. VERIFY( m_bmpRibbonGroupBkQATB[1].Make32() );
  1580. m_bmpRibbonGroupBkQATB[1].AlphaColor( RGB(255,0,255), RGB(0,0,0), BYTE(0) );
  1581. VERIFY( m_bmpRibbonGroupBkQATB[2].LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_GROUP_BUTTON_QATB_PRESSED_BK_R2_SILVER) ) );
  1582. //m_bmpRibbonGroupBkQATB[2].PreMultiplyRGBChannels( false );
  1583. VERIFY( m_bmpRibbonGroupBkQATB[2].Make32() );
  1584. m_bmpRibbonGroupBkQATB[2].AlphaColor( RGB(255,0,255), RGB(0,0,0), BYTE(0) );
  1585. m_bmpRibbonGroupBkQATB[3] = m_bmpRibbonGroupBkQATB[1];
  1586. m_nRibbonSeparatorDrawModeH = INT( CExtBitmap::__EDM_STRETCH );
  1587. m_nRibbonSeparatorDrawModeV = INT( CExtBitmap::__EDM_STRETCH );
  1588. m_rcRibbonSeparatorPaddingH.SetRect( 0, 0, 0, 0 );
  1589. VERIFY(
  1590. m_bmpRibbonSeparatorH.LoadBMP_Resource(
  1591. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_SEPARATOR_H_R2_SILVER)
  1592. )
  1593. );
  1594. VERIFY( m_bmpRibbonSeparatorH.Make32() );
  1595. m_bmpRibbonSeparatorH.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  1596. m_rcRibbonSeparatorPaddingV.SetRect( 0, 0, 0, 0 );
  1597. VERIFY(
  1598. m_bmpRibbonSeparatorV.LoadBMP_Resource(
  1599. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_SEPARATOR_V_R2_SILVER)
  1600. )
  1601. );
  1602. VERIFY( m_bmpRibbonSeparatorV.Make32() );
  1603. m_bmpRibbonSeparatorV.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  1604. m_rcRibbonPaddingQACEB.SetRect( 3, 3, 3, 3 );
  1605. m_nRibbonHeightOfQACEB = 22;
  1606. m_nIdxRibbonQACEB_Normal   = 3;
  1607. m_nIdxRibbonQACEB_Hover    = 0;
  1608. m_nIdxRibbonQACEB_Pressed  = 1;
  1609. m_nIdxRibbonQACEB_Selected = 2;
  1610. VERIFY(
  1611. m_bmpArrRibbonQACEB.LoadBMP_Resource(
  1612. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_QATB_CEB_R2_SILVER)
  1613. )
  1614. );
  1615. m_bmpArrRibbonQACEB.PreMultiplyRGBChannels( false );
  1616. //m_bmpArrRibbonQACEB.PreMultipliedRGBChannelsSet( true );
  1617. m_nRibbonEmbeddedCaptionTextAlignmentFlags = (DT_SINGLELINE|DT_CENTER|DT_VCENTER);
  1618. //m_bRibbonFileButtonItegrationSupported = false;
  1619. //m_nRibbonFileButtonMenuIntersectionHeight = 20;
  1620. m_nQatbAdditionalSpaceAtRightDWM = 0;
  1621. //  INT nCaptionHeightActive = NcFrame_GetCaptionHeight( true, NULL ) + m_rcNcFrameBordersActive.top;
  1622. //  INT nCaptionHeightInactive = NcFrame_GetCaptionHeight( false, NULL ) + m_rcNcFrameBordersInactive.top;
  1623. //  CExtBitmap::Filter _fBox( CExtBitmap::Filter::box );
  1624. m_rcRibbonNcCornerLeftCP.SetRect( 53, 2, 2, 2 );
  1625. m_rcRibbonNcCornerRightCP.SetRect( 2, 2, 42, 2 );
  1626. VERIFY( m_bmpArrRibbonFileButton.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_FILE_BUTTON) ) );
  1627. //m_bmpArrRibbonFileButton.PreMultipliedRGBChannelsSet( true );
  1628. m_bmpArrRibbonFileButton.PreMultiplyRGBChannels( true );
  1629. m_nRibbonFileButtonHeight = m_bmpArrRibbonFileButton.GetSize().cy / 3;
  1630. m_rcPaddingRibbonQuickAccessBarBkAtTheBottom.SetRect( 0, 1, 0, 1 );
  1631. VERIFY( m_bmpRibbonQuickAccessBarBkAtTheBottom.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_QATB_BK_R2_SILVER) ) );
  1632. m_nRibbonHeightOfOneDLB = 14;
  1633. m_nDlbIdxDisabled = m_nDlbIdxNormal = 0;
  1634. m_nDlbIdxHover = 1;
  1635. m_nDlbIdxPressed = 2;
  1636. rcRibbonContentPaddingDLB.SetRect( 2, 2, 2, 2 );
  1637. VERIFY( m_arrBmpRibbonDLB.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_GCB_R2_SILVER) ) );
  1638. //m_arrBmpRibbonDLB.PreMultipliedRGBChannelsSet( true );
  1639. m_arrBmpRibbonDLB.PreMultiplyRGBChannels( false );
  1640. m_clrRibbonGalleryInplaceBorderNormal = m_clrRibbonGalleryInplaceBorderHover  = RGB(198,202,205);
  1641. m_clrRibbonGalleryInplaceBkgndNormal  = m_clrRibbonGalleryInplaceBkgndHover   = RGB(255,255,255);
  1642. m_rcRibbonGalleryScrollFill = RGB(255,255,255);
  1643. m_rcRibbonGalleryScrollButtonPadding.SetRect( 3, 3, 3, 3 );
  1644. m_nHeightRibbonGalleryScrollButton = -1; //20;
  1645. m_nIndexRibbonGalleryScrollButtonNormal   = 0;
  1646. m_nIndexRibbonGalleryScrollButtonHover    = 1;
  1647. m_nIndexRibbonGalleryScrollButtonPressed  = 2;
  1648. m_nIndexRibbonGalleryScrollButtonDisabled = 3;
  1649. VERIFY(
  1650. m_bmpArrRibbonGalleryScrollButtonDown.LoadBMP_Resource(
  1651. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RGIBTN_DOWN_R2_SILVER)
  1652. )
  1653. );
  1654. m_bmpArrRibbonGalleryScrollButtonDown.PreMultipliedRGBChannelsSet( true );
  1655. VERIFY(
  1656. m_bmpArrRibbonGalleryScrollButtonUp.LoadBMP_Resource(
  1657. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RGIBTN_UP_R2_SILVER)
  1658. )
  1659. );
  1660. m_bmpArrRibbonGalleryScrollButtonUp.PreMultipliedRGBChannelsSet( true );
  1661. VERIFY(
  1662. m_bmpArrRibbonGalleryScrollButtonMenu.LoadBMP_Resource(
  1663. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RGIBTN_MENU_R2_SILVER)
  1664. )
  1665. );
  1666. m_bmpArrRibbonGalleryScrollButtonMenu.PreMultipliedRGBChannelsSet( true );
  1667. #endif // (!defined __EXT_MFC_NO_RIBBON_BAR)
  1668. VERIFY( m_bmpRibbonDDA.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_DDA_R1) ) );
  1669. VERIFY( m_bmpRibbonDDA.Make32() );
  1670. m_bmpRibbonDDA.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  1671. m_rcRibbonPaddingComboBoxDropDown.SetRect( 2, 2, 2, 2 );
  1672. VERIFY( m_bmpArrRibbonComboBoxDropDown.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_COMBO_BOX_BUTTON_R1) ) );
  1673. m_bmpArrRibbonComboBoxDropDown.PreMultipliedRGBChannelsSet( true );
  1674. // buttons 2010
  1675. m_nHeightOfButtonLSM = 66;
  1676. m_nHeightOfButtonLSXM = 39;
  1677. m_nHeightOfButtonLSXB = 27;
  1678. // tool buttons 2010
  1679. m_rcPaddingOfButtonTS.SetRect( 3, 3, 3, 3 );
  1680. m_arrIndicesButtonTS[INT(__E07BI_NORMAL)] = -1;
  1681. m_arrIndicesButtonTS[INT(__E07BI_HOVER)] = 0;
  1682. m_arrIndicesButtonTS[INT(__E07BI_PRESSED)] = 1;
  1683. m_arrIndicesButtonTS[INT(__E07BI_HDD)] = 2;
  1684. m_arrIndicesButtonTS[INT(__E07BI_SEL_T)] = 3;
  1685. m_arrIndicesButtonTS[INT(__E07BI_INDETERMINATE)] = 4;
  1686. m_rcPaddingOfButtonSS.SetRect( 3, 3, 3, 3 );
  1687. m_arrIndicesButtonSS_Left[INT(__E07BI_NORMAL)] = -1;
  1688. m_arrIndicesButtonSS_Left[INT(__E07BI_HOVER)] = 0;
  1689. m_arrIndicesButtonSS_Left[INT(__E07BI_PRESSED)] = 1;
  1690. m_arrIndicesButtonSS_Left[INT(__E07BI_HDD)] = 2;
  1691. m_arrIndicesButtonSS_Left[INT(__E07BI_SEL_T)] = 3;
  1692. m_arrIndicesButtonSS_Left[INT(__E07BI_INDETERMINATE)] = 4;
  1693. m_arrIndicesButtonSS_Right[INT(__E07BI_NORMAL)] = -1;
  1694. m_arrIndicesButtonSS_Right[INT(__E07BI_HOVER)] = 0;
  1695. m_arrIndicesButtonSS_Right[INT(__E07BI_PRESSED)] = 1;
  1696. m_arrIndicesButtonSS_Right[INT(__E07BI_HDD)] = 2;
  1697. m_arrIndicesButtonSS_Right[INT(__E07BI_SEL_T)] = 3;
  1698. m_arrIndicesButtonSS_Right[INT(__E07BI_INDETERMINATE)] = 4;
  1699. m_rcPaddingOfButtonLSM.SetRect( 4, 4, 4, 4 );
  1700. m_arrIndicesButtonLSM[INT(__E07BI_NORMAL)] = -1;
  1701. m_arrIndicesButtonLSM[INT(__E07BI_HOVER)] = 0;
  1702. m_arrIndicesButtonLSM[INT(__E07BI_PRESSED)] = 1;
  1703. m_arrIndicesButtonLSM[INT(__E07BI_HDD)] = 2;
  1704. m_arrIndicesButtonLSM[INT(__E07BI_SEL_T)] = 3;
  1705. m_arrIndicesButtonLSM[INT(__E07BIX_INDETERMINATE)] = 4;
  1706. // m_rcPaddingOfButtonLSB.SetRect( 4, 4, 4, 4 );
  1707. // m_arrIndicesButtonLSB[INT(__E07BI_NORMAL)] = -1;
  1708. // m_arrIndicesButtonLSB[INT(__E07BI_HOVER)] = 0;
  1709. // m_arrIndicesButtonLSB[INT(__E07BI_PRESSED)] = 1;
  1710. // m_arrIndicesButtonLSB[INT(__E07BI_HDD)] = 2;
  1711. // m_arrIndicesButtonLSB[INT(__E07BI_SEL_T)] = 3;
  1712. // m_arrIndicesButtonLSB[INT(__E07BI_INDETERMINATE)] = 4;
  1713. m_rcPaddingOfButtonLSXM.SetRect( 4, 4, 4, 4 );
  1714. m_arrIndicesButtonLSXM[INT(__E07BIX_NORMAL)] = -1;
  1715. m_arrIndicesButtonLSXM[INT(__E07BIX_HOVER)] = 0;
  1716. m_arrIndicesButtonLSXM[INT(__E07BIX_HOVER2)] = 0;
  1717. m_arrIndicesButtonLSXM[INT(__E07BIX_PRESSED)] = 1;
  1718. m_arrIndicesButtonLSXM[INT(__E07BIX_PRESSED2)] = 1;
  1719. m_arrIndicesButtonLSXM[INT(__E07BIX_PRESSED3)] = 1;
  1720. m_arrIndicesButtonLSXM[INT(__E07BIX_INDETERMINATE)] = 5;
  1721. m_arrIndicesButtonLSXM[INT(__E07BIX_SELECTED)] = 3;
  1722. m_rcPaddingOfButtonLSXB.SetRect( 4, 4, 4, 4 );
  1723. m_arrIndicesButtonLSXB[INT(__E07BIX_NORMAL)] = -1;
  1724. m_arrIndicesButtonLSXB[INT(__E07BIX_HOVER)] = 0;
  1725. m_arrIndicesButtonLSXB[INT(__E07BIX_HOVER2)] = 0;
  1726. m_arrIndicesButtonLSXB[INT(__E07BIX_PRESSED)] = 1;
  1727. m_arrIndicesButtonLSXB[INT(__E07BIX_PRESSED2)] = 1;
  1728. m_arrIndicesButtonLSXB[INT(__E07BIX_PRESSED3)] = 1;
  1729. m_arrIndicesButtonLSXB[INT(__E07BIX_INDETERMINATE)] = 5;
  1730. m_arrIndicesButtonLSXB[INT(__E07BIX_SELECTED)] = 3;
  1731. VERIFY(
  1732. m_bmpArrButtonTS[INT(__EBTSA_SOLID)].LoadBMP_Resource(
  1733. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_TB_SOLID_R1)
  1734. )
  1735. );
  1736. m_bmpArrButtonTS[INT(__EBTSA_SOLID)].PreMultipliedRGBChannelsSet( true );
  1737. VERIFY(
  1738. m_bmpArrButtonTS[INT(__EBTSA_LEFT)].LoadBMP_Resource(
  1739. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_TB_SOLID_R1)
  1740. )
  1741. );
  1742. m_bmpArrButtonTS[INT(__EBTSA_LEFT)].PreMultipliedRGBChannelsSet( true );
  1743. VERIFY(
  1744. m_bmpArrButtonTS[INT(__EBTSA_MIDDLE)].LoadBMP_Resource(
  1745. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_TB_SOLID_R1)
  1746. )
  1747. );
  1748. m_bmpArrButtonTS[INT(__EBTSA_MIDDLE)].PreMultipliedRGBChannelsSet( true );
  1749. VERIFY(
  1750. m_bmpArrButtonTS[INT(__EBTSA_RIGHT)].LoadBMP_Resource(
  1751. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_TB_SOLID_R1)
  1752. )
  1753. );
  1754. m_bmpArrButtonTS[INT(__EBTSA_RIGHT)].PreMultipliedRGBChannelsSet( true );
  1755. VERIFY(
  1756. m_bmpArrButtonSS_DD[INT(__EBSSA_LEFT)].LoadBMP_Resource(
  1757. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_BTN_PART_SMALL_LEFT_R1)
  1758. )
  1759. );
  1760. m_bmpArrButtonSS_DD[INT(__EBSSA_LEFT)].PreMultipliedRGBChannelsSet( true );
  1761. VERIFY(
  1762. m_bmpArrButtonSS_DD[INT(__EBSSA_RIGHT)].LoadBMP_Resource(
  1763. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_BTN_PART_SMALL_RIGHT_R1)
  1764. )
  1765. );
  1766. m_bmpArrButtonSS_DD[INT(__EBSSA_RIGHT)].PreMultipliedRGBChannelsSet( true );
  1767. m_bmpArrButtonSS_simple = m_bmpArrButtonSS_DD[ INT(__EBSSA_LEFT) ];
  1768. if( ! m_bmpArrButtonSS_simple.IsEmpty() )
  1769. {
  1770. CSize _sizeBmp = m_bmpArrButtonSS_simple.GetSize();
  1771. INT nY = 0, nXRange = _sizeBmp.cx / 2;
  1772. for( ; nY < _sizeBmp.cy; nY ++ )
  1773. {
  1774. INT nXSrc = nXRange - 1, nXDst = _sizeBmp.cx - nXRange;
  1775. for( ; nXDst < _sizeBmp.cx; nXDst ++, nXSrc -- )
  1776. {
  1777. RGBQUAD _pixel;
  1778. VERIFY( m_bmpArrButtonSS_simple.GetPixel( nXSrc, nY, _pixel ) );
  1779. VERIFY( m_bmpArrButtonSS_simple.SetPixel( nXDst, nY, _pixel ) );
  1780. } // for( ; nXDst < _sizeBmp.cx; nXDst ++, nXSrc -- )
  1781. } // for( ; nY < _sizeBmp.cy; nY ++ )
  1782. } // if( m_bmpArrButtonSS_simple.IsEmpty() )
  1783. VERIFY(
  1784. m_bmpArrButtonLSM.LoadBMP_Resource(
  1785. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_BTN_PART_LARGE_ALL_R1)
  1786. )
  1787. );
  1788. m_bmpArrButtonLSM.PreMultipliedRGBChannelsSet( true );
  1789. // VERIFY(
  1790. // m_bmpArrButtonLSB.LoadBMP_Resource(
  1791. // MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_BTN_PART_LARGE_BOTTOM_R2_SILVER)
  1792. // )
  1793. // );
  1794. // m_bmpArrButtonLSB.PreMultipliedRGBChannelsSet( true );
  1795. VERIFY(
  1796. m_bmpArrButtonLSXM.LoadBMP_Resource(
  1797. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_BTN_PART_LARGE_TOP_R1)
  1798. )
  1799. );
  1800. m_bmpArrButtonLSXM.PreMultipliedRGBChannelsSet( true );
  1801. VERIFY(
  1802. m_bmpArrButtonLSXB.LoadBMP_Resource(
  1803. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_BTN_PART_LARGE_BOTTOM_R1)
  1804. )
  1805. );
  1806. m_bmpArrButtonLSXB.PreMultipliedRGBChannelsSet( true );
  1807. VERIFY(
  1808. m_bmpToolBtnSeparator[INT(__ETBS_HOVER)].LoadBMP_Resource(
  1809. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_TB_SEPARATOR_HOVER_R2_SILVER)
  1810. )
  1811. );
  1812. m_bmpToolBtnSeparator[INT(__ETBS_HOVER)].PreMultipliedRGBChannelsSet( true );
  1813. VERIFY(
  1814. m_bmpToolBtnSeparator[INT(__ETBS_PRESSED)].LoadBMP_Resource(
  1815. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_TB_SEPARATOR_PRESSED_R2_SILVER)
  1816. )
  1817. );
  1818. m_bmpToolBtnSeparator[INT(__ETBS_PRESSED)].PreMultipliedRGBChannelsSet( true );
  1819. VERIFY(
  1820. m_bmpLargeBtnSeparator[INT(__ELBS_HOVER)].LoadBMP_Resource(
  1821. MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_BTN_PART_LARGE_SEPARATOR_HOVER_R1)
  1822. )
  1823. );
  1824. m_bmpLargeBtnSeparator[INT(__ELBS_HOVER)].Make32();
  1825. m_bmpLargeBtnSeparator[INT(__ELBS_HOVER)].AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  1826. VERIFY(
  1827. m_bmpLargeBtnSeparator[INT(__ELBS_PRESSED)].LoadBMP_Resource(
  1828. MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_BTN_PART_LARGE_SEPARATOR_PRESSED_R1)
  1829. )
  1830. );
  1831. m_bmpLargeBtnSeparator[INT(__ELBS_PRESSED)].Make32();
  1832. m_bmpLargeBtnSeparator[INT(__ELBS_PRESSED)].AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  1833. VERIFY( m_bmpRibbonMenuResizingMarginHV.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_MRB_HV_OBSIDIAN) ) );
  1834. VERIFY( m_bmpRibbonMenuResizingMarginV.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_MRB_V_OBSIDIAN) ) );
  1835. VERIFY( m_bmpRibbonMenuResizingGripperHV.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_MRG_HV_OBSIDIAN) ) );
  1836. m_bmpRibbonMenuResizingGripperHV.Make32();
  1837. m_bmpRibbonMenuResizingGripperHV.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  1838. VERIFY( m_bmpRibbonMenuResizingGripperV.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_MRG_V_OBSIDIAN) ) );
  1839. m_bmpRibbonMenuResizingGripperV.Make32();
  1840. m_bmpRibbonMenuResizingGripperV.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  1841. m_clrRibbonModeMenuTextNormal = RGB(57,60,63);
  1842. VERIFY(
  1843. m_bmpRibbonModeMenuBorder.LoadBMP_Resource(
  1844. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_MENU_BORDER_R2_SILVER)
  1845. )
  1846. );
  1847. m_bmpRibbonModeMenuBorder.Make32();
  1848. m_bmpRibbonModeMenuBorder.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  1849. m_clrMenuCaptionText = RGB(57,60,63);
  1850. m_rcMenuCaptionBmpPadding.SetRect( 0, 2, 0, 2 );
  1851. VERIFY(
  1852. m_bmpMenuCaptionBk.LoadBMP_Resource(
  1853. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_MENU_CAPTION_BK_R2_SILVER)
  1854. )
  1855. );
  1856. m_rcPaddingRibbonFileMenuBigBorder.SetRect( 6, 6, 6, 29 );
  1857. VERIFY( m_bmpRibbonFileMenuBigBorder.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RM_BIG_BORDER_R2_SILVER) ) );
  1858. m_bmpRibbonFileMenuBigBorder.Make32();
  1859. m_bmpRibbonFileMenuBigBorder.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  1860. m_rcPaddingRibbonFileMenuOptionsButton.SetRect( 2, 2, 2, 2 );
  1861. // VERIFY(
  1862. // m_bmpRibbonFileMenuOptionsButtonCold.LoadBMP_Resource(
  1863. // MAKEINTRESOURCE(IDB_EXT_2007_RM_OPTION_COLD_R2_SILVER)
  1864. // )
  1865. // );
  1866. // m_bmpRibbonFileMenuOptionsButtonCold.Make32();
  1867. // m_bmpRibbonFileMenuOptionsButtonCold.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  1868. VERIFY(
  1869. m_bmpRibbonFileMenuOptionsButtonHot.LoadBMP_Resource(
  1870. MAKEINTRESOURCE(IDB_EXT_2007_RM_OPTION_HOT_R1)
  1871. )
  1872. );
  1873. m_bmpRibbonFileMenuOptionsButtonHot.Make32();
  1874. m_bmpRibbonFileMenuOptionsButtonHot.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  1875. VERIFY( m_bmpResizingGripper.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RESIZING_GRIPPER_R2_SILVER) ) );
  1876. m_bmpResizingGripper.Make32();
  1877. m_bmpResizingGripper.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  1878. // spin bitmaps
  1879. VERIFY( m_arrBmpSpinArrowDown. LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_SPIN_ARROW_DOWN_R1) ) );
  1880. VERIFY( m_arrBmpSpinArrowUp. LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_SPIN_ARROW_UP_R1) ) );
  1881. VERIFY( m_arrBmpSpinDown. LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_SPIN_DOWN_R1) ) );
  1882. VERIFY( m_arrBmpSpinUp. LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_SPIN_UP_R1) ) );
  1883. }
  1884. CExtPaintManagerOffice2010_R2_Silver::~CExtPaintManagerOffice2010_R2_Silver()
  1885. {
  1886. }
  1887. CExtPaintManagerOffice2010_R2_Black::CExtPaintManagerOffice2010_R2_Black()
  1888. {
  1889. m_bThemedMenuItemsEverywhere = true;
  1890. m_clrFillHint = RGB(188,188,188);
  1891. m_clrAccentHint = RGB(255,227,140); // RGB(156,193,234);
  1892. m_clrIconAlphaColor = RGB(114,121,138);
  1893. m_clrAdvTipGradientBottom = RGB(229,229,240);
  1894. VERIFY( m_arrMdiRightIcons[0].m_bmpNormal.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_MDI_ICON_SC_MINIMIZE) ) );
  1895. VERIFY( m_arrMdiRightIcons[1].m_bmpNormal.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_MDI_ICON_SC_RESTORE) ) );
  1896. VERIFY( m_arrMdiRightIcons[2].m_bmpNormal.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_MDI_ICON_SC_CLOSE) ) );
  1897. //  m_clrDCA1 = RGB(115,115,115);
  1898. //  m_clrDCA2 = RGB(115,115,115);
  1899. //  m_clrDCA3 = RGB(115,115,115);
  1900. //  m_bDocumentClientAreaBkgndR2 = true;
  1901. VERIFY( m_bmpDCA.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_DCA_R2_BLACK) ) );
  1902. //  m_bmpDCA.PreMultiplyRGBChannels();
  1903. //  m_bmpDCA.PreMultipliedRGBChannelsSet( true );
  1904. //  m_clrDCA_Solid = RGB(115,115,115);
  1905. m_bUseNcFrameBmpForDockerBkgnd = true;
  1906. m_clrCustomDropDownGlyphEnabled = RGB(0,0,0);
  1907. m_clrCustomDropDownGlyphDisabled = RGB(141,141,141);
  1908. m_clrDockingFrameDark = m_clrFloatingToolbarGripperSolid = RGB(83,96,125);
  1909. m_clrDockingFrameCaptionTextActive = RGB(51,51,51);
  1910. m_clrDockingFrameCaptionTextInactive = RGB(51,51,51);
  1911. m_clrDockingFrameCaptionTextFloatingFixed =  RGB(255,255,255);
  1912. m_clrDockingCaptionShapeFixedNormal =  RGB(255,255,255);
  1913. m_rcNcFrameBordersActive.SetRect( 3, 4, 3, 2 );
  1914. m_rcNcFrameBordersInactive.SetRect( 3, 4, 3, 2 );
  1915. m_nCaptionHeightActive = m_nCaptionHeightInactive = 26;
  1916. VERIFY( m_bmpNcFrameActive.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_FRAME_ACTIVE_R2_BLACK) ) );
  1917. VERIFY( m_bmpNcFrameInactive.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_FRAME_INACTIVE_R2_BLACK) ) );
  1918. VERIFY( m_bmpNcFrameActive.Make32() );
  1919. VERIFY( m_bmpNcFrameInactive.Make32() );
  1920. m_bmpNcFrameActive.AlphaColor( m_clrTransparentNcFrameActive, RGB(0,0,0), 0 );
  1921. m_bmpNcFrameInactive.AlphaColor( m_clrTransparentNcFrameInactive, RGB(0,0,0), 0 );
  1922. m_clrNcFrameTextActive =  RGB(220,220,220); // = RGB(123,123,123);
  1923. m_clrNcFrameTextInactive = RGB(200,200,200); // = RGB(183,183,183);
  1924. m_bmpNcFrameActive.PreMultiplyRGBChannels();
  1925. m_bmpNcFrameActive.PreMultipliedRGBChannelsSet( true );
  1926. m_bmpNcFrameInactive.PreMultiplyRGBChannels();
  1927. m_bmpNcFrameInactive.PreMultipliedRGBChannelsSet( true );
  1928. m_sizeNcButtonShapeInArr.cx = m_sizeNcButtonShapeInArr.cy = 21;
  1929. m_nNcBtnIdxNormalActive = m_nNcBtnIdxNormalInactive = 0;
  1930. m_rcNcButtonBkPadding.SetRect( 4, 4, 4, 4 );
  1931. VERIFY( m_bmpNcButtonBkHover.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_BUTTON_BK_HOVER_R2_BLACK) ) );
  1932. VERIFY( m_bmpNcButtonBkPressed.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_BUTTON_BK_PRESSED_R2_BLACK) ) );
  1933. VERIFY( m_bmpNcButtonBkHover.Make32() );
  1934. VERIFY( m_bmpNcButtonBkPressed.Make32() );
  1935. m_bmpNcButtonBkHover.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  1936. m_bmpNcButtonBkPressed.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  1937. m_bmpNcButtonBkHover.PreMultiplyRGBChannels();
  1938. m_bmpNcButtonBkHover.PreMultipliedRGBChannelsSet( true );
  1939. m_bmpNcButtonBkPressed.PreMultiplyRGBChannels();
  1940. m_bmpNcButtonBkPressed.PreMultipliedRGBChannelsSet( true );
  1941. VERIFY( m_bmpNcButtonBkHoverX.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_BUTTON_BK_HOVER_X_R2_BLACK) ) );
  1942. VERIFY( m_bmpNcButtonBkPressedX.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_BUTTON_BK_PRESSED_X_R2_BLACK) ) );
  1943. VERIFY( m_bmpNcButtonBkHoverX.Make32() );
  1944. VERIFY( m_bmpNcButtonBkPressedX.Make32() );
  1945. m_bmpNcButtonBkHoverX.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  1946. m_bmpNcButtonBkPressedX.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  1947. m_bmpNcButtonBkHoverX.PreMultiplyRGBChannels();
  1948. m_bmpNcButtonBkHoverX.PreMultipliedRGBChannelsSet( true );
  1949. m_bmpNcButtonBkPressedX.PreMultiplyRGBChannels();
  1950. m_bmpNcButtonBkPressedX.PreMultipliedRGBChannelsSet( true );
  1951. m_sizeNcButtonShapeInArr.cx = 13;
  1952. m_sizeNcButtonShapeInArr.cy = 12;
  1953. m_nNcBtnIdxNormalActive = 0;
  1954. m_nNcBtnIdxHover = 1;
  1955. m_nNcBtnIdxPressed = 2;
  1956. m_nNcBtnIdxNormalInactive = 3;
  1957. m_nNcBtnIdxDisabled = 4;
  1958. VERIFY( m_bmpArrNcButtonsClose.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_ARR_CLOSE_R2_BLACK) ) );
  1959. // m_bmpArrNcButtonsClose.PreMultiplyRGBChannels();
  1960. m_bmpArrNcButtonsClose.PreMultipliedRGBChannelsSet( true );
  1961. VERIFY( m_bmpArrNcButtonsMaximize.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_ARR_MAXIMIZE_R2_BLACK) ) );
  1962. // m_bmpArrNcButtonsMaximize.PreMultiplyRGBChannels();
  1963. m_bmpArrNcButtonsMaximize.PreMultipliedRGBChannelsSet( true );
  1964. VERIFY( m_bmpArrNcButtonsRestore.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_ARR_RESTORE_R2_BLACK) ) );
  1965. // m_bmpArrNcButtonsRestore.PreMultiplyRGBChannels();
  1966. m_bmpArrNcButtonsRestore.PreMultipliedRGBChannelsSet( true );
  1967. VERIFY( m_bmpArrNcButtonsMinimize.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_ARR_MINIMIZE_R2_BLACK) ) );
  1968. // m_bmpArrNcButtonsMinimize.PreMultiplyRGBChannels();
  1969. m_bmpArrNcButtonsMinimize.PreMultipliedRGBChannelsSet( true );
  1970. VERIFY( m_bmpArrNcButtonsHelp.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_NC_ARR_HELP_R1) ) );
  1971. m_bmpArrNcButtonsHelp.PreMultiplyRGBChannels();
  1972. #if (!defined __EXT_MFC_NO_STATUSBAR)
  1973. m_clrStatusPaneTextColorNormal   = RGB(226,226,226);
  1974. m_clrStatusPaneTextColorDisabled = RGB(170,170,170);
  1975. m_rcStatusBkPadding.SetRect( 0, 2, 0, 1 );
  1976. VERIFY( m_bmpStatusBkLight.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_STATUSBAR_BK_LIGHT_R2_BLACK) ) );
  1977. VERIFY( m_bmpStatusBkDark.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_STATUSBAR_BK_DARK_R2_BLACK) ) );
  1978. m_rcStatusSeparatorPadding.SetRect( 0, 2, 0, 1 );
  1979. VERIFY( m_bmpStatusSeparator.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_STATUSBAR_SEPARATOR_R2_BLACK) ) );
  1980. #endif // (!defined __EXT_MFC_NO_STATUSBAR)
  1981. #if (!defined __EXT_MFC_NO_TAB_CTRL)
  1982. m_clrTabTextNormal   = RGB(226,226,226);
  1983. m_clrTabTextSelected = RGB(52,52,64);
  1984. m_clrTabTextNormalDWM = RGB( 226, 226, 226 );
  1985. m_clrTabTextSelectedDWM = RGB( 0, 0, 0 );
  1986. m_nIdxTabShapeHover = 0;
  1987. m_nIdxTabShapePressed = 1;
  1988. m_nIdxTabShapeSelected = 1;
  1989. m_nIdxTabShapeSelectedHover = 1;
  1990. m_arrSizeTabShape[__ETSOI_TOP].cx
  1991. = m_arrSizeTabShape[__ETSOI_BOTTOM].cx
  1992. = m_arrSizeTabShape[__ETSOI_LEFT].cy
  1993. = m_arrSizeTabShape[__ETSOI_RIGHT].cy
  1994. = 13;
  1995. m_arrSizeTabShape[__ETSOI_TOP].cy
  1996. = m_arrSizeTabShape[__ETSOI_BOTTOM].cy
  1997. = m_arrSizeTabShape[__ETSOI_LEFT].cx
  1998. = m_arrSizeTabShape[__ETSOI_RIGHT].cx
  1999. = 23;
  2000. m_arrRectTabShapePadding[__ETSOI_TOP].SetRect( 4, 3, 4, 3 );
  2001. m_arrRectTabShapePadding[__ETSOI_BOTTOM].SetRect( 4, 3, 4, 3 );
  2002. m_arrRectTabShapePadding[__ETSOI_LEFT].SetRect( 3, 4, 3, 4 );
  2003. m_arrRectTabShapePadding[__ETSOI_RIGHT].SetRect( 3, 4, 3, 4 );
  2004. VERIFY(
  2005. m_arrBmpTabShapeNormal[__ETSOI_TOP].LoadBMP_Resource(
  2006. MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_TAB_SHAPE_ARR_R2_BLACK )
  2007. )
  2008. );
  2009. m_arrBmpTabShapeNormal[__ETSOI_TOP].PreMultipliedRGBChannelsSet( true );
  2010. VERIFY(
  2011. m_arrBmpTabShapeNormal[__ETSOI_BOTTOM].CreateRotated9xStack(
  2012. m_arrBmpTabShapeNormal[__ETSOI_TOP],
  2013. 180,
  2014. 4,
  2015. m_arrSizeTabShape[__ETSOI_TOP].cx,
  2016. m_arrSizeTabShape[__ETSOI_TOP].cy,
  2017. false,
  2018. false
  2019. )
  2020. );
  2021. VERIFY(
  2022. m_arrBmpTabShapeNormal[__ETSOI_LEFT].CreateRotated9xStack(
  2023. m_arrBmpTabShapeNormal[__ETSOI_TOP],
  2024. 270,
  2025. 4,
  2026. m_arrSizeTabShape[__ETSOI_TOP].cx,
  2027. m_arrSizeTabShape[__ETSOI_TOP].cy,
  2028. false,
  2029. false
  2030. )
  2031. );
  2032. VERIFY(
  2033. m_arrBmpTabShapeNormal[__ETSOI_RIGHT].CreateRotated9xStack(
  2034. m_arrBmpTabShapeNormal[__ETSOI_TOP],
  2035. 90,
  2036. 4,
  2037. m_arrSizeTabShape[__ETSOI_TOP].cx,
  2038. m_arrSizeTabShape[__ETSOI_TOP].cy,
  2039. false,
  2040. false
  2041. )
  2042. );
  2043. VERIFY(
  2044. m_arrBmpTabShapeSelArea[__ETSOI_TOP].LoadBMP_Resource(
  2045. MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_TAB_SHAPE_ARR_SEL_AREA_R2_BLACK )
  2046. )
  2047. );
  2048. m_arrBmpTabShapeSelArea[__ETSOI_TOP].PreMultipliedRGBChannelsSet( true );
  2049. VERIFY(
  2050. m_arrBmpTabShapeSelArea[__ETSOI_BOTTOM].CreateRotated9xStack(
  2051. m_arrBmpTabShapeSelArea[__ETSOI_TOP],
  2052. 180,
  2053. 4,
  2054. m_arrSizeTabShape[__ETSOI_TOP].cx,
  2055. m_arrSizeTabShape[__ETSOI_TOP].cy,
  2056. false,
  2057. false
  2058. )
  2059. );
  2060. VERIFY(
  2061. m_arrBmpTabShapeSelArea[__ETSOI_LEFT].CreateRotated9xStack(
  2062. m_arrBmpTabShapeSelArea[__ETSOI_TOP],
  2063. 270,
  2064. 4,
  2065. m_arrSizeTabShape[__ETSOI_TOP].cx,
  2066. m_arrSizeTabShape[__ETSOI_TOP].cy,
  2067. false,
  2068. false
  2069. )
  2070. );
  2071. VERIFY(
  2072. m_arrBmpTabShapeSelArea[__ETSOI_RIGHT].CreateRotated9xStack(
  2073. m_arrBmpTabShapeSelArea[__ETSOI_TOP],
  2074. 90,
  2075. 4,
  2076. m_arrSizeTabShape[__ETSOI_TOP].cx,
  2077. m_arrSizeTabShape[__ETSOI_TOP].cy,
  2078. false,
  2079. false
  2080. )
  2081. );
  2082. m_arrRectTabAreaPadding[__ETSOI_TOP].SetRect( 3, 3, 3, 3 );
  2083. m_arrRectTabAreaPadding[__ETSOI_BOTTOM].SetRect( 3, 3, 3, 3 );
  2084. m_arrRectTabAreaPadding[__ETSOI_LEFT].SetRect( 3, 3, 3, 3 );
  2085. m_arrRectTabAreaPadding[__ETSOI_RIGHT].SetRect( 3, 3, 3, 3 );
  2086. m_arrTabAreaMargins[__ETSOI_TOP] = 1;
  2087. m_arrTabAreaMargins[__ETSOI_BOTTOM] = 1;
  2088. m_arrTabAreaMargins[__ETSOI_LEFT] = 1;
  2089. m_arrTabAreaMargins[__ETSOI_RIGHT] = 1;
  2090. m_arrSizeTabSeparator[__ETSOI_TOP].cx
  2091. = m_arrSizeTabSeparator[__ETSOI_BOTTOM].cx
  2092. = m_arrSizeTabSeparator[__ETSOI_LEFT].cy
  2093. = m_arrSizeTabSeparator[__ETSOI_RIGHT].cy
  2094. = 2;
  2095. m_arrSizeTabSeparator[__ETSOI_TOP].cy
  2096. = m_arrSizeTabSeparator[__ETSOI_BOTTOM].cy
  2097. = m_arrSizeTabSeparator[__ETSOI_LEFT].cx
  2098. = m_arrSizeTabSeparator[__ETSOI_RIGHT].cx
  2099. = 23;
  2100. m_arrRectTabSeparatorPadding[__ETSOI_TOP].SetRect( 0, 2, 0, 2 );
  2101. m_arrRectTabSeparatorPadding[__ETSOI_BOTTOM].SetRect( 0, 2, 0, 2 );
  2102. m_arrRectTabSeparatorPadding[__ETSOI_LEFT].SetRect( 2, 0, 2, 0 );
  2103. m_arrRectTabSeparatorPadding[__ETSOI_RIGHT].SetRect( 2, 0, 2, 0 );
  2104. VERIFY(
  2105. m_arrBmpTabSeparator[__ETSOI_TOP].LoadBMP_Resource(
  2106. MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_TAB_SEPARATOR_R2_BLACK )
  2107. )
  2108. );
  2109. VERIFY( m_arrBmpTabSeparator[__ETSOI_TOP].Make32() );
  2110. //  m_arrBmpTabSeparator[__ETSOI_TOP].PreMultiplyRGBChannels();
  2111. //  m_arrBmpTabSeparator[__ETSOI_TOP].PreMultipliedRGBChannelsSet( true );
  2112. VERIFY(
  2113. m_arrBmpTabSeparator[__ETSOI_BOTTOM].CreateRotated9xStack(
  2114. m_arrBmpTabSeparator[__ETSOI_TOP],
  2115. 180,
  2116. 1,
  2117. m_arrSizeTabSeparator[__ETSOI_TOP].cx,
  2118. m_arrSizeTabSeparator[__ETSOI_TOP].cy,
  2119. false,
  2120. false
  2121. )
  2122. );
  2123. VERIFY(
  2124. m_arrBmpTabSeparator[__ETSOI_LEFT].CreateRotated9xStack(
  2125. m_arrBmpTabSeparator[__ETSOI_TOP],
  2126. 270,
  2127. 1,
  2128. m_arrSizeTabSeparator[__ETSOI_TOP].cx,
  2129. m_arrSizeTabSeparator[__ETSOI_TOP].cy,
  2130. false,
  2131. false
  2132. )
  2133. );
  2134. VERIFY(
  2135. m_arrBmpTabSeparator[__ETSOI_RIGHT].CreateRotated9xStack(
  2136. m_arrBmpTabSeparator[__ETSOI_TOP],
  2137. 90,
  2138. 1,
  2139. m_arrSizeTabSeparator[__ETSOI_TOP].cx,
  2140. m_arrSizeTabSeparator[__ETSOI_TOP].cy,
  2141. false,
  2142. false
  2143. )
  2144. );
  2145. #endif // (!defined __EXT_MFC_NO_TAB_CTRL)
  2146. VERIFY(
  2147. m_bmpArrStatesCheckBox.LoadBMP_Resource(
  2148. MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_CHECK_BOX_R1 )
  2149. )
  2150. );
  2151. VERIFY(
  2152. m_bmpArrStatesRadioButton.LoadBMP_Resource(
  2153. MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_RADIO_BUTTON_R1 )
  2154. )
  2155. );
  2156. m_clrMenuItemLeftAreaMarginL = RGB(226, 228, 231);
  2157. m_clrMenuItemLeftAreaMarginR = RGB(245, 245, 245);
  2158. m_rcMenuItemPaddingLargeLeft.SetRect(  3, 3, 3, 16 );
  2159. m_rcMenuItemPaddingLargeRight.SetRect( 1, 3, 3, 16 );
  2160. m_rcMenuItemPaddingSmallLeft.SetRect(  3, 3, 3, 10 );
  2161. m_rcMenuItemPaddingSmallRight.SetRect( 1, 3, 3, 10 );
  2162. VERIFY(
  2163. m_bmpMenuItemLargeLeft.LoadBMP_Resource(
  2164. MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_MENU_ITEM_R1_LARGE_LEFT )
  2165. )
  2166. );
  2167. VERIFY(
  2168. m_bmpMenuItemLargeRight.LoadBMP_Resource(
  2169. MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_MENU_ITEM_R1_LARGE_RIGHT )
  2170. )
  2171. );
  2172. VERIFY(
  2173. m_bmpMenuItemSmallLeft.LoadBMP_Resource(
  2174. MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_MENU_ITEM_R1_SMALL_LEFT )
  2175. )
  2176. );
  2177. VERIFY(
  2178. m_bmpMenuItemSmallRight.LoadBMP_Resource(
  2179. MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_MENU_ITEM_R1_SMALL_RIGHT )
  2180. )
  2181. );
  2182. VERIFY(
  2183. m_bmpMenuArrow.LoadBMP_Resource(
  2184. MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_MENU_ITEM_ARROW )
  2185. )
  2186. );
  2187. m_sizeMenuCheckAreaChecked.cx = 16;
  2188. m_sizeMenuCheckAreaChecked.cy = 16;
  2189. m_sizeMenuCheckAreaUnchecked.cx = 20;
  2190. m_sizeMenuCheckAreaUnchecked.cy = 20;
  2191. m_arrRectMenuCheckAreaCheckedPadding[0].SetRect( 1, 1, 1, 1 );
  2192. m_arrRectMenuCheckAreaCheckedPadding[1].SetRect( 1, 1, 1, 1 );
  2193. m_arrRectMenuCheckAreaUncheckedPadding[0].SetRect( 1, 1, 1, 1 );
  2194. m_arrRectMenuCheckAreaUncheckedPadding[1].SetRect( 1, 1, 1, 1 );
  2195. VERIFY( m_bmpMenuCheckAreaChecked.LoadBMP_Resource(   MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_MENU_CHECK_AREA_CHECKED_R1   ) ) );
  2196. VERIFY( m_bmpMenuCheckAreaUnchecked.LoadBMP_Resource( MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_MENU_CHECK_AREA_UNCHECKED_R1 ) ) );
  2197. #if (!defined __EXT_MFC_NO_PAGE_NAVIGATOR )
  2198. m_arrClrPnCaptNormal[0]  = RGB(235,238,250);
  2199. m_arrClrPnCaptNormal[1]  = RGB(215,219,229);
  2200. m_arrClrPnCaptNormal[2]  = RGB(197,199,209);
  2201. m_arrClrPnCaptNormal[3]  = RGB(212,216,226);
  2202. m_arrClrPnSplitter[0]    = RGB( 102, 102, 102 );
  2203. m_arrClrPnSplitter[1]    = RGB( 79, 79, 79 );
  2204. m_clrPnCaptText  = RGB( 30, 57, 91 );
  2205. m_arrClrPnItemText[0]    = RGB(0,0,0);
  2206. m_arrClrPnItemText[1]    = RGB(76,83,92);
  2207. m_clrPnConfigButton  = RGB(101,104,112); 
  2208. static const UINT g_arrResIdPnItemExpanded[ePn_Count] =
  2209. {
  2210. IDB_EXT_2010_OFFICE_PN_ITEM_EXPANDED_NORMAL_R1,
  2211. IDB_EXT_2010_OFFICE_PN_ITEM_EXPANDED_HOVER_R1,
  2212. IDB_EXT_2010_OFFICE_PN_ITEM_EXPANDED_PRESSED_R1,
  2213. IDB_EXT_2010_OFFICE_PN_ITEM_EXPANDED_SELECTED_R1,
  2214. IDB_EXT_2010_OFFICE_PN_ITEM_EXPANDED_SELECTED_HOVER_R1,
  2215. };
  2216. static const UINT g_arrResIdPnItemCollapsed[ePn_Count] =
  2217. {
  2218. IDB_EXT_2010_OFFICE_PN_ITEM_COLLAPSED_NORMAL_R1,
  2219. IDB_EXT_2010_OFFICE_PN_ITEM_COLLAPSED_HOVER_R1,
  2220. IDB_EXT_2010_OFFICE_PN_ITEM_COLLAPSED_PRESSED_R1,
  2221. IDB_EXT_2010_OFFICE_PN_ITEM_COLLAPSED_SELECTED_R1,
  2222. IDB_EXT_2010_OFFICE_PN_ITEM_COLLAPSED_SELECTED_HOVER_R1,
  2223. };
  2224. INT nPnIndex;
  2225. for( nPnIndex = 0; nPnIndex < INT(ePn_Count); nPnIndex ++ )
  2226. {
  2227. VERIFY( m_arrBmpPnItemExpanded[nPnIndex].LoadBMP_Resource( MAKEINTRESOURCE(g_arrResIdPnItemExpanded[nPnIndex]) ) );
  2228. VERIFY( m_arrBmpPnItemCollapsed[nPnIndex].LoadBMP_Resource( MAKEINTRESOURCE(g_arrResIdPnItemCollapsed[nPnIndex]) ) );
  2229. m_arrRcPnItemPaddingExpanded[nPnIndex].SetRect( 0, 2, 0, 2 );
  2230. m_arrRcPnItemPaddingCollapsed[nPnIndex].SetRect( 0, 0, 0, 0 );
  2231. m_arrClrPnItemTextBmpVer[nPnIndex] = RGB(0,0,0);
  2232. }
  2233. #endif // (!defined __EXT_MFC_NO_PAGE_NAVIGATOR )
  2234. VERIFY( m_bmpArrComboBoxDropDown.LoadBMP_Resource( MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_COMBO_BOX_BUTTON_R2_BLACK ) ) );
  2235. m_bmpArrComboBoxDropDown.PreMultipliedRGBChannelsSet( true );
  2236. m_arrClrComboBoxBorder[0] = RGB(212,214,217);
  2237. m_arrClrComboBoxBorder[1] = RGB(164,164,164);
  2238. m_arrClrComboBoxBorder[2] = RGB(164,164,164);
  2239. m_arrClrComboBoxBorder[3] = RGB(228,231,235);
  2240. CRect SbSkinDataPaddingH( 5, 3, 5, 3 ), SbSkinDataPaddingV( 3, 5, 3, 5 );
  2241. CRect rcEntirePaddingRH( 2, 2, 2, 2 ), rcEntirePaddingRV( 2, 2, 2, 2 );
  2242. CRect rcEntirePaddingCH( 1, 1, 1, 1 ), rcEntirePaddingCV( 1, 1, 1, 1 );
  2243. m_SbSkinDataT_Zoom.Load2010_Zoom_R2(
  2244. IDB_EXT_2010_OFFICE_ZS_PLUS_R2_BLACK, IDB_EXT_2010_OFFICE_ZS_MINUS_R2_BLACK, IDB_EXT_2010_OFFICE_ZS_THUMB_R2_BLACK,
  2245. RGB(87,87,87), RGB(38,38,38), RGB(87,87,87), RGB(38,38,38), AFX_IDW_DOCKBAR_TOP
  2246. );
  2247. m_SbSkinDataB_Zoom.Load2010_Zoom_R2(
  2248. IDB_EXT_2010_OFFICE_ZS_PLUS_R2_BLACK, IDB_EXT_2010_OFFICE_ZS_MINUS_R2_BLACK, IDB_EXT_2010_OFFICE_ZS_THUMB_R2_BLACK,
  2249. RGB(87,87,87), RGB(38,38,38), RGB(87,87,87), RGB(38,38,38), AFX_IDW_DOCKBAR_BOTTOM
  2250. );
  2251. m_SbSkinDataL_Zoom.Load2010_Zoom_R2(
  2252. IDB_EXT_2010_OFFICE_ZS_PLUS_R2_BLACK, IDB_EXT_2010_OFFICE_ZS_MINUS_R2_BLACK, IDB_EXT_2010_OFFICE_ZS_THUMB_R2_BLACK,
  2253. RGB(87,87,87), RGB(38,38,38), RGB(87,87,87), RGB(38,38,38), AFX_IDW_DOCKBAR_LEFT
  2254. );
  2255. m_SbSkinDataR_Zoom.Load2010_Zoom_R2(
  2256. IDB_EXT_2010_OFFICE_ZS_PLUS_R2_BLACK, IDB_EXT_2010_OFFICE_ZS_MINUS_R2_BLACK, IDB_EXT_2010_OFFICE_ZS_THUMB_R2_BLACK,
  2257. RGB(87,87,87), RGB(38,38,38), RGB(87,87,87), RGB(38,38,38), AFX_IDW_DOCKBAR_RIGHT
  2258. );
  2259. m_SbSkinDataH_Light.Load2007_R1(
  2260. IDB_EXT_2010_OFFICE_SCROLL_BAR_STACK_BUTTONS_R2_BLACK_HORZ_LIGHT,
  2261. 16,
  2262. IDB_EXT_2010_OFFICE_SCROLL_BAR_GRIPPER_R2_LIGHT_HORZ,
  2263. SbSkinDataPaddingH,
  2264. COLORREF(-1L),
  2265. COLORREF(-1L),
  2266. IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_UP_NORMAL_R2_LIGHT,
  2267. IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_UP_DISABLED_R2_LIGHT,
  2268. IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_DOWN_NORMAL_R2_LIGHT,
  2269. IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_DOWN_DISABLED_R2_LIGHT,
  2270. true,
  2271. IDB_EXT_2010_OFFICE_SCROLL_BAR_ENTIRE_BK_R2_BLACK_LIGHT,
  2272. IDB_EXT_2010_OFFICE_SCROLL_BAR_PAGE_BK_R2_BLACK_LIGHT,
  2273. rcEntirePaddingRH,
  2274. rcEntirePaddingCH
  2275. );
  2276. m_SbSkinDataV_Light.Load2007_R1(
  2277. IDB_EXT_2010_OFFICE_SCROLL_BAR_STACK_BUTTONS_R2_BLACK_VERT_LIGHT,
  2278. 17,
  2279. IDB_EXT_2010_OFFICE_SCROLL_BAR_GRIPPER_R2_LIGHT_VERT,
  2280. SbSkinDataPaddingV,
  2281. COLORREF(-1L),
  2282. COLORREF(-1L),
  2283. IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_UP_NORMAL_R1,
  2284. IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_UP_DISABLED_R1,
  2285. IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_DOWN_NORMAL_R1,
  2286. IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_DOWN_DISABLED_R1,
  2287. false,
  2288. IDB_EXT_2010_OFFICE_SCROLL_BAR_ENTIRE_BK_R2_BLACK_LIGHT,
  2289. IDB_EXT_2010_OFFICE_SCROLL_BAR_PAGE_BK_R2_BLACK_LIGHT,
  2290. rcEntirePaddingRV,
  2291. rcEntirePaddingCV
  2292. );
  2293. m_SbSkinDataH_Dark.Load2007_R1(
  2294. IDB_EXT_2010_OFFICE_SCROLL_BAR_STACK_BUTTONS_R2_BLACK_HORZ_DARK,
  2295. 16,
  2296. IDB_EXT_2010_OFFICE_SCROLL_BAR_GRIPPER_R2_BLACK_HORZ,
  2297. SbSkinDataPaddingH,
  2298. COLORREF(-1L),
  2299. COLORREF(-1L),
  2300. IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_UP_NORMAL_R2_BLACK,
  2301. IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_UP_DISABLED_R2_BLACK,
  2302. IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_DOWN_NORMAL_R2_BLACK,
  2303. IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_DOWN_DISABLED_R2_BLACK,
  2304. true,
  2305. IDB_EXT_2010_OFFICE_SCROLL_BAR_ENTIRE_BK_R2_BLACK_DARK,
  2306. IDB_EXT_2010_OFFICE_SCROLL_BAR_PAGE_BK_R2_BLACK_DARK,
  2307. rcEntirePaddingRH,
  2308. rcEntirePaddingCH
  2309. );
  2310. m_SbSkinDataV_Dark.Load2007_R1(
  2311. IDB_EXT_2010_OFFICE_SCROLL_BAR_STACK_BUTTONS_R2_BLACK_VERT_DARK,
  2312. 17,
  2313. IDB_EXT_2010_OFFICE_SCROLL_BAR_GRIPPER_R2_BLACK_VERT,
  2314. SbSkinDataPaddingV,
  2315. COLORREF(-1L),
  2316. COLORREF(-1L),
  2317. IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_UP_NORMAL_R2_BLACK,
  2318. IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_UP_DISABLED_R2_BLACK,
  2319. IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_DOWN_NORMAL_R2_BLACK,
  2320. IDB_EXT_2010_OFFICE_SCROLL_BAR_ARROW_DOWN_DISABLED_R2_BLACK,
  2321. false,
  2322. IDB_EXT_2010_OFFICE_SCROLL_BAR_ENTIRE_BK_R2_BLACK_DARK,
  2323. IDB_EXT_2010_OFFICE_SCROLL_BAR_PAGE_BK_R2_BLACK_DARK,
  2324. rcEntirePaddingRV,
  2325. rcEntirePaddingCV
  2326. );
  2327. m_clrGridHeaderBkTop     = RGB(253,253,253);
  2328. m_clrGridHeaderBkBottom  = RGB(212,215,220);
  2329. m_clrGridHeaderSeparator = RGB(145,153,164);
  2330. m_clrGridHeaderSortArrow = RGB(145,153,164);
  2331. m_clrGridHeaderBorder    = RGB(145,153,164);
  2332. m_clrRgHeaderBkTop     = RGB(253,253,253);
  2333. m_clrRgHeaderBkBottom  = RGB(212,215,220);
  2334. m_clrRgHeaderSeparator = RGB(145,153,164);
  2335. m_clrRgHeaderSortArrow = RGB(145,153,164);
  2336. m_clrRgHeaderText      = RGB(0,0,0);
  2337. m_clrRgHeaderBorder    = RGB(76,83,92);
  2338. #if (!defined __EXT_MFC_NO_REPORTGRIDWND)
  2339. m_clrRgGroupAreaBk     = RGB(235,235,235);
  2340. m_clrRgGroupAreaText   = RGB(70,70,70);
  2341. #endif // (!defined __EXT_MFC_NO_REPORTGRIDWND)
  2342. m_nPushBtnSimpleGlyphHeightH = 43;
  2343. m_nPushBtnSimpleGlyphHeightV = 43;
  2344. m_nPushBtnSDDLeftGlyphHeightH = 43;
  2345. m_nPushBtnSDDLeftGlyphHeightV = 43;
  2346. m_nPushBtnSDDRightGlyphHeightH = 43;
  2347. m_nPushBtnSDDRightGlyphHeightV = 9;
  2348. m_rcPushBtnSimplePaddingH.SetRect( 3, 3, 3, 3 );
  2349. m_rcPushBtnSimplePaddingV.SetRect( 3, 3, 3, 3 );
  2350. m_rcPushBtnSDDLeftPaddingH.SetRect( 3, 3, 3, 3 );
  2351. m_rcPushBtnSDDLeftPaddingV.SetRect( 3, 3, 3, 3 );
  2352. m_rcPushBtnSDDRightPaddingH.SetRect( 3, 3, 3, 3 );
  2353. m_rcPushBtnSDDRightPaddingV.SetRect( 3, 3, 3, 3 );
  2354. VERIFY(
  2355. m_arrBmpPushBtnSimpleH.LoadBMP_Resource(
  2356. MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_BUTTON_R1_SIMPLE )
  2357. )
  2358. );
  2359. VERIFY(
  2360. m_arrBmpPushBtnSDDLeftH.LoadBMP_Resource(
  2361. MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_BUTTON_R1_LEFT_PART )
  2362. )
  2363. );
  2364. VERIFY(
  2365. m_arrBmpPushBtnSDDRightH.LoadBMP_Resource(
  2366. MAKEINTRESOURCE( IDB_EXT_2010_OFFICE_BUTTON_R1_RIGHT_PART )
  2367. )
  2368. );
  2369. VERIFY(
  2370. m_arrBmpPushBtnSimpleV.CreateRotated9xStack(
  2371. m_arrBmpPushBtnSimpleH,
  2372. 90,
  2373. INT(__EPBGT_GLYPH_COUNT),
  2374. m_arrBmpPushBtnSimpleH.GetSize().cx,
  2375. m_nPushBtnSimpleGlyphHeightH,
  2376. false,
  2377. false
  2378. )
  2379. );
  2380. VERIFY(
  2381. m_arrBmpPushBtnSDDLeftV.CreateRotated9xStack(
  2382. m_arrBmpPushBtnSDDLeftH,
  2383. 90,
  2384. INT(__EPBGT_GLYPH_COUNT),
  2385. m_arrBmpPushBtnSDDLeftH.GetSize().cx,
  2386. m_nPushBtnSDDLeftGlyphHeightH,
  2387. false,
  2388. false
  2389. )
  2390. );
  2391. VERIFY(
  2392. m_arrBmpPushBtnSDDRightV.CreateRotated9xStack(
  2393. m_arrBmpPushBtnSDDRightH,
  2394. 90,
  2395. INT(__EPBGT_GLYPH_COUNT),
  2396. m_arrBmpPushBtnSDDRightH.GetSize().cx,
  2397. m_nPushBtnSDDRightGlyphHeightH,
  2398. false,
  2399. false
  2400. )
  2401. );
  2402. m_arrBmpPushBtnSimpleV.PreMultipliedRGBChannelsSet( true );
  2403. m_arrBmpPushBtnSDDLeftV.PreMultipliedRGBChannelsSet( true );
  2404. m_arrBmpPushBtnSDDRightV.PreMultipliedRGBChannelsSet( true );
  2405. #if (!defined __EXT_MFC_NO_RIBBON_BAR)
  2406. if( g_PaintManager.m_bIsWinVistaOrLater )
  2407. {
  2408. VERIFY( m_bmpRibbonTabAreaBlur.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_TAB_AREA_DWM_BLUR_R2_BLACK) ) );
  2409. m_rcRibbonTabAreaBlurPadding.SetRect( 35, 0, 35, 36 );
  2410. }
  2411. m_clrRibbonTabClientAreaActive = RGB(117,117,117);
  2412. m_clrRibbonTabClientAreaInactive = RGB(158,158,158);
  2413. m_clrContractedMargin1 = RGB(128,128,128);
  2414. m_clrContractedMargin2 = RGB(128,128,128);
  2415. m_bRibbonGroupCaptionAtTop = false;
  2416. m_bRibbonGroupCaptionAreaHasPadding = true;
  2417. m_nRibbonGroupCaptionAreaHeightExpanded = 16;
  2418. m_nRibbonGroupCaptionAreaHeightCollapsed = 16;
  2419. m_nRibbonGroupIconBkVertOffset = 2;
  2420. m_nRibbonCaptionPartHeight = 17;
  2421. m_rcRibbonPageOuterContentPadding.SetRect( 0, 0, 0, 0 );
  2422. m_clrRibbonComboBackGroundNormal   = RGB(255,255,255);
  2423. m_clrRibbonComboBackGroundDisabled = RGB(255,255,255);
  2424. m_nRibbonTabIntersectionHeight = 1;
  2425. //m_nRibbonQuickAccessBarButtonsAlignment = 0;
  2426. m_clrRibbonGroupCaptionTextCollapsed
  2427. = m_clrRibbonButtonNormal
  2428. = RGB(57,60,63);
  2429. m_clrRibbonButtonDisabled = RGB(128,128,128);
  2430. m_clrRibbonGroupCaptionTextExpanded = RGB( 52, 52, 64 );
  2431. //m_clrRibbonGroupCaptionTextShadowExpanded = RGB( 0, 0, 0 );
  2432. //m_sizeRibbonGroupCaptionTextOffset = CSize( 1, 1 );
  2433. m_nRibbonGroupCaptionTextDF
  2434. = m_nRibbonGroupCaptionTextShadowDF
  2435. = DT_SINGLELINE|DT_CENTER|DT_VCENTER|DT_END_ELLIPSIS;
  2436. m_rcRibbonPageBkPadding.SetRect( 1, 1, 1, 1 );
  2437. VERIFY(
  2438. m_bmpRibbonPageBk.LoadBMP_Resource(
  2439. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_PAGE_BK_R2_BLACK)
  2440. )
  2441. );
  2442. m_rcRibbonGroupPaddingBkExpanded.SetRect( 2, 6, 4, 2 );
  2443. VERIFY(
  2444. m_bmpRibbonGroupBkExpanded[0].LoadBMP_Resource(
  2445. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_GROUP_EXPANDED_NORMAL_BK_R2_BLACK)
  2446. )
  2447. );
  2448. m_bmpRibbonGroupBkExpanded[0].PreMultipliedRGBChannelsSet( false );
  2449. VERIFY(
  2450. m_bmpRibbonGroupBkExpanded[1].LoadBMP_Resource(
  2451. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_GROUP_EXPANDED_HOVER_BK_R2_BLACK)
  2452. )
  2453. );
  2454. m_bmpRibbonGroupBkExpanded[1].PreMultipliedRGBChannelsSet( false );
  2455. m_rcRibbonGroupPaddingBkCollapsed.SetRect( 2, 6, 4, 2 );
  2456. VERIFY(
  2457. m_bmpRibbonGroupBkCollapsed[0].LoadBMP_Resource(
  2458. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_GROUP_COLLAPSED_NORMAL_BK_R2_BLACK)
  2459. )
  2460. );
  2461. m_bmpRibbonGroupBkCollapsed[0].PreMultipliedRGBChannelsSet( false );
  2462. VERIFY(
  2463. m_bmpRibbonGroupBkCollapsed[1].LoadBMP_Resource(
  2464. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_GROUP_COLLAPSED_HOVER_BK_R2_BLACK)
  2465. )
  2466. );
  2467. m_bmpRibbonGroupBkCollapsed[1].PreMultipliedRGBChannelsSet( false );
  2468. VERIFY(
  2469. m_bmpRibbonGroupBkCollapsed[2].LoadBMP_Resource(
  2470. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_GROUP_COLLAPSED_PRESSED_BK_R2_BLACK)
  2471. )
  2472. );
  2473. m_bmpRibbonGroupBkCollapsed[2].PreMultipliedRGBChannelsSet( false );
  2474. VERIFY(
  2475. m_bmpRibbonGroupBkCollapsed[3].LoadBMP_Resource( // selected same as hover in R1
  2476. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_GROUP_COLLAPSED_HOVER_BK_R2_BLACK)
  2477. )
  2478. );
  2479. m_bmpRibbonGroupBkCollapsed[3].PreMultipliedRGBChannelsSet( false );
  2480. //INT nBkIndex, nBkCount;
  2481. // nBkCount = sizeof( m_bmpRibbonGroupBkExpanded ) / sizeof( m_bmpRibbonGroupBkExpanded[0] );
  2482. // for( nBkIndex = 0; nBkIndex < nBkCount; nBkIndex ++ )
  2483. // {
  2484. // m_bmpRibbonGroupBkExpanded[nBkIndex].Make32();
  2485. // m_bmpRibbonGroupBkExpanded[nBkIndex].AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  2486. // } // for( nBkIndex = 0; nBkIndex < nBkCount; nBkIndex ++ )
  2487. // nBkCount = sizeof( m_bmpRibbonGroupBkCollapsed ) / sizeof( m_bmpRibbonGroupBkCollapsed[0] );
  2488. // for( nBkIndex = 0; nBkIndex < nBkCount; nBkIndex ++ )
  2489. // {
  2490. // m_bmpRibbonGroupBkCollapsed[nBkIndex].Make32();
  2491. // m_bmpRibbonGroupBkCollapsed[nBkIndex].AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  2492. // } // for( nBkIndex = 0; nBkIndex < nBkCount; nBkIndex ++ )
  2493. VERIFY( m_bmpRibbonGroupBkQATB[0].LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_GROUP_BUTTON_QATB_NORMAL_BK_R2_BLACK) ) );
  2494. //m_bmpRibbonGroupBkQATB[0].PreMultiplyRGBChannels( false );
  2495. VERIFY( m_bmpRibbonGroupBkQATB[0].Make32() );
  2496. m_bmpRibbonGroupBkQATB[0].AlphaColor( RGB(255,0,255), RGB(0,0,0), BYTE(0) );
  2497. VERIFY( m_bmpRibbonGroupBkQATB[1].LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_GROUP_BUTTON_QATB_HOVER_BK_R2_BLACK) ) );
  2498. //m_bmpRibbonGroupBkQATB[1].PreMultiplyRGBChannels( false );
  2499. VERIFY( m_bmpRibbonGroupBkQATB[1].Make32() );
  2500. m_bmpRibbonGroupBkQATB[1].AlphaColor( RGB(255,0,255), RGB(0,0,0), BYTE(0) );
  2501. VERIFY( m_bmpRibbonGroupBkQATB[2].LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_GROUP_BUTTON_QATB_PRESSED_BK_R2_BLACK) ) );
  2502. //m_bmpRibbonGroupBkQATB[2].PreMultiplyRGBChannels( false );
  2503. VERIFY( m_bmpRibbonGroupBkQATB[2].Make32() );
  2504. m_bmpRibbonGroupBkQATB[2].AlphaColor( RGB(255,0,255), RGB(0,0,0), BYTE(0) );
  2505. m_bmpRibbonGroupBkQATB[3] = m_bmpRibbonGroupBkQATB[1];
  2506. m_nRibbonSeparatorDrawModeH = INT( CExtBitmap::__EDM_STRETCH );
  2507. m_nRibbonSeparatorDrawModeV = INT( CExtBitmap::__EDM_STRETCH );
  2508. m_rcRibbonSeparatorPaddingH.SetRect( 0, 0, 0, 0 );
  2509. VERIFY(
  2510. m_bmpRibbonSeparatorH.LoadBMP_Resource(
  2511. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_SEPARATOR_H_R2_BLACK)
  2512. )
  2513. );
  2514. VERIFY( m_bmpRibbonSeparatorH.Make32() );
  2515. m_bmpRibbonSeparatorH.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  2516. m_rcRibbonSeparatorPaddingV.SetRect( 0, 0, 0, 0 );
  2517. VERIFY(
  2518. m_bmpRibbonSeparatorV.LoadBMP_Resource(
  2519. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_SEPARATOR_V_R2_BLACK)
  2520. )
  2521. );
  2522. VERIFY( m_bmpRibbonSeparatorV.Make32() );
  2523. m_bmpRibbonSeparatorV.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  2524. m_rcRibbonPaddingQACEB.SetRect( 3, 3, 3, 3 );
  2525. m_nRibbonHeightOfQACEB = 22;
  2526. m_nIdxRibbonQACEB_Normal   = 3;
  2527. m_nIdxRibbonQACEB_Hover    = 0;
  2528. m_nIdxRibbonQACEB_Pressed  = 1;
  2529. m_nIdxRibbonQACEB_Selected = 2;
  2530. VERIFY(
  2531. m_bmpArrRibbonQACEB.LoadBMP_Resource(
  2532. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_QATB_CEB_R2_BLACK)
  2533. )
  2534. );
  2535. m_bmpArrRibbonQACEB.PreMultiplyRGBChannels( false );
  2536. //m_bmpArrRibbonQACEB.PreMultipliedRGBChannelsSet( true );
  2537. m_nRibbonEmbeddedCaptionTextAlignmentFlags = (DT_SINGLELINE|DT_CENTER|DT_VCENTER);
  2538. //m_bRibbonFileButtonItegrationSupported = false;
  2539. //m_nRibbonFileButtonMenuIntersectionHeight = 20;
  2540. m_clrRibbon_EmbeddedCaptionTextLeft = RGB(210,210,210);
  2541. m_clrRibbon_EmbeddedCaptionTextRight = RGB(230,244,244);
  2542. m_nQatbAdditionalSpaceAtRightDWM = 0;
  2543. //  INT nCaptionHeightActive = NcFrame_GetCaptionHeight( true, NULL ) + m_rcNcFrameBordersActive.top;
  2544. //  INT nCaptionHeightInactive = NcFrame_GetCaptionHeight( false, NULL ) + m_rcNcFrameBordersInactive.top;
  2545. //  CExtBitmap::Filter _fBox( CExtBitmap::Filter::box );
  2546. m_rcRibbonNcCornerLeftCP.SetRect( 53, 2, 2, 2 );
  2547. m_rcRibbonNcCornerRightCP.SetRect( 2, 2, 42, 2 );
  2548. VERIFY( m_bmpArrRibbonFileButton.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_FILE_BUTTON) ) );
  2549. //m_bmpArrRibbonFileButton.PreMultipliedRGBChannelsSet( true );
  2550. m_bmpArrRibbonFileButton.PreMultiplyRGBChannels( true );
  2551. m_nRibbonFileButtonHeight = m_bmpArrRibbonFileButton.GetSize().cy / 3;
  2552. m_rcPaddingRibbonQuickAccessBarBkAtTheBottom.SetRect( 2, 2, 2, 2 );
  2553. VERIFY( m_bmpRibbonQuickAccessBarBkAtTheBottom.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_QATB_BK_R2_BLACK) ) );
  2554. m_nRibbonHeightOfOneDLB = 14;
  2555. m_nDlbIdxDisabled = m_nDlbIdxNormal = 0;
  2556. m_nDlbIdxHover = 1;
  2557. m_nDlbIdxPressed = 2;
  2558. rcRibbonContentPaddingDLB.SetRect( 2, 2, 2, 2 );
  2559. VERIFY(
  2560. m_arrBmpRibbonDLB.LoadBMP_Resource(
  2561. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_GCB_R2_BLACK)
  2562. )
  2563. );
  2564. //m_arrBmpRibbonDLB.PreMultipliedRGBChannelsSet( true );
  2565. m_arrBmpRibbonDLB.PreMultiplyRGBChannels( false );
  2566. m_clrRibbonGalleryInplaceBorderNormal = m_clrRibbonGalleryInplaceBorderHover  = RGB(198,202,205);
  2567. m_clrRibbonGalleryInplaceBkgndNormal  = m_clrRibbonGalleryInplaceBkgndHover   = RGB(255,255,255);
  2568. m_rcRibbonGalleryScrollFill = RGB(255,255,255);
  2569. m_rcRibbonGalleryScrollButtonPadding.SetRect( 3, 3, 3, 3 );
  2570. m_nHeightRibbonGalleryScrollButton = -1; //20;
  2571. m_nIndexRibbonGalleryScrollButtonNormal   = 0;
  2572. m_nIndexRibbonGalleryScrollButtonHover    = 1;
  2573. m_nIndexRibbonGalleryScrollButtonPressed  = 2;
  2574. m_nIndexRibbonGalleryScrollButtonDisabled = 3;
  2575. VERIFY(
  2576. m_bmpArrRibbonGalleryScrollButtonDown.LoadBMP_Resource(
  2577. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RGIBTN_DOWN_R2_BLACK)
  2578. )
  2579. );
  2580. m_bmpArrRibbonGalleryScrollButtonDown.PreMultipliedRGBChannelsSet( true );
  2581. VERIFY(
  2582. m_bmpArrRibbonGalleryScrollButtonUp.LoadBMP_Resource(
  2583. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RGIBTN_UP_R2_BLACK)
  2584. )
  2585. );
  2586. m_bmpArrRibbonGalleryScrollButtonUp.PreMultipliedRGBChannelsSet( true );
  2587. VERIFY(
  2588. m_bmpArrRibbonGalleryScrollButtonMenu.LoadBMP_Resource(
  2589. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RGIBTN_MENU_R2_BLACK)
  2590. )
  2591. );
  2592. m_bmpArrRibbonGalleryScrollButtonMenu.PreMultipliedRGBChannelsSet( true );
  2593. #endif // (!defined __EXT_MFC_NO_RIBBON_BAR)
  2594. VERIFY( m_bmpRibbonDDA.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_DDA_R1) ) );
  2595. VERIFY( m_bmpRibbonDDA.Make32() );
  2596. m_bmpRibbonDDA.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  2597. m_rcRibbonPaddingComboBoxDropDown.SetRect( 2, 2, 2, 2 );
  2598. VERIFY( m_bmpArrRibbonComboBoxDropDown.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_COMBO_BOX_BUTTON_R1) ) );
  2599. m_bmpArrRibbonComboBoxDropDown.PreMultipliedRGBChannelsSet( true );
  2600. // buttons 2010
  2601. m_nHeightOfButtonLSM = 66;
  2602. m_nHeightOfButtonLSXM = 39;
  2603. m_nHeightOfButtonLSXB = 27;
  2604. // tool buttons 2010
  2605. m_rcPaddingOfButtonTS.SetRect( 3, 3, 3, 3 );
  2606. m_arrIndicesButtonTS[INT(__E07BI_NORMAL)] = -1;
  2607. m_arrIndicesButtonTS[INT(__E07BI_HOVER)] = 0;
  2608. m_arrIndicesButtonTS[INT(__E07BI_PRESSED)] = 1;
  2609. m_arrIndicesButtonTS[INT(__E07BI_HDD)] = 2;
  2610. m_arrIndicesButtonTS[INT(__E07BI_SEL_T)] = 3;
  2611. m_arrIndicesButtonTS[INT(__E07BI_INDETERMINATE)] = 4;
  2612. m_rcPaddingOfButtonSS.SetRect( 3, 3, 3, 3 );
  2613. m_arrIndicesButtonSS_Left[INT(__E07BI_NORMAL)] = -1;
  2614. m_arrIndicesButtonSS_Left[INT(__E07BI_HOVER)] = 0;
  2615. m_arrIndicesButtonSS_Left[INT(__E07BI_PRESSED)] = 1;
  2616. m_arrIndicesButtonSS_Left[INT(__E07BI_HDD)] = 2;
  2617. m_arrIndicesButtonSS_Left[INT(__E07BI_SEL_T)] = 3;
  2618. m_arrIndicesButtonSS_Left[INT(__E07BI_INDETERMINATE)] = 4;
  2619. m_arrIndicesButtonSS_Right[INT(__E07BI_NORMAL)] = -1;
  2620. m_arrIndicesButtonSS_Right[INT(__E07BI_HOVER)] = 0;
  2621. m_arrIndicesButtonSS_Right[INT(__E07BI_PRESSED)] = 1;
  2622. m_arrIndicesButtonSS_Right[INT(__E07BI_HDD)] = 2;
  2623. m_arrIndicesButtonSS_Right[INT(__E07BI_SEL_T)] = 3;
  2624. m_arrIndicesButtonSS_Right[INT(__E07BI_INDETERMINATE)] = 4;
  2625. m_rcPaddingOfButtonLSM.SetRect( 4, 4, 4, 4 );
  2626. m_arrIndicesButtonLSM[INT(__E07BI_NORMAL)] = -1;
  2627. m_arrIndicesButtonLSM[INT(__E07BI_HOVER)] = 0;
  2628. m_arrIndicesButtonLSM[INT(__E07BI_PRESSED)] = 1;
  2629. m_arrIndicesButtonLSM[INT(__E07BI_HDD)] = 2;
  2630. m_arrIndicesButtonLSM[INT(__E07BI_SEL_T)] = 3;
  2631. m_arrIndicesButtonLSM[INT(__E07BIX_INDETERMINATE)] = 4;
  2632. // m_rcPaddingOfButtonLSB.SetRect( 4, 4, 4, 4 );
  2633. // m_arrIndicesButtonLSB[INT(__E07BI_NORMAL)] = -1;
  2634. // m_arrIndicesButtonLSB[INT(__E07BI_HOVER)] = 0;
  2635. // m_arrIndicesButtonLSB[INT(__E07BI_PRESSED)] = 1;
  2636. // m_arrIndicesButtonLSB[INT(__E07BI_HDD)] = 2;
  2637. // m_arrIndicesButtonLSB[INT(__E07BI_SEL_T)] = 3;
  2638. // m_arrIndicesButtonLSB[INT(__E07BI_INDETERMINATE)] = 4;
  2639. m_rcPaddingOfButtonLSXM.SetRect( 4, 4, 4, 4 );
  2640. m_arrIndicesButtonLSXM[INT(__E07BIX_NORMAL)] = -1;
  2641. m_arrIndicesButtonLSXM[INT(__E07BIX_HOVER)] = 0;
  2642. m_arrIndicesButtonLSXM[INT(__E07BIX_HOVER2)] = 0;
  2643. m_arrIndicesButtonLSXM[INT(__E07BIX_PRESSED)] = 1;
  2644. m_arrIndicesButtonLSXM[INT(__E07BIX_PRESSED2)] = 1;
  2645. m_arrIndicesButtonLSXM[INT(__E07BIX_PRESSED3)] = 1;
  2646. m_arrIndicesButtonLSXM[INT(__E07BIX_INDETERMINATE)] = 5;
  2647. m_arrIndicesButtonLSXM[INT(__E07BIX_SELECTED)] = 3;
  2648. m_rcPaddingOfButtonLSXB.SetRect( 4, 4, 4, 4 );
  2649. m_arrIndicesButtonLSXB[INT(__E07BIX_NORMAL)] = -1;
  2650. m_arrIndicesButtonLSXB[INT(__E07BIX_HOVER)] = 0;
  2651. m_arrIndicesButtonLSXB[INT(__E07BIX_HOVER2)] = 0;
  2652. m_arrIndicesButtonLSXB[INT(__E07BIX_PRESSED)] = 1;
  2653. m_arrIndicesButtonLSXB[INT(__E07BIX_PRESSED2)] = 1;
  2654. m_arrIndicesButtonLSXB[INT(__E07BIX_PRESSED3)] = 1;
  2655. m_arrIndicesButtonLSXB[INT(__E07BIX_INDETERMINATE)] = 5;
  2656. m_arrIndicesButtonLSXB[INT(__E07BIX_SELECTED)] = 3;
  2657. VERIFY(
  2658. m_bmpArrButtonTS[INT(__EBTSA_SOLID)].LoadBMP_Resource(
  2659. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_TB_SOLID_R1)
  2660. )
  2661. );
  2662. m_bmpArrButtonTS[INT(__EBTSA_SOLID)].PreMultipliedRGBChannelsSet( true );
  2663. VERIFY(
  2664. m_bmpArrButtonTS[INT(__EBTSA_LEFT)].LoadBMP_Resource(
  2665. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_TB_SOLID_R1)
  2666. )
  2667. );
  2668. m_bmpArrButtonTS[INT(__EBTSA_LEFT)].PreMultipliedRGBChannelsSet( true );
  2669. VERIFY(
  2670. m_bmpArrButtonTS[INT(__EBTSA_MIDDLE)].LoadBMP_Resource(
  2671. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_TB_SOLID_R1)
  2672. )
  2673. );
  2674. m_bmpArrButtonTS[INT(__EBTSA_MIDDLE)].PreMultipliedRGBChannelsSet( true );
  2675. VERIFY(
  2676. m_bmpArrButtonTS[INT(__EBTSA_RIGHT)].LoadBMP_Resource(
  2677. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_TB_SOLID_R1)
  2678. )
  2679. );
  2680. m_bmpArrButtonTS[INT(__EBTSA_RIGHT)].PreMultipliedRGBChannelsSet( true );
  2681. VERIFY(
  2682. m_bmpArrButtonSS_DD[INT(__EBSSA_LEFT)].LoadBMP_Resource(
  2683. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_BTN_PART_SMALL_LEFT_R1)
  2684. )
  2685. );
  2686. m_bmpArrButtonSS_DD[INT(__EBSSA_LEFT)].PreMultipliedRGBChannelsSet( true );
  2687. VERIFY(
  2688. m_bmpArrButtonSS_DD[INT(__EBSSA_RIGHT)].LoadBMP_Resource(
  2689. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_BTN_PART_SMALL_RIGHT_R1)
  2690. )
  2691. );
  2692. m_bmpArrButtonSS_DD[INT(__EBSSA_RIGHT)].PreMultipliedRGBChannelsSet( true );
  2693. m_bmpArrButtonSS_simple = m_bmpArrButtonSS_DD[ INT(__EBSSA_LEFT) ];
  2694. if( ! m_bmpArrButtonSS_simple.IsEmpty() )
  2695. {
  2696. CSize _sizeBmp = m_bmpArrButtonSS_simple.GetSize();
  2697. INT nY = 0, nXRange = _sizeBmp.cx / 2;
  2698. for( ; nY < _sizeBmp.cy; nY ++ )
  2699. {
  2700. INT nXSrc = nXRange - 1, nXDst = _sizeBmp.cx - nXRange;
  2701. for( ; nXDst < _sizeBmp.cx; nXDst ++, nXSrc -- )
  2702. {
  2703. RGBQUAD _pixel;
  2704. VERIFY( m_bmpArrButtonSS_simple.GetPixel( nXSrc, nY, _pixel ) );
  2705. VERIFY( m_bmpArrButtonSS_simple.SetPixel( nXDst, nY, _pixel ) );
  2706. } // for( ; nXDst < _sizeBmp.cx; nXDst ++, nXSrc -- )
  2707. } // for( ; nY < _sizeBmp.cy; nY ++ )
  2708. } // if( m_bmpArrButtonSS_simple.IsEmpty() )
  2709. VERIFY(
  2710. m_bmpArrButtonLSM.LoadBMP_Resource(
  2711. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_BTN_PART_LARGE_ALL_R1)
  2712. )
  2713. );
  2714. m_bmpArrButtonLSM.PreMultipliedRGBChannelsSet( true );
  2715. // VERIFY(
  2716. // m_bmpArrButtonLSB.LoadBMP_Resource(
  2717. // MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_BTN_PART_LARGE_BOTTOM_R2_BLACK)
  2718. // )
  2719. // );
  2720. // m_bmpArrButtonLSB.PreMultipliedRGBChannelsSet( true );
  2721. VERIFY(
  2722. m_bmpArrButtonLSXM.LoadBMP_Resource(
  2723. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_BTN_PART_LARGE_TOP_R1)
  2724. )
  2725. );
  2726. m_bmpArrButtonLSXM.PreMultipliedRGBChannelsSet( true );
  2727. VERIFY(
  2728. m_bmpArrButtonLSXB.LoadBMP_Resource(
  2729. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_BTN_PART_LARGE_BOTTOM_R1)
  2730. )
  2731. );
  2732. m_bmpArrButtonLSXB.PreMultipliedRGBChannelsSet( true );
  2733. VERIFY(
  2734. m_bmpToolBtnSeparator[INT(__ETBS_HOVER)].LoadBMP_Resource(
  2735. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_TB_SEPARATOR_HOVER_R2_BLACK)
  2736. )
  2737. );
  2738. m_bmpToolBtnSeparator[INT(__ETBS_HOVER)].PreMultipliedRGBChannelsSet( true );
  2739. VERIFY(
  2740. m_bmpToolBtnSeparator[INT(__ETBS_PRESSED)].LoadBMP_Resource(
  2741. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RIBBON_TB_SEPARATOR_PRESSED_R2_BLACK)
  2742. )
  2743. );
  2744. m_bmpToolBtnSeparator[INT(__ETBS_PRESSED)].PreMultipliedRGBChannelsSet( true );
  2745. VERIFY(
  2746. m_bmpLargeBtnSeparator[INT(__ELBS_HOVER)].LoadBMP_Resource(
  2747. MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_BTN_PART_LARGE_SEPARATOR_HOVER_R1)
  2748. )
  2749. );
  2750. m_bmpLargeBtnSeparator[INT(__ELBS_HOVER)].Make32();
  2751. m_bmpLargeBtnSeparator[INT(__ELBS_HOVER)].AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  2752. VERIFY(
  2753. m_bmpLargeBtnSeparator[INT(__ELBS_PRESSED)].LoadBMP_Resource(
  2754. MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_BTN_PART_LARGE_SEPARATOR_PRESSED_R1)
  2755. )
  2756. );
  2757. m_bmpLargeBtnSeparator[INT(__ELBS_PRESSED)].Make32();
  2758. m_bmpLargeBtnSeparator[INT(__ELBS_PRESSED)].AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  2759. VERIFY( m_bmpRibbonMenuResizingMarginHV.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_MRB_HV_OBSIDIAN) ) );
  2760. VERIFY( m_bmpRibbonMenuResizingMarginV.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_MRB_V_OBSIDIAN) ) );
  2761. VERIFY( m_bmpRibbonMenuResizingGripperHV.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_MRG_HV_OBSIDIAN) ) );
  2762. m_bmpRibbonMenuResizingGripperHV.Make32();
  2763. m_bmpRibbonMenuResizingGripperHV.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  2764. VERIFY( m_bmpRibbonMenuResizingGripperV.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_MRG_V_OBSIDIAN) ) );
  2765. m_bmpRibbonMenuResizingGripperV.Make32();
  2766. m_bmpRibbonMenuResizingGripperV.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  2767. m_clrRibbonModeMenuTextNormal = RGB(57,60,63);
  2768. VERIFY(
  2769. m_bmpRibbonModeMenuBorder.LoadBMP_Resource(
  2770. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_MENU_BORDER_R2_BLACK)
  2771. )
  2772. );
  2773. m_bmpRibbonModeMenuBorder.Make32();
  2774. m_bmpRibbonModeMenuBorder.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  2775. m_clrMenuCaptionText = RGB(57,60,63);
  2776. m_rcMenuCaptionBmpPadding.SetRect( 0, 2, 0, 2 );
  2777. VERIFY(
  2778. m_bmpMenuCaptionBk.LoadBMP_Resource(
  2779. MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_MENU_CAPTION_BK_R2_BLACK)
  2780. )
  2781. );
  2782. m_rcPaddingRibbonFileMenuBigBorder.SetRect( 6, 6, 6, 29 );
  2783. VERIFY( m_bmpRibbonFileMenuBigBorder.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RM_BIG_BORDER_R2_BLACK) ) );
  2784. m_bmpRibbonFileMenuBigBorder.Make32();
  2785. m_bmpRibbonFileMenuBigBorder.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  2786. m_rcPaddingRibbonFileMenuOptionsButton.SetRect( 2, 2, 2, 2 );
  2787. // VERIFY(
  2788. // m_bmpRibbonFileMenuOptionsButtonCold.LoadBMP_Resource(
  2789. // MAKEINTRESOURCE(IDB_EXT_2007_RM_OPTION_COLD_R2_BLACK)
  2790. // )
  2791. // );
  2792. // m_bmpRibbonFileMenuOptionsButtonCold.Make32();
  2793. // m_bmpRibbonFileMenuOptionsButtonCold.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  2794. VERIFY(
  2795. m_bmpRibbonFileMenuOptionsButtonHot.LoadBMP_Resource(
  2796. MAKEINTRESOURCE(IDB_EXT_2007_RM_OPTION_HOT_R1)
  2797. )
  2798. );
  2799. m_bmpRibbonFileMenuOptionsButtonHot.Make32();
  2800. m_bmpRibbonFileMenuOptionsButtonHot.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  2801. VERIFY( m_bmpResizingGripper.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_RESIZING_GRIPPER_R2_BLACK) ) );
  2802. m_bmpResizingGripper.Make32();
  2803. m_bmpResizingGripper.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  2804. // spin bitmaps
  2805. VERIFY( m_arrBmpSpinArrowDown. LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_SPIN_ARROW_DOWN_R1) ) );
  2806. VERIFY( m_arrBmpSpinArrowUp. LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_SPIN_ARROW_UP_R1) ) );
  2807. VERIFY( m_arrBmpSpinDown. LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_SPIN_DOWN_R1) ) );
  2808. VERIFY( m_arrBmpSpinUp. LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2010_OFFICE_SPIN_UP_R1) ) );
  2809. }
  2810. CExtPaintManagerOffice2010_R2_Black::~CExtPaintManagerOffice2010_R2_Black()
  2811. {
  2812. }
  2813. #if (!defined __EXT_MFC_NO_RIBBON_BAR)
  2814. INT CExtPaintManagerOffice2010_Impl::Ribbon_GetOuterGroupDistance(
  2815. const CExtBarButton * pTBB,
  2816. bool bDistanceBefore,
  2817. LPARAM lParam // = 0L
  2818. )
  2819. {
  2820. ASSERT_VALID( this );
  2821. ASSERT_VALID( pTBB );
  2822. if( IsHighContrast() )
  2823. return 
  2824. CExtPaintManagerXP::Ribbon_GetOuterGroupDistance(
  2825. pTBB,
  2826. bDistanceBefore,
  2827. lParam
  2828. );
  2829. return 0;
  2830. }
  2831. bool CExtPaintManagerOffice2010_Impl::Ribbon_HaveSeparatorsBetweenToolGroups() const
  2832. {
  2833. ASSERT_VALID( this );
  2834. return true;
  2835. }
  2836. #endif // (!defined __EXT_MFC_NO_RIBBON_BAR)
  2837. void CExtPaintManagerOffice2010_R1::InitTranslatedColors()
  2838. {
  2839. CExtPaintManagerOffice2010_Impl::InitTranslatedColors();
  2840. #if (!defined __EXT_MFC_NO_PAGE_NAVIGATOR )
  2841. INT nPnCaptionBkClrIdx = InstallColor( RGB( 169, 193, 222 ) );
  2842. m_mapColorTranslate[_2003CLR_PN_PANE_CAPTION_LIGHT]       = nPnCaptionBkClrIdx;
  2843. m_mapColorTranslate[_2003CLR_PN_PANE_CAPTION_DARK]        = nPnCaptionBkClrIdx;
  2844. m_mapColorTranslate[_2003CLR_PN_PANE_CAPTION_HOVER_LIGHT] = nPnCaptionBkClrIdx;
  2845. m_mapColorTranslate[_2003CLR_PN_PANE_CAPTION_HOVER_DARK]  = nPnCaptionBkClrIdx;
  2846. m_mapColorTranslate[_2003CLR_PN_PANE_CAPTION_BOTTOM_LINE] = nPnCaptionBkClrIdx;
  2847. m_mapColorTranslate[_2003CLR_PN_ITEM_LIGHT] = InstallColor( RGB(223, 226, 229) );
  2848. m_mapColorTranslate[_2003CLR_PN_ITEM_DARK] = InstallColor( RGB(225, 227, 230) );
  2849. m_mapColorTranslate[_2003CLR_PN_GRIPPER_LIGHT] = InstallColor( RGB(246, 247, 248) );
  2850. m_mapColorTranslate[_2003CLR_PN_GRIPPER_DARK] = InstallColor( RGB(218, 223, 231) );
  2851. m_mapColorTranslate[_2003CLR_PN_BORDER] = InstallColor( RGB( 162, 166, 171 ) );
  2852. m_mapColorTranslate[CLR_PN_CAPTION_TEXT] = InstallColor( RGB(101, 109, 117) ); // 30, 57, 91
  2853. #endif // (!defined __EXT_MFC_NO_PAGE_NAVIGATOR )
  2854. m_mapColorTranslate[CLR_GROUP_BOX_FRAME] = InstallColor( RGB(169,177,184) );
  2855. m_mapColorTranslate[CLR_WRB_FRAME] = InstallColor( RGB(169,169,169) );
  2856.   m_mapColorTranslate[_2003CLR_EXPBTN_LIGHT] = InstallColor( RGB(209, 213, 219) );
  2857.   m_mapColorTranslate[_2003CLR_EXPBTN_DARK] = InstallColor( RGB(181, 184, 191) );
  2858. m_mapColorTranslate[_2003CLR_TOOLBAR_GRADIENT_LIGHT] = InstallColor( RGB(235, 237, 240) );
  2859. m_mapColorTranslate[_2003CLR_TOOLBAR_GRADIENT_MIDDLE] = InstallColor( RGB(232, 234, 236) );
  2860. m_mapColorTranslate[_2003CLR_TOOLBAR_GRADIENT_DARK] = InstallColor( RGB(222, 224, 226) );
  2861. m_mapColorTranslate[_2003CLR_TOOLBAR_BOTTOM_LINE] = InstallColor( RGB(181, 184, 191) );
  2862. m_mapColorTranslate[_2003CLR_GRIPPER_DOT_LIGHT] = InstallColor( RGB(255,255,255) );
  2863. m_mapColorTranslate[_2003CLR_GRIPPER_DOT_DARK] = InstallColor( RGB(144, 144, 144) );
  2864. m_mapColorTranslate[_2003CLR_SEPARATOR_LIGHT] = InstallColor( RGB(255, 255, 255) );
  2865. m_mapColorTranslate[_2003CLR_SEPARATOR_DARK] = InstallColor( RGB(170, 170, 170) );
  2866. m_mapColorTranslate[_2003CLR_MLA_NORM_LEFT] = InstallColor( RGB(255, 255, 255) );
  2867. m_mapColorTranslate[_2003CLR_MLA_NORM_MIDDLE] = InstallColor( RGB(255, 255, 255) );
  2868. m_mapColorTranslate[_2003CLR_MLA_NORM_RIGHT] = InstallColor( RGB(255, 255, 255) );
  2869. m_mapColorTranslate[_2003CLR_MLA_RARELY_LEFT] = InstallColor( RGB(230, 230, 230) );
  2870. m_mapColorTranslate[_2003CLR_MLA_RARELY_MIDDLE] = InstallColor( RGB(230, 230, 230) );
  2871. m_mapColorTranslate[_2003CLR_MLA_RARELY_RIGHT] = InstallColor( RGB(230, 230, 230) );
  2872. m_mapColorTranslate[_2003CLR_TBB_BK_COMBINED_TOP] = InstallColor( RGB(232, 233, 241) );
  2873. m_mapColorTranslate[_2003CLR_TBB_BK_COMBINED_BOTTOM] = InstallColor( RGB(172, 170, 194) );
  2874. m_mapColorTranslate[_2003CLR_BTN_HOVER_LEFT] = InstallColor( RGB(255, 245, 204) );
  2875. m_mapColorTranslate[_2003CLR_BTN_HOVER_RIGHT] = InstallColor( RGB(255, 219, 117) );
  2876. m_mapColorTranslate[_2003CLR_BTN_PRESSED_LEFT] = InstallColor( RGB(255, 245, 204) );
  2877. m_mapColorTranslate[_2003CLR_BTN_PRESSED_RIGHT] = InstallColor( RGB(255, 219, 117) );
  2878. m_mapColorTranslate[_2003CLR_BTN_HP_LEFT] = InstallColor( RGB(252, 151, 61) );
  2879. m_mapColorTranslate[_2003CLR_BTN_HP_RIGHT] = InstallColor( RGB(255, 184, 94) );
  2880. m_mapColorTranslate[CLR_3DFACE_IN] = InstallColor( RGB(220, 226, 232) );
  2881. m_mapColorTranslate[XPCLR_MENU_BORDER] = InstallColor( RGB(167, 171, 176) );
  2882. m_mapColorTranslate[XPCLR_HILIGHT_BORDER] = InstallColor( RGB(255, 189, 105) );
  2883. m_mapColorTranslate[XPCLR_HILIGHT_BORDER_SELECTED] = m_mapColorTranslate[XPCLR_HILIGHT_BORDER]; 
  2884. m_mapColorTranslate[_2003CLR_EXPBTN_CIRCLE_LIGHT] = InstallColor( RGB(249, 249, 255) );
  2885. m_mapColorTranslate[_2003CLR_EXPBTN_CIRCLE_DARK] = InstallColor( RGB(159, 157, 185) );
  2886. m_mapColorTranslate[COLOR_3DSHADOW] = InstallColor( RGB(141,141,141) );
  2887. m_mapColorTranslate[XPCLR_3DFACE_FLOAT_R] = InstallColor( RGB(219, 218, 228) );
  2888. m_mapColorTranslate[XPCLR_3DFACE_FLOAT_F] = InstallColor( RGB(219, 218, 228) );
  2889. m_mapColorTranslate[XPCLR_TEXT_FIELD_BORDER_NORMAL] = InstallColor( m_arrClrComboBoxBorder[0] );
  2890. m_mapColorTranslate[XPCLR_TEXT_FIELD_BORDER_DISABLED] = InstallColor( m_arrClrComboBoxBorder[3] );
  2891. m_mapColorTranslate[_2003CLR_GRADIENT_LIGHT] = InstallColor( RGB(243, 243, 247) );
  2892. m_mapColorTranslate[_2003CLR_GRADIENT_DARK] = InstallColor( RGB(215, 215, 229) );
  2893. int nTextColorIndex = InstallColor( RGB(57,60,63) );
  2894. m_mapColorTranslate[CLR_MENUTEXT_IN] = nTextColorIndex;
  2895. m_mapColorTranslate[CLR_MENUTEXT_OUT] = nTextColorIndex;
  2896. m_mapColorTranslate[CLR_TEXT_IN] = nTextColorIndex;
  2897. m_mapColorTranslate[CLR_TEXT_OUT] = nTextColorIndex;
  2898. m_mapColorTranslate[COLOR_MENUTEXT] = nTextColorIndex;
  2899. m_mapColorTranslate[CLR_TEXT_DISABLED] = InstallColor( RGB(141,141,141) );
  2900. }
  2901. void CExtPaintManagerOffice2010_R2_Blue::InitTranslatedColors()
  2902. {
  2903. CExtPaintManagerOffice2010_Impl::InitTranslatedColors();
  2904. #if (!defined __EXT_MFC_NO_PAGE_NAVIGATOR )
  2905. INT nPnCaptionBkClrIdx = InstallColor( RGB( 169, 193, 222 ) );
  2906. m_mapColorTranslate[_2003CLR_PN_PANE_CAPTION_LIGHT]       = nPnCaptionBkClrIdx;
  2907. m_mapColorTranslate[_2003CLR_PN_PANE_CAPTION_DARK]        = nPnCaptionBkClrIdx;
  2908. m_mapColorTranslate[_2003CLR_PN_PANE_CAPTION_HOVER_LIGHT] = nPnCaptionBkClrIdx;
  2909. m_mapColorTranslate[_2003CLR_PN_PANE_CAPTION_HOVER_DARK]  = nPnCaptionBkClrIdx;
  2910. m_mapColorTranslate[_2003CLR_PN_PANE_CAPTION_BOTTOM_LINE] = nPnCaptionBkClrIdx;
  2911. m_mapColorTranslate[_2003CLR_PN_ITEM_LIGHT] = InstallColor( RGB(223, 226, 229) );
  2912. m_mapColorTranslate[_2003CLR_PN_ITEM_DARK] = InstallColor( RGB(225, 227, 230) );
  2913. m_mapColorTranslate[_2003CLR_PN_GRIPPER_LIGHT] = InstallColor( RGB(246, 247, 248) );
  2914. m_mapColorTranslate[_2003CLR_PN_GRIPPER_DARK] = InstallColor( RGB(218, 223, 231) );
  2915. m_mapColorTranslate[_2003CLR_PN_BORDER] = InstallColor( RGB( 162, 166, 171 ) );
  2916. m_mapColorTranslate[CLR_PN_CAPTION_TEXT] = InstallColor( RGB(101, 109, 117) );
  2917. #endif // (!defined __EXT_MFC_NO_PAGE_NAVIGATOR )
  2918. m_mapColorTranslate[CLR_GROUP_BOX_FRAME] = InstallColor( RGB(169,177,184) );
  2919. m_mapColorTranslate[CLR_WRB_FRAME] = InstallColor( RGB(169,169,169) );
  2920.   m_mapColorTranslate[_2003CLR_EXPBTN_LIGHT] = InstallColor( RGB(216, 228, 242) );
  2921.   m_mapColorTranslate[_2003CLR_EXPBTN_DARK] = InstallColor( RGB(139, 160, 188) );
  2922. m_mapColorTranslate[_2003CLR_TOOLBAR_GRADIENT_LIGHT] = InstallColor( RGB(237, 245, 253) );
  2923. m_mapColorTranslate[_2003CLR_TOOLBAR_GRADIENT_MIDDLE] = InstallColor( RGB(216, 229, 244) );
  2924. m_mapColorTranslate[_2003CLR_TOOLBAR_GRADIENT_DARK] = InstallColor( RGB(216, 228, 242) );
  2925. m_mapColorTranslate[_2003CLR_TOOLBAR_BOTTOM_LINE] = InstallColor( RGB(139, 160, 188) );
  2926. m_mapColorTranslate[_2003CLR_GRIPPER_DOT_LIGHT] = InstallColor( RGB(255,255,255) );
  2927. m_mapColorTranslate[_2003CLR_GRIPPER_DOT_DARK] = InstallColor( RGB(139, 160, 188) );
  2928. m_mapColorTranslate[_2003CLR_SEPARATOR_LIGHT] = InstallColor( RGB(255, 255, 255) );
  2929. m_mapColorTranslate[_2003CLR_SEPARATOR_DARK] = InstallColor( RGB(139, 160, 188) );
  2930. m_mapColorTranslate[_2003CLR_MLA_NORM_LEFT] = InstallColor( RGB(255, 255, 255) );
  2931. m_mapColorTranslate[_2003CLR_MLA_NORM_MIDDLE] = InstallColor( RGB(255, 255, 255) );
  2932. m_mapColorTranslate[_2003CLR_MLA_NORM_RIGHT] = InstallColor( RGB(255, 255, 255) );
  2933. m_mapColorTranslate[_2003CLR_MLA_RARELY_LEFT] = InstallColor( RGB(230, 230, 230) );
  2934. m_mapColorTranslate[_2003CLR_MLA_RARELY_MIDDLE] = InstallColor( RGB(230, 230, 230) );
  2935. m_mapColorTranslate[_2003CLR_MLA_RARELY_RIGHT] = InstallColor( RGB(230, 230, 230) );
  2936. m_mapColorTranslate[_2003CLR_TBB_BK_COMBINED_TOP] = InstallColor( RGB(232, 233, 241) );
  2937. m_mapColorTranslate[_2003CLR_TBB_BK_COMBINED_BOTTOM] = InstallColor( RGB(172, 170, 194) );
  2938. m_mapColorTranslate[_2003CLR_BTN_HOVER_LEFT] = InstallColor( RGB(255, 245, 204) );
  2939. m_mapColorTranslate[_2003CLR_BTN_HOVER_RIGHT] = InstallColor( RGB(255, 219, 117) );
  2940. m_mapColorTranslate[_2003CLR_BTN_PRESSED_LEFT] = InstallColor( RGB(255, 245, 204) );
  2941. m_mapColorTranslate[_2003CLR_BTN_PRESSED_RIGHT] = InstallColor( RGB(255, 219, 117) );
  2942. m_mapColorTranslate[_2003CLR_BTN_HP_LEFT] = InstallColor( RGB(252, 151, 61) );
  2943. m_mapColorTranslate[_2003CLR_BTN_HP_RIGHT] = InstallColor( RGB(255, 184, 94) );
  2944. m_mapColorTranslate[CLR_3DFACE_IN] = InstallColor( RGB(220, 226, 232) );
  2945. m_mapColorTranslate[XPCLR_MENU_BORDER] = InstallColor( RGB(167, 171, 176) );
  2946. m_mapColorTranslate[XPCLR_HILIGHT_BORDER] = InstallColor( RGB(255, 189, 105) );
  2947. m_mapColorTranslate[XPCLR_HILIGHT_BORDER_SELECTED] = m_mapColorTranslate[XPCLR_HILIGHT_BORDER]; 
  2948. m_mapColorTranslate[_2003CLR_EXPBTN_CIRCLE_LIGHT] = InstallColor( RGB(249, 249, 255) );
  2949. m_mapColorTranslate[_2003CLR_EXPBTN_CIRCLE_DARK] = InstallColor( RGB(159, 157, 185) );
  2950. m_mapColorTranslate[COLOR_3DSHADOW] = InstallColor( RGB(141,141,141) );
  2951. m_mapColorTranslate[XPCLR_3DFACE_FLOAT_R] = InstallColor( RGB(219, 218, 228) );
  2952. m_mapColorTranslate[XPCLR_3DFACE_FLOAT_F] = InstallColor( RGB(219, 218, 228) );
  2953. m_mapColorTranslate[XPCLR_TEXT_FIELD_BORDER_NORMAL] = InstallColor( m_arrClrComboBoxBorder[0] );
  2954. m_mapColorTranslate[XPCLR_TEXT_FIELD_BORDER_DISABLED] = InstallColor( m_arrClrComboBoxBorder[3] );
  2955. m_mapColorTranslate[_2003CLR_GRADIENT_LIGHT] = InstallColor( RGB(237, 245, 253) );
  2956. m_mapColorTranslate[_2003CLR_GRADIENT_DARK] = InstallColor( RGB(216, 228, 242) );
  2957. int nTextColorIndex = InstallColor( RGB(57,60,63) );
  2958. m_mapColorTranslate[CLR_MENUTEXT_IN] = nTextColorIndex;
  2959. m_mapColorTranslate[CLR_MENUTEXT_OUT] = nTextColorIndex;
  2960. m_mapColorTranslate[CLR_TEXT_IN] = nTextColorIndex;
  2961. m_mapColorTranslate[CLR_TEXT_OUT] = nTextColorIndex;
  2962. m_mapColorTranslate[COLOR_MENUTEXT] = nTextColorIndex;
  2963. m_mapColorTranslate[CLR_TEXT_DISABLED] = InstallColor( RGB(141,141,141) );
  2964. }
  2965. void CExtPaintManagerOffice2010_R2_Silver::InitTranslatedColors()
  2966. {
  2967. CExtPaintManagerOffice2010_Impl::InitTranslatedColors();
  2968. #if (!defined __EXT_MFC_NO_PAGE_NAVIGATOR )
  2969. INT nPnCaptionBkClrIdx = InstallColor( RGB( 169, 193, 222 ) );
  2970. m_mapColorTranslate[_2003CLR_PN_PANE_CAPTION_LIGHT]       = nPnCaptionBkClrIdx;
  2971. m_mapColorTranslate[_2003CLR_PN_PANE_CAPTION_DARK]        = nPnCaptionBkClrIdx;
  2972. m_mapColorTranslate[_2003CLR_PN_PANE_CAPTION_HOVER_LIGHT] = nPnCaptionBkClrIdx;
  2973. m_mapColorTranslate[_2003CLR_PN_PANE_CAPTION_HOVER_DARK]  = nPnCaptionBkClrIdx;
  2974. m_mapColorTranslate[_2003CLR_PN_PANE_CAPTION_BOTTOM_LINE] = nPnCaptionBkClrIdx;
  2975. m_mapColorTranslate[_2003CLR_PN_ITEM_LIGHT] = InstallColor( RGB(223, 226, 229) );
  2976. m_mapColorTranslate[_2003CLR_PN_ITEM_DARK] = InstallColor( RGB(225, 227, 230) );
  2977. m_mapColorTranslate[_2003CLR_PN_GRIPPER_LIGHT] = InstallColor( RGB(246, 247, 248) );
  2978. m_mapColorTranslate[_2003CLR_PN_GRIPPER_DARK] = InstallColor( RGB(218, 223, 231) );
  2979. m_mapColorTranslate[_2003CLR_PN_BORDER] = InstallColor( RGB( 162, 166, 171 ) );
  2980. m_mapColorTranslate[CLR_PN_CAPTION_TEXT] = InstallColor( RGB(101, 109, 117) );
  2981. #endif // (!defined __EXT_MFC_NO_PAGE_NAVIGATOR )
  2982. m_mapColorTranslate[CLR_GROUP_BOX_FRAME] = InstallColor( RGB(169,177,184) );
  2983. m_mapColorTranslate[CLR_WRB_FRAME] = InstallColor( RGB(169,169,169) );
  2984.   m_mapColorTranslate[_2003CLR_EXPBTN_LIGHT] = InstallColor( RGB(238, 240, 243) );
  2985.   m_mapColorTranslate[_2003CLR_EXPBTN_DARK] = InstallColor( RGB(139, 144, 151) );
  2986. m_mapColorTranslate[_2003CLR_TOOLBAR_GRADIENT_LIGHT] = InstallColor( RGB(255, 255, 255) );
  2987. m_mapColorTranslate[_2003CLR_TOOLBAR_GRADIENT_MIDDLE] = InstallColor( RGB(251, 250, 250) );
  2988. m_mapColorTranslate[_2003CLR_TOOLBAR_GRADIENT_DARK] = InstallColor( RGB(238, 240, 243) );
  2989. m_mapColorTranslate[_2003CLR_TOOLBAR_BOTTOM_LINE] = InstallColor( RGB(139, 144, 151) );
  2990. m_mapColorTranslate[_2003CLR_GRIPPER_DOT_LIGHT] = InstallColor( RGB(255,255,255) );
  2991. m_mapColorTranslate[_2003CLR_GRIPPER_DOT_DARK] = InstallColor( RGB(139, 144, 151) );
  2992. m_mapColorTranslate[_2003CLR_SEPARATOR_LIGHT] = InstallColor( RGB(255, 255, 255) );
  2993. m_mapColorTranslate[_2003CLR_SEPARATOR_DARK] = InstallColor( RGB(139, 144, 151) );
  2994. m_mapColorTranslate[_2003CLR_MLA_NORM_LEFT] = InstallColor( RGB(255, 255, 255) );
  2995. m_mapColorTranslate[_2003CLR_MLA_NORM_MIDDLE] = InstallColor( RGB(255, 255, 255) );
  2996. m_mapColorTranslate[_2003CLR_MLA_NORM_RIGHT] = InstallColor( RGB(255, 255, 255) );
  2997. m_mapColorTranslate[_2003CLR_MLA_RARELY_LEFT] = InstallColor( RGB(230, 230, 230) );
  2998. m_mapColorTranslate[_2003CLR_MLA_RARELY_MIDDLE] = InstallColor( RGB(230, 230, 230) );
  2999. m_mapColorTranslate[_2003CLR_MLA_RARELY_RIGHT] = InstallColor( RGB(230, 230, 230) );
  3000. m_mapColorTranslate[_2003CLR_TBB_BK_COMBINED_TOP] = InstallColor( RGB(232, 233, 241) );
  3001. m_mapColorTranslate[_2003CLR_TBB_BK_COMBINED_BOTTOM] = InstallColor( RGB(172, 170, 194) );
  3002. m_mapColorTranslate[_2003CLR_BTN_HOVER_LEFT] = InstallColor( RGB(255, 245, 204) );
  3003. m_mapColorTranslate[_2003CLR_BTN_HOVER_RIGHT] = InstallColor( RGB(255, 219, 117) );
  3004. m_mapColorTranslate[_2003CLR_BTN_PRESSED_LEFT] = InstallColor( RGB(255, 245, 204) );
  3005. m_mapColorTranslate[_2003CLR_BTN_PRESSED_RIGHT] = InstallColor( RGB(255, 219, 117) );
  3006. m_mapColorTranslate[_2003CLR_BTN_HP_LEFT] = InstallColor( RGB(252, 151, 61) );
  3007. m_mapColorTranslate[_2003CLR_BTN_HP_RIGHT] = InstallColor( RGB(255, 184, 94) );
  3008. m_mapColorTranslate[CLR_3DFACE_IN] = InstallColor( RGB(220, 226, 232) );
  3009. m_mapColorTranslate[XPCLR_MENU_BORDER] = InstallColor( RGB(167, 171, 176) );
  3010. m_mapColorTranslate[XPCLR_HILIGHT_BORDER] = InstallColor( RGB(255, 189, 105) );
  3011. m_mapColorTranslate[XPCLR_HILIGHT_BORDER_SELECTED] = m_mapColorTranslate[XPCLR_HILIGHT_BORDER]; 
  3012. m_mapColorTranslate[_2003CLR_EXPBTN_CIRCLE_LIGHT] = InstallColor( RGB(249, 249, 255) );
  3013. m_mapColorTranslate[_2003CLR_EXPBTN_CIRCLE_DARK] = InstallColor( RGB(159, 157, 185) );
  3014. m_mapColorTranslate[COLOR_3DSHADOW] = InstallColor( RGB(141,141,141) );
  3015. m_mapColorTranslate[XPCLR_3DFACE_FLOAT_R] = InstallColor( RGB(219, 218, 228) );
  3016. m_mapColorTranslate[XPCLR_3DFACE_FLOAT_F] = InstallColor( RGB(219, 218, 228) );
  3017. m_mapColorTranslate[XPCLR_TEXT_FIELD_BORDER_NORMAL] = InstallColor( m_arrClrComboBoxBorder[0] );
  3018. m_mapColorTranslate[XPCLR_TEXT_FIELD_BORDER_DISABLED] = InstallColor( m_arrClrComboBoxBorder[3] );
  3019. m_mapColorTranslate[_2003CLR_GRADIENT_LIGHT] = InstallColor( RGB(255, 255, 255) );
  3020. m_mapColorTranslate[_2003CLR_GRADIENT_DARK] = InstallColor( RGB(234, 237, 241) );
  3021. int nTextColorIndex = InstallColor( RGB(57,60,63) );
  3022. m_mapColorTranslate[CLR_MENUTEXT_IN] = nTextColorIndex;
  3023. m_mapColorTranslate[CLR_MENUTEXT_OUT] = nTextColorIndex;
  3024. m_mapColorTranslate[CLR_TEXT_IN] = nTextColorIndex;
  3025. m_mapColorTranslate[CLR_TEXT_OUT] = nTextColorIndex;
  3026. m_mapColorTranslate[COLOR_MENUTEXT] = nTextColorIndex;
  3027. m_mapColorTranslate[CLR_TEXT_DISABLED] = InstallColor( RGB(141,141,141) );
  3028. }
  3029. void CExtPaintManagerOffice2010_R2_Black::InitTranslatedColors()
  3030. {
  3031. CExtPaintManagerOffice2010_Impl::InitTranslatedColors();
  3032. #if (!defined __EXT_MFC_NO_PAGE_NAVIGATOR )
  3033. INT nPnCaptionBkClrIdx = InstallColor( RGB( 169, 193, 222 ) );
  3034. m_mapColorTranslate[_2003CLR_PN_PANE_CAPTION_LIGHT]       = nPnCaptionBkClrIdx;
  3035. m_mapColorTranslate[_2003CLR_PN_PANE_CAPTION_DARK]        = nPnCaptionBkClrIdx;
  3036. m_mapColorTranslate[_2003CLR_PN_PANE_CAPTION_HOVER_LIGHT] = nPnCaptionBkClrIdx;
  3037. m_mapColorTranslate[_2003CLR_PN_PANE_CAPTION_HOVER_DARK]  = nPnCaptionBkClrIdx;
  3038. m_mapColorTranslate[_2003CLR_PN_PANE_CAPTION_BOTTOM_LINE] = nPnCaptionBkClrIdx;
  3039. m_mapColorTranslate[_2003CLR_PN_ITEM_LIGHT] = InstallColor( RGB(223, 226, 229) );
  3040. m_mapColorTranslate[_2003CLR_PN_ITEM_DARK] = InstallColor( RGB(225, 227, 230) );
  3041. m_mapColorTranslate[_2003CLR_PN_GRIPPER_LIGHT] = InstallColor( RGB(246, 247, 248) );
  3042. m_mapColorTranslate[_2003CLR_PN_GRIPPER_DARK] = InstallColor( RGB(218, 223, 231) );
  3043. m_mapColorTranslate[_2003CLR_PN_BORDER] = InstallColor( RGB( 162, 166, 171 ) );
  3044. m_mapColorTranslate[CLR_PN_CAPTION_TEXT] = InstallColor( RGB(101, 109, 117) );
  3045. #endif // (!defined __EXT_MFC_NO_PAGE_NAVIGATOR )
  3046. m_mapColorTranslate[CLR_GROUP_BOX_FRAME] = InstallColor( RGB(169,177,184) );
  3047. m_mapColorTranslate[CLR_WRB_FRAME] = InstallColor( RGB(169,169,169) );
  3048.   m_mapColorTranslate[_2003CLR_EXPBTN_LIGHT] = InstallColor( RGB(145, 145, 145) );
  3049.   m_mapColorTranslate[_2003CLR_EXPBTN_DARK] = InstallColor( RGB(78, 78, 78) );
  3050. m_mapColorTranslate[_2003CLR_TOOLBAR_GRADIENT_LIGHT] = InstallColor( RGB(188, 188, 188) );
  3051. m_mapColorTranslate[_2003CLR_TOOLBAR_GRADIENT_MIDDLE] = InstallColor( RGB(188, 188, 188) /*RGB(147, 147, 147)*/ );
  3052. m_mapColorTranslate[_2003CLR_TOOLBAR_GRADIENT_DARK] = InstallColor( RGB(145, 145, 145) );
  3053. m_mapColorTranslate[_2003CLR_TOOLBAR_BOTTOM_LINE] = InstallColor( RGB(78, 78, 78) );
  3054. m_mapColorTranslate[_2003CLR_GRIPPER_DOT_LIGHT] = InstallColor( RGB(255,255,255) );
  3055. m_mapColorTranslate[_2003CLR_GRIPPER_DOT_DARK] = InstallColor( RGB(78, 78, 78) );
  3056. m_mapColorTranslate[_2003CLR_SEPARATOR_LIGHT] = InstallColor( RGB(188, 188, 188) );
  3057. m_mapColorTranslate[_2003CLR_SEPARATOR_DARK] = InstallColor( RGB(78, 78, 78) );
  3058. m_mapColorTranslate[_2003CLR_MLA_NORM_LEFT] = InstallColor( RGB(255, 255, 255) );
  3059. m_mapColorTranslate[_2003CLR_MLA_NORM_MIDDLE] = InstallColor( RGB(255, 255, 255) );
  3060. m_mapColorTranslate[_2003CLR_MLA_NORM_RIGHT] = InstallColor( RGB(255, 255, 255) );
  3061. m_mapColorTranslate[_2003CLR_MLA_RARELY_LEFT] = InstallColor( RGB(230, 230, 230) );
  3062. m_mapColorTranslate[_2003CLR_MLA_RARELY_MIDDLE] = InstallColor( RGB(230, 230, 230) );
  3063. m_mapColorTranslate[_2003CLR_MLA_RARELY_RIGHT] = InstallColor( RGB(230, 230, 230) );
  3064. m_mapColorTranslate[_2003CLR_TBB_BK_COMBINED_TOP] = InstallColor( RGB(232, 233, 241) );
  3065. m_mapColorTranslate[_2003CLR_TBB_BK_COMBINED_BOTTOM] = InstallColor( RGB(172, 170, 194) );
  3066. m_mapColorTranslate[_2003CLR_BTN_HOVER_LEFT] = InstallColor( RGB(255, 245, 204) );
  3067. m_mapColorTranslate[_2003CLR_BTN_HOVER_RIGHT] = InstallColor( RGB(255, 219, 117) );
  3068. m_mapColorTranslate[_2003CLR_BTN_PRESSED_LEFT] = InstallColor( RGB(255, 245, 204) );
  3069. m_mapColorTranslate[_2003CLR_BTN_PRESSED_RIGHT] = InstallColor( RGB(255, 219, 117) );
  3070. m_mapColorTranslate[_2003CLR_BTN_HP_LEFT] = InstallColor( RGB(252, 151, 61) );
  3071. m_mapColorTranslate[_2003CLR_BTN_HP_RIGHT] = InstallColor( RGB(255, 184, 94) );
  3072. m_mapColorTranslate[CLR_3DFACE_IN] = InstallColor( RGB(220, 226, 232) );
  3073. m_mapColorTranslate[XPCLR_MENU_BORDER] = InstallColor( RGB(167, 171, 176) );
  3074. m_mapColorTranslate[XPCLR_HILIGHT_BORDER] = InstallColor( RGB(255, 189, 105) );
  3075. m_mapColorTranslate[XPCLR_HILIGHT_BORDER_SELECTED] = m_mapColorTranslate[XPCLR_HILIGHT_BORDER]; 
  3076. m_mapColorTranslate[_2003CLR_EXPBTN_CIRCLE_LIGHT] = InstallColor( RGB(249, 249, 255) );
  3077. m_mapColorTranslate[_2003CLR_EXPBTN_CIRCLE_DARK] = InstallColor( RGB(159, 157, 185) );
  3078. m_mapColorTranslate[COLOR_3DSHADOW] = InstallColor( RGB(141,141,141) );
  3079. m_mapColorTranslate[XPCLR_3DFACE_FLOAT_R] = InstallColor( RGB(219, 218, 228) );
  3080. m_mapColorTranslate[XPCLR_3DFACE_FLOAT_F] = InstallColor( RGB(219, 218, 228) );
  3081. m_mapColorTranslate[XPCLR_TEXT_FIELD_BORDER_NORMAL] = InstallColor( m_arrClrComboBoxBorder[0] );
  3082. m_mapColorTranslate[XPCLR_TEXT_FIELD_BORDER_DISABLED] = InstallColor( m_arrClrComboBoxBorder[3] );
  3083. m_mapColorTranslate[_2003CLR_GRADIENT_LIGHT] = InstallColor( RGB(189, 189, 189) );
  3084. m_mapColorTranslate[_2003CLR_GRADIENT_DARK] = InstallColor( RGB(145, 145, 145) );
  3085. int nTextColorIndex = InstallColor( RGB(57,60,63) );
  3086. m_mapColorTranslate[CLR_MENUTEXT_IN] = nTextColorIndex;
  3087. m_mapColorTranslate[CLR_MENUTEXT_OUT] = nTextColorIndex;
  3088. m_mapColorTranslate[CLR_TEXT_IN] = nTextColorIndex;
  3089. m_mapColorTranslate[CLR_TEXT_OUT] = nTextColorIndex;
  3090. m_mapColorTranslate[COLOR_MENUTEXT] = nTextColorIndex;
  3091. m_mapColorTranslate[CLR_TEXT_DISABLED] = InstallColor( RGB(141,141,141) );
  3092. }
  3093. void CExtPaintManagerOffice2010_Impl::PaintPushButtonMdiRight(
  3094. CDC & dc,
  3095. CExtPaintManager::PAINTPUSHBUTTONDATA & _ppbd
  3096. )
  3097. {
  3098. ASSERT_VALID( this );
  3099. ASSERT( dc.GetSafeHdc() != NULL );
  3100. #if (!defined __EXT_MFC_NO_RIBBON_BAR)
  3101. if( _ppbd.m_pHelperSrc != NULL )
  3102. {
  3103. CExtBarMdiRightButton * pTBB = DYNAMIC_DOWNCAST( CExtBarMdiRightButton, _ppbd.m_pHelperSrc );
  3104. if( pTBB != NULL )
  3105. {
  3106. CExtToolControlBar * pBar = pTBB->GetSafeBar();
  3107. if( pBar != NULL )
  3108. {
  3109. CExtRibbonBar * pRibbonBar = DYNAMIC_DOWNCAST( CExtRibbonBar, pBar );
  3110. if( pRibbonBar != NULL
  3111. && pRibbonBar->m_pExtNcFrameImpl != NULL
  3112. // && pRibbonBar->m_pExtNcFrameImpl->NcFrameImpl_IsDwmCaptionReplacement()
  3113. )
  3114. {
  3115. _ppbd.m_pIcon = NULL;
  3116. CExtCmdIcon * pIcon = NULL;
  3117. switch( _ppbd.m_nHelperSysCmdID )
  3118. {
  3119. case SC_MINIMIZE:
  3120. pIcon = &m_arrMdiRightIcons[0];
  3121. break;
  3122. case SC_MAXIMIZE:
  3123. case SC_RESTORE:
  3124. pIcon = &m_arrMdiRightIcons[1];
  3125. break;
  3126. case SC_CLOSE:
  3127. pIcon = &m_arrMdiRightIcons[2];
  3128. break;
  3129. }
  3130. if( pIcon != NULL )
  3131. {
  3132. static const CRect g_rcInf( 3, 3, 1, 1 );
  3133. _ppbd.m_rcClient.InflateRect( &g_rcInf );
  3134. Ribbon_PaintPushButton( dc, _ppbd );
  3135. _ppbd.m_rcClient.DeflateRect( &g_rcInf );
  3136. CRect rectCaption = _ppbd.m_rcClient;
  3137. rectCaption.DeflateRect( _ppbd.m_rcBorderSizes );
  3138. CRect rectClient( rectCaption );
  3139. CRect rcFocus( rectCaption );
  3140. if( rectClient.bottom > rectClient.top
  3141. && rectClient.right > rectClient.left
  3142. )
  3143. {
  3144. _ppbd.m_pIcon = pIcon;
  3145. PaintPushButtonIcon( dc, rectCaption, rectCaption, rcFocus, _ppbd );
  3146. _ppbd.m_pIcon = NULL;
  3147. }
  3148. return;
  3149. }
  3150. }
  3151. }
  3152. }
  3153. }
  3154. #endif // (!defined __EXT_MFC_NO_RIBBON_BAR)
  3155. CExtPaintManagerOffice2007_Impl::PaintPushButtonMdiRight( dc, _ppbd );
  3156. }
  3157. CExtPaintManagerOffice2007_R2_LunaBlue::CExtPaintManagerOffice2007_R2_LunaBlue()
  3158. {
  3159. m_clrFillHint = RGB(191,219,255);
  3160. m_clrAccentHint = RGB(255,200,91);
  3161. m_clrIconAlphaColor = RGB(191,219,255);
  3162. m_clrDCA1 = RGB(136,170,214);
  3163. m_clrDCA2 = RGB(86,125,176);
  3164. m_clrDCA3 = RGB(101,145,205);
  3165. m_bDocumentClientAreaBkgndR2 = true;
  3166. VERIFY( m_bmpDCA.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_DCA_LUNA_BLUE) ) );
  3167. m_clrCustomDropDownGlyphEnabled = RGB(0,0,0);
  3168. m_clrCustomDropDownGlyphDisabled = RGB(141,141,141);
  3169. m_clrDockingFrameDark = m_clrFloatingToolbarGripperSolid = RGB(49,101,165);
  3170. m_clrDockingFrameCaptionTextActive = RGB(21,74,147);
  3171. m_clrDockingFrameCaptionTextInactive = RGB(21,74,147);
  3172. m_clrDockingFrameCaptionTextFloatingFixed = RGB(255,255,255);
  3173. m_clrDockingCaptionShapeFixedNormal =  RGB(255,255,255);
  3174. m_rcNcFrameBordersActive.SetRect( 3, 4, 3, 2 );
  3175. m_rcNcFrameBordersInactive.SetRect( 3, 4, 3, 2 );
  3176. m_nCaptionHeightActive = m_nCaptionHeightInactive = 26;
  3177. VERIFY( m_bmpNcFrameActive.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_NC_FRAME_ACTIVE_LUNA_BLUE) ) );
  3178. VERIFY( m_bmpNcFrameInactive.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_NC_FRAME_INACTIVE_LUNA_BLUE) ) );
  3179. VERIFY( m_bmpNcFrameActive.Make32() );
  3180. VERIFY( m_bmpNcFrameInactive.Make32() );
  3181. m_bmpNcFrameActive.AlphaColor( m_clrTransparentNcFrameActive, RGB(0,0,0), 0 );
  3182. m_bmpNcFrameInactive.AlphaColor( m_clrTransparentNcFrameInactive, RGB(0,0,0), 0 );
  3183. m_clrNcFrameTextActive = RGB(62,106,170); // = RGB(105,112,121); // RGB(62,106,170);
  3184. m_clrNcFrameTextInactive = RGB(105,112,121); // RGB(62,106,170);
  3185. VERIFY( m_bmpNcButtonBkHover.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_NC_BUTTON_BK_HOVER_LUNA_BLUE) ) );
  3186. VERIFY( m_bmpNcButtonBkPressed.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_NC_BUTTON_BK_PRESSED_LUNA_BLUE) ) );
  3187. VERIFY( m_bmpArrNcButtonsHelp.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_NC_ARR_HELP_LUNA_BLUE) ) );
  3188. VERIFY( m_bmpArrNcButtonsClose.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_NC_ARR_CLOSE_LUNA_BLUE) ) );
  3189. VERIFY( m_bmpArrNcButtonsMaximize.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_NC_ARR_MAXIMIZE_LUNA_BLUE) ) );
  3190. VERIFY( m_bmpArrNcButtonsRestore.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_NC_ARR_RESTORE_LUNA_BLUE) ) );
  3191. VERIFY( m_bmpArrNcButtonsMinimize.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_NC_ARR_MINIMIZE_LUNA_BLUE) ) );
  3192. #if (!defined __EXT_MFC_NO_STATUSBAR)
  3193. m_rcStatusBkPadding.SetRect( 0, 1, 0, 1 );
  3194. VERIFY( m_bmpStatusBkLight.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_STATUSBAR_BK_LIGHT_LUNA_BLUE) ) );
  3195. VERIFY( m_bmpStatusBkDark.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_STATUSBAR_BK_DARK_LUNA_BLUE) ) );
  3196. m_rcStatusSeparatorPadding.SetRect( 0, 1, 0, 1 );
  3197. VERIFY( m_bmpStatusSeparator.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_STATUSBAR_SEPARATOR_LUNA_BLUE) ) );
  3198. // VERIFY( m_bmpStatusSeparator.Make32() );
  3199. // m_bmpStatusSeparator.AdjustAlpha( -0.75 );
  3200. #endif // (!defined __EXT_MFC_NO_STATUSBAR)
  3201. #if (!defined __EXT_MFC_NO_TAB_CTRL)
  3202. m_clrTabTextNormal = m_clrTabTextSelected = RGB(22,22,100);
  3203. m_nIdxTabShapeHover = 1;
  3204. m_nIdxTabShapePressed = 2;
  3205. m_nIdxTabShapeSelected = 3;
  3206. m_nIdxTabShapeSelectedHover = 4;
  3207. m_arrSizeTabShape[__ETSOI_TOP].cx
  3208. = m_arrSizeTabShape[__ETSOI_BOTTOM].cx
  3209. = m_arrSizeTabShape[__ETSOI_LEFT].cy
  3210. = m_arrSizeTabShape[__ETSOI_RIGHT].cy
  3211. = 57;
  3212. m_arrSizeTabShape[__ETSOI_TOP].cy
  3213. = m_arrSizeTabShape[__ETSOI_BOTTOM].cy
  3214. = m_arrSizeTabShape[__ETSOI_LEFT].cx
  3215. = m_arrSizeTabShape[__ETSOI_RIGHT].cx
  3216. = 24;
  3217. m_arrRectTabShapePadding[__ETSOI_TOP].SetRect( 6, 3, 6, 3 );
  3218. m_arrRectTabShapePadding[__ETSOI_BOTTOM].SetRect( 6, 3, 6, 3 );
  3219. m_arrRectTabShapePadding[__ETSOI_LEFT].SetRect( 3, 6, 3, 6 );
  3220. m_arrRectTabShapePadding[__ETSOI_RIGHT].SetRect( 3, 6, 3, 6 );
  3221. VERIFY(
  3222. m_arrBmpTabShapeNormal[__ETSOI_TOP].LoadBMP_Resource(
  3223. MAKEINTRESOURCE( IDB_EXT_2007_TAB_SHAPE_ARR_LUNA_BLUE )
  3224. )
  3225. );
  3226. VERIFY( m_arrBmpTabShapeNormal[__ETSOI_TOP].Make32() );
  3227. m_arrBmpTabShapeNormal[__ETSOI_TOP].PreMultipliedRGBChannelsSet( true );
  3228. VERIFY(
  3229. m_arrBmpTabShapeNormal[__ETSOI_BOTTOM].CreateRotated9xStack(
  3230. m_arrBmpTabShapeNormal[__ETSOI_TOP],
  3231. 180,
  3232. 5,
  3233. m_arrSizeTabShape[__ETSOI_TOP].cx,
  3234. m_arrSizeTabShape[__ETSOI_TOP].cy,
  3235. false,
  3236. false
  3237. )
  3238. );
  3239. VERIFY(
  3240. m_arrBmpTabShapeNormal[__ETSOI_LEFT].CreateRotated9xStack(
  3241. m_arrBmpTabShapeNormal[__ETSOI_TOP],
  3242. 270,
  3243. 5,
  3244. m_arrSizeTabShape[__ETSOI_TOP].cx,
  3245. m_arrSizeTabShape[__ETSOI_TOP].cy,
  3246. false,
  3247. false
  3248. )
  3249. );
  3250. VERIFY(
  3251. m_arrBmpTabShapeNormal[__ETSOI_RIGHT].CreateRotated9xStack(
  3252. m_arrBmpTabShapeNormal[__ETSOI_TOP],
  3253. 90,
  3254. 5,
  3255. m_arrSizeTabShape[__ETSOI_TOP].cx,
  3256. m_arrSizeTabShape[__ETSOI_TOP].cy,
  3257. false,
  3258. false
  3259. )
  3260. );
  3261. VERIFY(
  3262. m_arrBmpTabShapeSelArea[__ETSOI_TOP].LoadBMP_Resource(
  3263. MAKEINTRESOURCE( IDB_EXT_2007_TAB_SHAPE_ARR_LUNA_BLUE_SEL_AREA )
  3264. )
  3265. );
  3266. VERIFY( m_arrBmpTabShapeSelArea[__ETSOI_TOP].Make32() );
  3267. m_arrBmpTabShapeSelArea[__ETSOI_TOP].PreMultipliedRGBChannelsSet( true );
  3268. VERIFY(
  3269. m_arrBmpTabShapeSelArea[__ETSOI_BOTTOM].CreateRotated9xStack(
  3270. m_arrBmpTabShapeSelArea[__ETSOI_TOP],
  3271. 180,
  3272. 5,
  3273. m_arrSizeTabShape[__ETSOI_TOP].cx,
  3274. m_arrSizeTabShape[__ETSOI_TOP].cy,
  3275. false,
  3276. false
  3277. )
  3278. );
  3279. VERIFY(
  3280. m_arrBmpTabShapeSelArea[__ETSOI_LEFT].CreateRotated9xStack(
  3281. m_arrBmpTabShapeSelArea[__ETSOI_TOP],
  3282. 270,
  3283. 5,
  3284. m_arrSizeTabShape[__ETSOI_TOP].cx,
  3285. m_arrSizeTabShape[__ETSOI_TOP].cy,
  3286. false,
  3287. false
  3288. )
  3289. );
  3290. VERIFY(
  3291. m_arrBmpTabShapeSelArea[__ETSOI_RIGHT].CreateRotated9xStack(
  3292. m_arrBmpTabShapeSelArea[__ETSOI_TOP],
  3293. 90,
  3294. 5,
  3295. m_arrSizeTabShape[__ETSOI_TOP].cx,
  3296. m_arrSizeTabShape[__ETSOI_TOP].cy,
  3297. false,
  3298. false
  3299. )
  3300. );
  3301. m_arrRectTabAreaPadding[__ETSOI_TOP].SetRect( 3, 3, 3, 3 );
  3302. m_arrRectTabAreaPadding[__ETSOI_BOTTOM].SetRect( 3, 3, 3, 3 );
  3303. m_arrRectTabAreaPadding[__ETSOI_LEFT].SetRect( 3, 3, 3, 3 );
  3304. m_arrRectTabAreaPadding[__ETSOI_RIGHT].SetRect( 3, 3, 3, 3 );
  3305. m_arrTabAreaMargins[__ETSOI_TOP] = 1;
  3306. m_arrTabAreaMargins[__ETSOI_BOTTOM] = 1;
  3307. m_arrTabAreaMargins[__ETSOI_LEFT] = 1;
  3308. m_arrTabAreaMargins[__ETSOI_RIGHT] = 1;
  3309. VERIFY(
  3310. m_arrBmpTabArea[__ETSOI_TOP].LoadBMP_Resource(
  3311. MAKEINTRESOURCE( IDB_EXT_2007_TAB_AREA_BK_LUNA_BLUE )
  3312. )
  3313. );
  3314. VERIFY( m_arrBmpTabArea[__ETSOI_TOP].Make32() );
  3315. CSize _sizeTabArea = m_arrBmpTabArea[__ETSOI_TOP].GetSize();
  3316. m_arrBmpTabArea[__ETSOI_TOP].PreMultipliedRGBChannelsSet( true );
  3317. VERIFY(
  3318. m_arrBmpTabArea[__ETSOI_BOTTOM].CreateRotated9xStack(
  3319. m_arrBmpTabArea[__ETSOI_TOP],
  3320. 180,
  3321. 1,
  3322. _sizeTabArea.cx,
  3323. _sizeTabArea.cy,
  3324. false,
  3325. false
  3326. )
  3327. );
  3328. VERIFY(
  3329. m_arrBmpTabArea[__ETSOI_LEFT].CreateRotated9xStack(
  3330. m_arrBmpTabArea[__ETSOI_TOP],
  3331. 270,
  3332. 1,
  3333. _sizeTabArea.cx,
  3334. _sizeTabArea.cy,
  3335. false,
  3336. false
  3337. )
  3338. );
  3339. VERIFY(
  3340. m_arrBmpTabArea[__ETSOI_RIGHT].CreateRotated9xStack(
  3341. m_arrBmpTabArea[__ETSOI_TOP],
  3342. 90,
  3343. 1,
  3344. _sizeTabArea.cx,
  3345. _sizeTabArea.cy,
  3346. false,
  3347. false
  3348. )
  3349. );
  3350. m_arrSizeTabSeparator[__ETSOI_TOP].cx
  3351. = m_arrSizeTabSeparator[__ETSOI_BOTTOM].cx
  3352. = m_arrSizeTabSeparator[__ETSOI_LEFT].cy
  3353. = m_arrSizeTabSeparator[__ETSOI_RIGHT].cy
  3354. = 1;
  3355. m_arrSizeTabSeparator[__ETSOI_TOP].cy
  3356. = m_arrSizeTabSeparator[__ETSOI_BOTTOM].cy
  3357. = m_arrSizeTabSeparator[__ETSOI_LEFT].cx
  3358. = m_arrSizeTabSeparator[__ETSOI_RIGHT].cx
  3359. = 24;
  3360. m_arrRectTabSeparatorPadding[__ETSOI_TOP].SetRect( 0, 2, 0, 2 );
  3361. m_arrRectTabSeparatorPadding[__ETSOI_BOTTOM].SetRect( 0, 2, 0, 2 );
  3362. m_arrRectTabSeparatorPadding[__ETSOI_LEFT].SetRect( 2, 0, 2, 0 );
  3363. m_arrRectTabSeparatorPadding[__ETSOI_RIGHT].SetRect( 2, 0, 2, 0 );
  3364. VERIFY(
  3365. m_arrBmpTabSeparator[__ETSOI_TOP].LoadBMP_Resource(
  3366. MAKEINTRESOURCE( IDB_EXT_2007_TAB_SEPARATOR_LUNA_BLUE )
  3367. )
  3368. );
  3369. VERIFY( m_arrBmpTabSeparator[__ETSOI_TOP].Make32() );
  3370. m_arrBmpTabSeparator[__ETSOI_TOP].PreMultiplyRGBChannels();
  3371. m_arrBmpTabSeparator[__ETSOI_TOP].PreMultipliedRGBChannelsSet( true );
  3372. VERIFY(
  3373. m_arrBmpTabSeparator[__ETSOI_BOTTOM].CreateRotated9xStack(
  3374. m_arrBmpTabSeparator[__ETSOI_TOP],
  3375. 180,
  3376. 1,
  3377. m_arrSizeTabSeparator[__ETSOI_TOP].cx,
  3378. m_arrSizeTabSeparator[__ETSOI_TOP].cy,
  3379. false,
  3380. false
  3381. )
  3382. );
  3383. VERIFY(
  3384. m_arrBmpTabSeparator[__ETSOI_LEFT].CreateRotated9xStack(
  3385. m_arrBmpTabSeparator[__ETSOI_TOP],
  3386. 270,
  3387. 1,
  3388. m_arrSizeTabSeparator[__ETSOI_TOP].cx,
  3389. m_arrSizeTabSeparator[__ETSOI_TOP].cy,
  3390. false,
  3391. false
  3392. )
  3393. );
  3394. VERIFY(
  3395. m_arrBmpTabSeparator[__ETSOI_RIGHT].CreateRotated9xStack(
  3396. m_arrBmpTabSeparator[__ETSOI_TOP],
  3397. 90,
  3398. 1,
  3399. m_arrSizeTabSeparator[__ETSOI_TOP].cx,
  3400. m_arrSizeTabSeparator[__ETSOI_TOP].cy,
  3401. false,
  3402. false
  3403. )
  3404. );
  3405. #endif // (!defined __EXT_MFC_NO_TAB_CTRL)
  3406. VERIFY(
  3407. m_bmpArrStatesCheckBox.LoadBMP_Resource(
  3408. MAKEINTRESOURCE( IDB_EXT_2007_CHECK_BOX_R2_LUNA_BLUE )
  3409. )
  3410. );
  3411. VERIFY(
  3412. m_bmpArrStatesRadioButton.LoadBMP_Resource(
  3413. MAKEINTRESOURCE( IDB_EXT_2007_RADIO_BUTTON_R2 )
  3414. )
  3415. );
  3416. m_clrMenuItemLeftAreaMarginL = RGB(197,197,197);
  3417. m_clrMenuItemLeftAreaMarginR = RGB(245,245,245);
  3418. VERIFY(
  3419. m_bmpMenuItemLargeLeft.LoadBMP_Resource(
  3420. MAKEINTRESOURCE( IDB_EXT_2007_MENU_ITEM_R2_LARGE_LEFT )
  3421. )
  3422. );
  3423. m_bmpMenuItemLargeLeft.PreMultipliedRGBChannelsSet( true );
  3424. VERIFY(
  3425. m_bmpMenuItemLargeRight.LoadBMP_Resource(
  3426. MAKEINTRESOURCE( IDB_EXT_2007_MENU_ITEM_R2_LARGE_RIGHT )
  3427. )
  3428. );
  3429. m_bmpMenuItemLargeRight.PreMultipliedRGBChannelsSet( true );
  3430. VERIFY(
  3431. m_bmpMenuItemSmallLeft.LoadBMP_Resource(
  3432. MAKEINTRESOURCE( IDB_EXT_2007_MENU_ITEM_R2_SMALL_LEFT )
  3433. )
  3434. );
  3435. m_bmpMenuItemSmallLeft.PreMultipliedRGBChannelsSet( true );
  3436. VERIFY(
  3437. m_bmpMenuItemSmallRight.LoadBMP_Resource(
  3438. MAKEINTRESOURCE( IDB_EXT_2007_MENU_ITEM_R2_SMALL_RIGHT )
  3439. )
  3440. );
  3441. m_bmpMenuItemSmallRight.PreMultipliedRGBChannelsSet( true );
  3442. VERIFY(
  3443. m_bmpMenuArrow.LoadBMP_Resource(
  3444. MAKEINTRESOURCE( IDB_EXT_2007_MENU_ITEM_ARROW )
  3445. )
  3446. );
  3447. m_sizeMenuCheckAreaChecked.cx = 16;
  3448. m_sizeMenuCheckAreaChecked.cy = 16;
  3449. m_sizeMenuCheckAreaUnchecked.cx = 20;
  3450. m_sizeMenuCheckAreaUnchecked.cy = 20;
  3451. m_arrRectMenuCheckAreaCheckedPadding[0].SetRect( 1, 1, 1, 1 );
  3452. m_arrRectMenuCheckAreaCheckedPadding[1].SetRect( 1, 1, 1, 1 );
  3453. m_arrRectMenuCheckAreaUncheckedPadding[0].SetRect( 2, 2, 2, 2 );
  3454. m_arrRectMenuCheckAreaUncheckedPadding[1].SetRect( 2, 2, 2, 2 );
  3455. VERIFY( m_bmpMenuCheckAreaChecked.LoadBMP_Resource(   MAKEINTRESOURCE( IDB_EXT_2007_MENU_CHECK_AREA_CHECKED_R2   ) ) );
  3456. VERIFY( m_bmpMenuCheckAreaUnchecked.LoadBMP_Resource( MAKEINTRESOURCE( IDB_EXT_2007_MENU_CHECK_AREA_UNCHECKED_R2 ) ) );
  3457. #if (!defined __EXT_MFC_NO_PAGE_NAVIGATOR )
  3458. m_arrClrPnCaptNormal[0]  = RGB(227,239,255);
  3459. m_arrClrPnCaptNormal[1]  = RGB(197,222,255);
  3460. m_arrClrPnCaptNormal[2]  = RGB(173,209,255);
  3461. m_arrClrPnCaptNormal[3]  = RGB(193,220,255);
  3462. m_arrClrPnSplitter[0]    = RGB(255,255,255);
  3463. m_arrClrPnSplitter[1]    = RGB(182,214,255);
  3464. m_clrPnSplitterDots  = RGB(101,147,207);
  3465. m_clrPnCaptText  = RGB(21,66,139);
  3466. m_arrClrPnItemText[0]    = RGB(0,0,0);
  3467. m_arrClrPnItemText[1]    = RGB(32,77,137);
  3468. m_clrPnConfigButton  = RGB(67,113,176); 
  3469. #endif // (!defined __EXT_MFC_NO_PAGE_NAVIGATOR )
  3470. VERIFY( m_bmpArrComboBoxDropDown.LoadBMP_Resource( MAKEINTRESOURCE( IDB_EXT_2007_COMBO_BOX_BUTTON_R2_LUNA_BLUE ) ) );
  3471. m_arrClrComboBoxBorder[0] = RGB(171,193,222);
  3472. m_arrClrComboBoxBorder[1] = RGB(179,199,225);
  3473. m_arrClrComboBoxBorder[2] = RGB(179,199,225);
  3474. m_arrClrComboBoxBorder[3] = RGB(171,193,222);
  3475. CRect SbSkinDataPaddingH( 5, 3, 5, 3 ), SbSkinDataPaddingV( 3, 5, 3, 5 );
  3476. CRect rcEntirePaddingRH( 0, 2, 0, 2 ), rcEntirePaddingRV( 2, 0, 2, 0 );
  3477. CRect rcEntirePaddingCH( 1, 1, 1, 1 ), rcEntirePaddingCV( 1, 1, 1, 1 );
  3478. m_SbSkinDataT_Zoom.Load2007_Zoom(
  3479. IDB_EXT_2007_ZS_PLUS_R2_LUNA_BLUE, IDB_EXT_2007_ZS_MINUS_R2_LUNA_BLUE, IDB_EXT_2007_ZS_THUMB_R2_LUNA_BLUE,
  3480. RGB(222,226,236), RGB(116,150,194), RGB(179,200,230), RGB(127,164,211), AFX_IDW_DOCKBAR_TOP
  3481. );
  3482. m_SbSkinDataB_Zoom.Load2007_Zoom(
  3483. IDB_EXT_2007_ZS_PLUS_R2_LUNA_BLUE, IDB_EXT_2007_ZS_MINUS_R2_LUNA_BLUE, IDB_EXT_2007_ZS_THUMB_R2_LUNA_BLUE,
  3484. RGB(222,226,236), RGB(116,150,194), RGB(179,200,230), RGB(127,164,211), AFX_IDW_DOCKBAR_BOTTOM
  3485. );
  3486. m_SbSkinDataL_Zoom.Load2007_Zoom(
  3487. IDB_EXT_2007_ZS_PLUS_R2_LUNA_BLUE, IDB_EXT_2007_ZS_MINUS_R2_LUNA_BLUE, IDB_EXT_2007_ZS_THUMB_R2_LUNA_BLUE,
  3488. RGB(222,226,236), RGB(116,150,194), RGB(179,200,230), RGB(127,164,211), AFX_IDW_DOCKBAR_LEFT
  3489. );
  3490. m_SbSkinDataR_Zoom.Load2007_Zoom(
  3491. IDB_EXT_2007_ZS_PLUS_R2_LUNA_BLUE, IDB_EXT_2007_ZS_MINUS_R2_LUNA_BLUE, IDB_EXT_2007_ZS_THUMB_R2_LUNA_BLUE,
  3492. RGB(222,226,236), RGB(116,150,194), RGB(179,200,230), RGB(127,164,211), AFX_IDW_DOCKBAR_RIGHT
  3493. );
  3494. m_SbSkinDataH_Light.Load2007_R2(
  3495. IDB_EXT_2007_SCROLL_BAR_STACK_BUTTONS_R2_HORZ_LUNA_BLUE,
  3496. 15,
  3497. IDB_EXT_2007_SCROLL_BAR_STACK_GRIPPER_R2_HORZ,
  3498. 8,
  3499. SbSkinDataPaddingH,
  3500. COLORREF(-1L), // RGB(117,150,192),
  3501. COLORREF(-1L), // RGB(91,99,116),
  3502. IDB_EXT_2007_SCROLL_BAR_ARROW_UP_NORMAL_R2,
  3503. IDB_EXT_2007_SCROLL_BAR_ARROW_UP_DISABLED_R2,
  3504. IDB_EXT_2007_SCROLL_BAR_ARROW_DOWN_NORMAL_R2,
  3505. IDB_EXT_2007_SCROLL_BAR_ARROW_DOWN_DISABLED_R2,
  3506. true,
  3507. IDB_EXT_2007_SCROLL_BAR_ENTIRE_BK_R2_LUNA_BLUE_LIGHT,
  3508. IDB_EXT_2007_SCROLL_BAR_PAGE_BK_R2_LUNA_BLUE_LIGHT,
  3509. rcEntirePaddingRH,
  3510. rcEntirePaddingCH
  3511. );
  3512. m_SbSkinDataV_Light.Load2007_R2(
  3513. IDB_EXT_2007_SCROLL_BAR_STACK_BUTTONS_R2_VERT_LUNA_BLUE,
  3514. 21,
  3515. IDB_EXT_2007_SCROLL_BAR_STACK_GRIPPER_R2_VERT,
  3516. 8,
  3517. SbSkinDataPaddingV,
  3518. COLORREF(-1L), // RGB(117,150,192),
  3519. COLORREF(-1L), // RGB(91,99,116),
  3520. IDB_EXT_2007_SCROLL_BAR_ARROW_UP_NORMAL_R2,
  3521. IDB_EXT_2007_SCROLL_BAR_ARROW_UP_DISABLED_R2,
  3522. IDB_EXT_2007_SCROLL_BAR_ARROW_DOWN_NORMAL_R2,
  3523. IDB_EXT_2007_SCROLL_BAR_ARROW_DOWN_DISABLED_R2,
  3524. false,
  3525. IDB_EXT_2007_SCROLL_BAR_ENTIRE_BK_R2_LUNA_BLUE_LIGHT,
  3526. IDB_EXT_2007_SCROLL_BAR_PAGE_BK_R2_LUNA_BLUE_LIGHT,
  3527. rcEntirePaddingRV,
  3528. rcEntirePaddingCV
  3529. );
  3530. m_SbSkinDataH_Dark.Load2007_R2(
  3531. IDB_EXT_2007_SCROLL_BAR_STACK_BUTTONS_R2_HORZ_LUNA_BLUE,
  3532. 15,
  3533. IDB_EXT_2007_SCROLL_BAR_STACK_GRIPPER_R2_HORZ,
  3534. 8,
  3535. SbSkinDataPaddingH,
  3536. COLORREF(-1L), // RGB(117,150,192),
  3537. COLORREF(-1L), // RGB(91,99,116),
  3538. IDB_EXT_2007_SCROLL_BAR_ARROW_UP_NORMAL_R2,
  3539. IDB_EXT_2007_SCROLL_BAR_ARROW_UP_DISABLED_R2,
  3540. IDB_EXT_2007_SCROLL_BAR_ARROW_DOWN_NORMAL_R2,
  3541. IDB_EXT_2007_SCROLL_BAR_ARROW_DOWN_DISABLED_R2,
  3542. true,
  3543. IDB_EXT_2007_SCROLL_BAR_ENTIRE_BK_R2_LUNA_BLUE_DARK,
  3544. IDB_EXT_2007_SCROLL_BAR_PAGE_BK_R2_LUNA_BLUE_DARK,
  3545. rcEntirePaddingRH,
  3546. rcEntirePaddingCH
  3547. );
  3548. m_SbSkinDataV_Dark.Load2007_R2(
  3549. IDB_EXT_2007_SCROLL_BAR_STACK_BUTTONS_R2_VERT_LUNA_BLUE,
  3550. 21,
  3551. IDB_EXT_2007_SCROLL_BAR_STACK_GRIPPER_R2_VERT,
  3552. 8,
  3553. SbSkinDataPaddingV,
  3554. COLORREF(-1L), // RGB(117,150,192),
  3555. COLORREF(-1L), // RGB(91,99,116),
  3556. IDB_EXT_2007_SCROLL_BAR_ARROW_UP_NORMAL_R2,
  3557. IDB_EXT_2007_SCROLL_BAR_ARROW_UP_DISABLED_R2,
  3558. IDB_EXT_2007_SCROLL_BAR_ARROW_DOWN_NORMAL_R2,
  3559. IDB_EXT_2007_SCROLL_BAR_ARROW_DOWN_DISABLED_R2,
  3560. false,
  3561. IDB_EXT_2007_SCROLL_BAR_ENTIRE_BK_R2_LUNA_BLUE_DARK,
  3562. IDB_EXT_2007_SCROLL_BAR_PAGE_BK_R2_LUNA_BLUE_DARK,
  3563. rcEntirePaddingRV,
  3564. rcEntirePaddingCV
  3565. );
  3566. m_clrGridHeaderBkTop     = RGB(252,253,255);
  3567. m_clrGridHeaderBkBottom  = RGB(197,222,255);
  3568. m_clrGridHeaderSeparator = RGB(154,198,255);
  3569. m_clrGridHeaderSortArrow = RGB(154,198,255);
  3570. m_clrGridHeaderBorder    = RGB(154,198,255);
  3571. m_clrRgHeaderBkTop     = RGB(252,253,255);
  3572. m_clrRgHeaderBkBottom  = RGB(197,222,255);
  3573. m_clrRgHeaderSeparator = RGB(154,198,255);
  3574. m_clrRgHeaderSortArrow = RGB(154,198,255);
  3575. m_clrRgHeaderText      = RGB(0,0,0);
  3576. m_clrRgHeaderBorder    = RGB(101,147,207);
  3577. #if (!defined __EXT_MFC_NO_REPORTGRIDWND)
  3578. m_clrRgGroupAreaBk     = RGB(213,228,242);
  3579. m_clrRgGroupAreaText   = RGB(21,74,147);
  3580. #endif // (!defined __EXT_MFC_NO_REPORTGRIDWND)
  3581. //   m_nTbbLightWeightSimpleGlyphHeightV = 20;
  3582. //   m_nTbbLightWeightSDDLeftGlyphHeightV = 23;
  3583. //  m_nTbbLightWeightSDDRightGlyphHeightV = 10;
  3584. //  VERIFY(
  3585. //  m_arrBmpTbbLightWeightSimpleH.LoadBMP_Resource(
  3586. //  MAKEINTRESOURCE(IDB_EXT_2007_TBB_LIGHTWEIGHT_R2_SIMPLE )
  3587. //  )
  3588. //  );
  3589. //  VERIFY(
  3590. //  m_arrBmpTbbLightWeightSDDLeftH.LoadBMP_Resource(
  3591. //  MAKEINTRESOURCE(IDB_EXT_2007_TBB_LIGHTWEIGHT_R2_LEFT_PART )
  3592. //  )
  3593. //  );
  3594. //  VERIFY(
  3595. //  m_arrBmpTbbLightWeightSDDRightH.LoadBMP_Resource(
  3596. //  MAKEINTRESOURCE(IDB_EXT_2007_TBB_LIGHTWEIGHT_R2_RIGHT_PART )
  3597. //  )
  3598. //  );
  3599. //  //  m_arrBmpTbbLightWeightSimpleH.PreMultipliedRGBChannelsSet( true );
  3600. //  //  m_arrBmpTbbLightWeightSDDLeftH.PreMultipliedRGBChannelsSet( true );
  3601. //  //  m_arrBmpTbbLightWeightSDDRightH.PreMultipliedRGBChannelsSet( true );
  3602. //  VERIFY(
  3603. //  m_arrBmpTbbLightWeightSimpleV.CreateRotated9xStack(
  3604. //  m_arrBmpTbbLightWeightSimpleH,
  3605. //  90,
  3606. //  INT(__EPBGT_GLYPH_COUNT),
  3607. //  m_arrBmpTbbLightWeightSimpleH.GetSize().cx,
  3608. //  m_nTbbLightWeightSimpleGlyphHeightH,
  3609. //  false,
  3610. //  false
  3611. //  )
  3612. //  );
  3613. //  VERIFY(
  3614. //  m_arrBmpTbbLightWeightSDDLeftV.CreateRotated9xStack(
  3615. //  m_arrBmpTbbLightWeightSDDLeftH,
  3616. //  90,
  3617. //  INT(__EPBGT_GLYPH_COUNT),
  3618. //  m_arrBmpTbbLightWeightSDDLeftH.GetSize().cx,
  3619. //  m_nTbbLightWeightSDDLeftGlyphHeightH,
  3620. //  false,
  3621. //  false
  3622. //  )
  3623. //  );
  3624. //  VERIFY(
  3625. //  m_arrBmpTbbLightWeightSDDRightV.CreateRotated9xStack(
  3626. //  m_arrBmpTbbLightWeightSDDRightH,
  3627. //  90,
  3628. //  INT(__EPBGT_GLYPH_COUNT),
  3629. //  m_arrBmpTbbLightWeightSDDRightH.GetSize().cx,
  3630. //  m_nTbbLightWeightSDDRightGlyphHeightH,
  3631. //  false,
  3632. //  false
  3633. //  )
  3634. //  );
  3635.   m_nPushBtnSimpleGlyphHeightV = 20;
  3636.   m_nPushBtnSDDLeftGlyphHeightV = 23;
  3637. m_nPushBtnSDDRightGlyphHeightV = 10;
  3638. VERIFY(
  3639. m_arrBmpPushBtnSimpleH.LoadBMP_Resource(
  3640. MAKEINTRESOURCE(IDB_EXT_2007_BUTTON_R2_LUNA_BLUE_SIMPLE )
  3641. )
  3642. );
  3643. VERIFY(
  3644. m_arrBmpPushBtnSDDLeftH.LoadBMP_Resource(
  3645. MAKEINTRESOURCE(IDB_EXT_2007_BUTTON_R2_LUNA_BLUE_LEFT_PART )
  3646. )
  3647. );
  3648. VERIFY(
  3649. m_arrBmpPushBtnSDDRightH.LoadBMP_Resource(
  3650. MAKEINTRESOURCE(IDB_EXT_2007_BUTTON_R2_LUNA_BLUE_RIGHT_PART )
  3651. )
  3652. );
  3653. //  m_arrBmpPushBtnSimpleH.PreMultipliedRGBChannelsSet( true );
  3654. //  m_arrBmpPushBtnSDDLeftH.PreMultipliedRGBChannelsSet( true );
  3655. //  m_arrBmpPushBtnSDDRightH.PreMultipliedRGBChannelsSet( true );
  3656. VERIFY(
  3657. m_arrBmpPushBtnSimpleV.CreateRotated9xStack(
  3658. m_arrBmpPushBtnSimpleH,
  3659. 90,
  3660. INT(__EPBGT_GLYPH_COUNT),
  3661. m_arrBmpPushBtnSimpleH.GetSize().cx,
  3662. m_nPushBtnSimpleGlyphHeightH,
  3663. false,
  3664. false
  3665. )
  3666. );
  3667. VERIFY(
  3668. m_arrBmpPushBtnSDDLeftV.CreateRotated9xStack(
  3669. m_arrBmpPushBtnSDDLeftH,
  3670. 90,
  3671. INT(__EPBGT_GLYPH_COUNT),
  3672. m_arrBmpPushBtnSDDLeftH.GetSize().cx,
  3673. m_nPushBtnSDDLeftGlyphHeightH,
  3674. false,
  3675. false
  3676. )
  3677. );
  3678. VERIFY(
  3679. m_arrBmpPushBtnSDDRightV.CreateRotated9xStack(
  3680. m_arrBmpPushBtnSDDRightH,
  3681. 90,
  3682. INT(__EPBGT_GLYPH_COUNT),
  3683. m_arrBmpPushBtnSDDRightH.GetSize().cx,
  3684. m_nPushBtnSDDRightGlyphHeightH,
  3685. false,
  3686. false
  3687. )
  3688. );
  3689. #if (!defined __EXT_MFC_NO_RIBBON_BAR)
  3690. m_nQatbAdditionalSpaceAtRightDWM = 30;
  3691. m_clrContractedMargin1 = RGB(213,226,243);
  3692. m_clrContractedMargin2 = RGB(155,187,227);
  3693. m_nContractedMarginHeight = 2;
  3694. m_bRibbonGroupCaptionAtTop = false;
  3695. m_bRibbonGroupCaptionAreaHasPadding = true;
  3696. m_nRibbonGroupCaptionAreaHeightExpanded = 16;
  3697. m_nRibbonGroupCaptionAreaHeightCollapsed = 16;
  3698. m_nRibbonCaptionPartHeight = 17;
  3699. m_nRibbonGroupIconBkVertOffset = 2;
  3700. m_clrRibbonComboBackGroundNormal = RGB(234,242,251);
  3701. m_nRibbonTabIntersectionHeight = 1;
  3702. m_clrRibbonGroupCaptionTextCollapsed
  3703. = m_clrRibbonButtonNormal
  3704. = RGB( 45, 83, 144 );
  3705. m_clrRibbonButtonDisabled = RGB(128,128,128);
  3706. // m_clrRibbonGroupCaptionTextExpanded = RGB( 45, 83, 115 );
  3707. m_clrRibbonGroupCaptionTextExpanded = RGB( 65, 115, 175 );
  3708. m_nRibbonGroupCaptionTextDF
  3709. = m_nRibbonGroupCaptionTextShadowDF
  3710. = DT_SINGLELINE|DT_CENTER|DT_VCENTER|DT_END_ELLIPSIS;
  3711. m_rcRibbonPageBkPadding.SetRect( 5, 19, 5, 10 );
  3712. VERIFY(
  3713. m_bmpRibbonPageBk.LoadBMP_Resource(
  3714. MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_PAGE_BK_R2_LUNA_BLUE)
  3715. )
  3716. );
  3717. m_bmpRibbonPageBk.PreMultipliedRGBChannelsSet( true );
  3718. m_rcRibbonGroupPaddingBkExpanded.SetRect( 4, 4, 4, 4 );
  3719. VERIFY(
  3720. m_bmpRibbonGroupBkExpanded[0].LoadBMP_Resource(
  3721. MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_GROUP_EXPANDED_NORMAL_BK_R2_LUNA_BLUE)
  3722. )
  3723. );
  3724. VERIFY(
  3725. m_bmpRibbonGroupBkExpanded[1].LoadBMP_Resource(
  3726. MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_GROUP_EXPANDED_HOVER_BK_R2_LUNA_BLUE)
  3727. )
  3728. );
  3729. m_rcRibbonGroupPaddingBkCollapsed.SetRect( 4, 18, 4, 4 );
  3730. VERIFY(
  3731. m_bmpRibbonGroupBkCollapsed[0].LoadBMP_Resource(
  3732. MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_GROUP_COLLAPSED_NORMAL_BK_R2_LUNA_BLUE)
  3733. )
  3734. );
  3735. VERIFY(
  3736. m_bmpRibbonGroupBkCollapsed[1].LoadBMP_Resource(
  3737. MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_GROUP_COLLAPSED_HOVER_BK_R2_LUNA_BLUE)
  3738. )
  3739. );
  3740. VERIFY(
  3741. m_bmpRibbonGroupBkCollapsed[2].LoadBMP_Resource(
  3742. MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_GROUP_COLLAPSED_PRESSED_BK_R2_LUNA_BLUE)
  3743. )
  3744. );
  3745. VERIFY(
  3746. m_bmpRibbonGroupBkCollapsed[3].LoadBMP_Resource(
  3747. MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_GROUP_COLLAPSED_SELECTED_BK_R2)
  3748. )
  3749. );
  3750. INT nBkIndex, nBkCount;
  3751. nBkCount = sizeof( m_bmpRibbonGroupBkExpanded ) / sizeof( m_bmpRibbonGroupBkExpanded[0] );
  3752. for( nBkIndex = 0; nBkIndex < nBkCount; nBkIndex ++ )
  3753. {
  3754. m_bmpRibbonGroupBkExpanded[nBkIndex].Make32();
  3755. m_bmpRibbonGroupBkExpanded[nBkIndex].AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  3756. } // for( nBkIndex = 0; nBkIndex < nBkCount; nBkIndex ++ )
  3757. nBkCount = sizeof( m_bmpRibbonGroupBkCollapsed ) / sizeof( m_bmpRibbonGroupBkCollapsed[0] );
  3758. for( nBkIndex = 0; nBkIndex < nBkCount; nBkIndex ++ )
  3759. {
  3760. m_bmpRibbonGroupBkCollapsed[nBkIndex].Make32();
  3761. m_bmpRibbonGroupBkCollapsed[nBkIndex].AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  3762. } // for( nBkIndex = 0; nBkIndex < nBkCount; nBkIndex ++ )
  3763. // VERIFY(
  3764. // m_bmpRibbonIconBkCollapsed[0].LoadBMP_Resource(
  3765. // MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_ICON_COLLAPSED_NORMAL_BK_R2_LUNA_BLUE)
  3766. // )
  3767. // );
  3768. // VERIFY(
  3769. // m_bmpRibbonIconBkCollapsed[1].LoadBMP_Resource(
  3770. // MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_ICON_COLLAPSED_HOVER_BK_R2_LUNA_BLUE)
  3771. // )
  3772. // );
  3773. // VERIFY(
  3774. // m_bmpRibbonIconBkCollapsed[2].LoadBMP_Resource(
  3775. // MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_ICON_COLLAPSED_PRESSED_BK_R2_LUNA_BLUE)
  3776. // )
  3777. // );
  3778. VERIFY(
  3779. m_bmpRibbonIconBkCF.LoadBMP_Resource(
  3780. MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_COLLAPSED_ICON_FRAME_R2_LUNA_BLUE)
  3781. )
  3782. );
  3783.   m_bmpRibbonIconBkCF.PreMultiplyRGBChannels( false );
  3784. //  m_bmpRibbonIconBkCF.PreMultipliedRGBChannelsSet( true );
  3785. m_nRibbonSeparatorDrawModeH = INT( CExtBitmap::__EDM_STRETCH );
  3786. m_nRibbonSeparatorDrawModeV = INT( CExtBitmap::__EDM_STRETCH );
  3787. m_rcRibbonSeparatorPaddingH.SetRect( 6, 0, 6, 0 );
  3788. VERIFY(
  3789. m_bmpRibbonSeparatorH.LoadBMP_Resource(
  3790. MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_SEPARATOR_H_R2_LUNA_BLUE)
  3791. )
  3792. );
  3793. VERIFY( m_bmpRibbonSeparatorH.Make32() );
  3794. m_bmpRibbonSeparatorH.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  3795. m_rcRibbonSeparatorPaddingV.SetRect( 0, 6, 0, 6 );
  3796. VERIFY(
  3797. m_bmpRibbonSeparatorV.LoadBMP_Resource(
  3798. MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_SEPARATOR_V_R2_LUNA_BLUE)
  3799. )
  3800. );
  3801. VERIFY( m_bmpRibbonSeparatorV.Make32() );
  3802. m_bmpRibbonSeparatorV.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  3803. m_nRibbonHeightOfQACEB = 22;
  3804. m_nIdxRibbonQACEB_Selected = 3;
  3805. VERIFY(
  3806. m_bmpArrRibbonQACEB.LoadBMP_Resource(
  3807. MAKEINTRESOURCE(IDB_EXT_2007_QATB_CEB_R2_LUNA_BLUE)
  3808. )
  3809. );
  3810. m_bmpArrRibbonQACEB.PreMultipliedRGBChannelsSet( true );
  3811. m_clrRibbon_EmbeddedCaptionTextLeft = RGB(100,100,100);
  3812. m_clrRibbon_EmbeddedCaptionTextRight = RGB( 65, 115, 175 );;
  3813. m_bRibbonFileButtonItegrationSupported = true;
  3814. INT nCaptionHeightActive = NcFrame_GetCaptionHeight( true, NULL ) + m_rcNcFrameBordersActive.top;
  3815. INT nCaptionHeightInactive = NcFrame_GetCaptionHeight( false, NULL ) + m_rcNcFrameBordersInactive.top;
  3816. CExtBitmap::Filter _fBox( CExtBitmap::Filter::box );
  3817. m_rcRibbonNcCornerLeftCP.SetRect( 22, 8, 2, 2 );
  3818. m_rcRibbonNcCornerRightCP.SetRect( 2, 8, 22, 2 );
  3819. VERIFY(
  3820. m_bmpRibbonNcCornerActiveLeft.LoadBMP_Resource(
  3821. MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_NC_CORNER_ACTIVE_LEFT_R2_LUNA_BLUE)
  3822. )
  3823. );
  3824. m_bmpRibbonNcCornerActiveLeft.PreMultipliedRGBChannelsSet( true );
  3825. //  m_bmpRibbonNcCornerActiveLeft.Make32();
  3826. //  m_bmpRibbonNcCornerActiveLeft.AlphaColor( RGB(255,0,255), RGB(0,0,0), BYTE(0) );
  3827. m_bmpRibbonNcCornerActiveLeft.Scale(
  3828. m_bmpRibbonNcCornerActiveLeft.GetSize().cx,
  3829. nCaptionHeightActive,
  3830. _fBox
  3831. );
  3832. VERIFY(
  3833. m_bmpRibbonNcCornerInactiveLeft.LoadBMP_Resource(
  3834. MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_NC_CORNER_INACTIVE_LEFT_R2_LUNA_BLUE)
  3835. )
  3836. );
  3837. m_bmpRibbonNcCornerInactiveLeft.PreMultipliedRGBChannelsSet( true );
  3838. //  m_bmpRibbonNcCornerInactiveLeft.Make32();
  3839. //  m_bmpRibbonNcCornerInactiveLeft.AlphaColor( RGB(255,0,255), RGB(0,0,0), BYTE(0) );
  3840. m_bmpRibbonNcCornerInactiveLeft.Scale(
  3841. m_bmpRibbonNcCornerInactiveLeft.GetSize().cx,
  3842. nCaptionHeightInactive,
  3843. _fBox
  3844. );
  3845. VERIFY(
  3846. m_bmpRibbonNcCornerActiveRight.LoadBMP_Resource(
  3847. MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_NC_CORNER_ACTIVE_RIGHT_R2_LUNA_BLUE)
  3848. )
  3849. );
  3850. m_bmpRibbonNcCornerActiveRight.PreMultipliedRGBChannelsSet( true );
  3851. //  m_bmpRibbonNcCornerActiveRight.Make32();
  3852. //  m_bmpRibbonNcCornerActiveRight.AlphaColor( RGB(255,0,255), RGB(0,0,0), BYTE(0) );
  3853. m_bmpRibbonNcCornerActiveRight.Scale(
  3854. m_bmpRibbonNcCornerActiveRight.GetSize().cx,
  3855. nCaptionHeightActive,
  3856. _fBox
  3857. );
  3858. VERIFY(
  3859. m_bmpRibbonNcCornerInactiveRight.LoadBMP_Resource(
  3860. MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_NC_CORNER_INACTIVE_RIGHT_R2_LUNA_BLUE)
  3861. )
  3862. );
  3863. m_bmpRibbonNcCornerInactiveRight.PreMultipliedRGBChannelsSet( true );
  3864. //  m_bmpRibbonNcCornerInactiveRight.Make32();
  3865. //  m_bmpRibbonNcCornerInactiveRight.AlphaColor( RGB(255,0,255), RGB(0,0,0), BYTE(0) );
  3866. m_bmpRibbonNcCornerInactiveRight.Scale(
  3867. m_bmpRibbonNcCornerInactiveRight.GetSize().cx,
  3868. nCaptionHeightInactive,
  3869. _fBox
  3870. );
  3871. VERIFY(
  3872. m_bmpRibbonNcCornerHT.LoadBMP_Resource(
  3873. MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_NC_CORNER_HT_MASK_R2_LUNA_BLUE)
  3874. )
  3875. );
  3876. m_bmpRibbonNcCornerHT.Make32();
  3877. m_bmpRibbonNcCornerHT.Scale(
  3878. m_bmpRibbonNcCornerHT.GetSize().cx,
  3879. nCaptionHeightActive,
  3880. _fBox
  3881. );
  3882. VERIFY( m_bmpArrRibbonFileButton.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_FILE_BUTTON_R2_LUNA_BLUE) ) );
  3883. //m_bmpArrRibbonFileButton.PreMultipliedRGBChannelsSet( true );
  3884. m_rcPaddingRibbonQuickAccessBarBkAtTheBottom.SetRect( 3, 3, 3, 3 );
  3885. VERIFY( m_bmpRibbonQuickAccessBarBkAtTheBottom.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_QATB_BK_R2_LUNA_BLUE) ) );
  3886. m_nRibbonHeightOfOneDLB = 14;
  3887. m_nDlbIdxDisabled = 3;
  3888. m_nDlbIdxNormal = 0;
  3889. m_nDlbIdxHover = 1;
  3890. m_nDlbIdxPressed = 2;
  3891. rcRibbonContentPaddingDLB.SetRect( 2, 2, 2, 2 );
  3892. VERIFY( m_arrBmpRibbonDLB.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_GCB_R2_LUNA_BLUE) ) );
  3893. m_arrBmpRibbonDLB.PreMultipliedRGBChannelsSet( true );
  3894. m_clrRibbonGalleryInplaceBorderNormal = RGB(185,208,237);
  3895. m_clrRibbonGalleryInplaceBorderHover  = RGB(185,208,237);
  3896. m_clrRibbonGalleryInplaceBkgndNormal  = RGB(212,230,248);
  3897. m_clrRibbonGalleryInplaceBkgndHover   = RGB(236,243,251);
  3898. m_rcRibbonGalleryScrollFill = RGB(212,230,248);
  3899. m_rcRibbonGalleryScrollButtonPadding.SetRect( 4, 4, 4, 4 );
  3900. m_nHeightRibbonGalleryScrollButton = -1;
  3901. m_nIndexRibbonGalleryScrollButtonDisabled = 4;
  3902. m_nIndexRibbonGalleryScrollButtonNormal = 1;
  3903. m_nIndexRibbonGalleryScrollButtonHover = 2;
  3904. m_nIndexRibbonGalleryScrollButtonPressed = 3;
  3905. VERIFY(
  3906. m_bmpArrRibbonGalleryScrollButtonDown.LoadBMP_Resource(
  3907. MAKEINTRESOURCE(IDB_EXT_2007_RGIBTN_DOWN_R2_LUNA_BLUE)
  3908. )
  3909. );
  3910. VERIFY(
  3911. m_bmpArrRibbonGalleryScrollButtonUp.LoadBMP_Resource(
  3912. MAKEINTRESOURCE(IDB_EXT_2007_RGIBTN_UP_R2_LUNA_BLUE)
  3913. )
  3914. );
  3915. VERIFY(
  3916. m_bmpArrRibbonGalleryScrollButtonMenu.LoadBMP_Resource(
  3917. MAKEINTRESOURCE(IDB_EXT_2007_RGIBTN_MENU_R2_LUNA_BLUE)
  3918. )
  3919. );
  3920. #endif // (!defined __EXT_MFC_NO_RIBBON_BAR)
  3921. VERIFY( m_bmpRibbonDDA.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_DDA_R2_LUNA_BLUE) ) );
  3922. VERIFY( m_bmpRibbonDDA.Make32() );
  3923. m_bmpRibbonDDA.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
  3924. VERIFY( m_bmpArrRibbonComboBoxDropDown.LoadBMP_Resource( MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_COMBO_BOX_BUTTON_R2_LUNA_BLUE) ) );
  3925. // tool buttons 2007
  3926. m_arrIndicesButtonTS[INT(__E07BI_NORMAL)] = 0;
  3927. m_arrIndicesButtonTS[INT(__E07BI_HOVER)] = 3;
  3928. m_arrIndicesButtonTS[INT(__E07BI_PRESSED)] = 2;
  3929. m_arrIndicesButtonTS[INT(__E07BI_HDD)] = 3;
  3930. m_arrIndicesButtonTS[INT(__E07BI_SEL_T)] = 1;
  3931. m_arrIndicesButtonTS[INT(__E07BI_INDETERMINATE)] = 0;
  3932. m_arrIndicesButtonSS_Left[INT(__E07BI_NORMAL)] = -1;
  3933. m_arrIndicesButtonSS_Left[INT(__E07BI_HOVER)] = 0;
  3934. m_arrIndicesButtonSS_Left[INT(__E07BI_PRESSED)] = 1;
  3935. m_arrIndicesButtonSS_Left[INT(__E07BI_HDD)] = 2;
  3936. m_arrIndicesButtonSS_Left[INT(__E07BI_SEL_T)] = 5;
  3937. m_arrIndicesButtonSS_Left[INT(__E07BI_INDETERMINATE)] = 4;
  3938. m_arrIndicesButtonSS_Right[INT(__E07BI_NORMAL)] = -1;
  3939. m_arrIndicesButtonSS_Right[INT(__E07BI_HOVER)] = 0;
  3940. m_arrIndicesButtonSS_Right[INT(__E07BI_PRESSED)] = 1;
  3941. m_arrIndicesButtonSS_Right[INT(__E07BI_HDD)] = 2;
  3942. m_arrIndicesButtonSS_Right[INT(__E07BI_SEL_T)] = 4;
  3943. m_arrIndicesButtonSS_Right[INT(__E07BI_INDETERMINATE)] = 3;
  3944. m_arrIndicesButtonLSM[INT(__E07BI_NORMAL)] = -1;
  3945. m_arrIndicesButtonLSM[INT(__E07BI_HOVER)] = 0;
  3946. m_arrIndicesButtonLSM[INT(__E07BI_PRESSED)] = 1;
  3947. m_arrIndicesButtonLSM[INT(__E07BI_HDD)] = 2;
  3948. m_arrIndicesButtonLSM[INT(__E07BI_SEL_T)] = 0;
  3949. m_arrIndicesButtonLSM[INT(__E07BIX_INDETERMINATE)] = 0;
  3950. // m_arrIndicesButtonLSB[INT(__E07BI_NORMAL)] = -1;
  3951. // m_arrIndicesButtonLSB[INT(__E07BI_HOVER)] = 0;
  3952. // m_arrIndicesButtonLSB[INT(__E07BI_PRESSED)] = 1;
  3953. // m_arrIndicesButtonLSB[INT(__E07BI_HDD)] = 2;
  3954. // m_arrIndicesButtonLSB[INT(__E07BI_SEL_T)] = 0;
  3955. // m_arrIndicesButtonLSB[INT(__E07BI_INDETERMINATE)] = 0;
  3956. m_arrIndicesButtonLSXM[INT(__E07BIX_NORMAL)] = -1;
  3957. m_arrIndicesButtonLSXM[INT(__E07BIX_HOVER)] = 0;
  3958. m_arrIndicesButtonLSXM[INT(__E07BIX_HOVER2)] = 5;
  3959. m_arrIndicesButtonLSXM[INT(__E07BIX_PRESSED)] = 1;
  3960. m_arrIndicesButtonLSXM[INT(__E07BIX_PRESSED2)] = 2;
  3961. m_arrIndicesButtonLSXM[INT(__E07BIX_PRESSED3)] = 3;
  3962. m_arrIndicesButtonLSXM[INT(__E07BIX_INDETERMINATE)] = 4;
  3963. m_arrIndicesButtonLSXM[INT(__E07BIX_SELECTED)] = 5;
  3964. m_arrIndicesButtonLSXB[INT(__E07BIX_NORMAL)] = -1;
  3965. m_arrIndicesButtonLSXB[INT(__E07BIX_HOVER)] = 0;
  3966. m_arrIndicesButtonLSXB[INT(__E07BIX_HOVER2)] = 4;
  3967. m_arrIndicesButtonLSXB[INT(__E07BIX_PRESSED)] = 1;
  3968. m_arrIndicesButtonLSXB[INT(__E07BIX_PRESSED2)] = 2;
  3969. m_arrIndicesButtonLSXB[INT(__E07BIX_PRESSED3)] = 2;
  3970. m_arrIndicesButtonLSXB[INT(__E07BIX_INDETERMINATE)] = 3;
  3971. m_arrIndicesButtonLSXB[INT(__E07BIX_SELECTED)] = 4;
  3972. VERIFY(
  3973. m_bmpArrButtonTS[INT(__EBTSA_SOLID)].LoadBMP_Resource(
  3974. MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_TB_SOLID_R2_LUNA_BLUE)
  3975. )
  3976. );
  3977. m_bmpArrButtonTS[INT(__EBTSA_SOLID)].PreMultipliedRGBChannelsSet( true );
  3978. VERIFY(
  3979. m_bmpArrButtonTS[INT(__EBTSA_LEFT)].LoadBMP_Resource(
  3980. MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_TB_LEFT_R2_LUNA_BLUE)
  3981. )
  3982. );
  3983. m_bmpArrButtonTS[INT(__EBTSA_LEFT)].PreMultipliedRGBChannelsSet( true );
  3984. VERIFY(
  3985. m_bmpArrButtonTS[INT(__EBTSA_MIDDLE)].LoadBMP_Resource(
  3986. MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_TB_MIDDLE_R2_LUNA_BLUE)
  3987. )
  3988. );
  3989. m_bmpArrButtonTS[INT(__EBTSA_MIDDLE)].PreMultipliedRGBChannelsSet( true );
  3990. VERIFY(
  3991. m_bmpArrButtonTS[INT(__EBTSA_RIGHT)].LoadBMP_Resource(
  3992. MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_TB_RIGHT_R2_LUNA_BLUE)
  3993. )
  3994. );
  3995. m_bmpArrButtonTS[INT(__EBTSA_RIGHT)].PreMultipliedRGBChannelsSet( true );
  3996. VERIFY(
  3997. m_bmpArrButtonSS_DD[INT(__EBSSA_LEFT)].LoadBMP_Resource(
  3998. MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_BTN_PART_SMALL_LEFT_R2)
  3999. )
  4000. );
  4001. m_bmpArrButtonSS_DD[INT(__EBSSA_LEFT)].PreMultipliedRGBChannelsSet( true );
  4002. VERIFY(
  4003. m_bmpArrButtonSS_DD[INT(__EBSSA_RIGHT)].LoadBMP_Resource(
  4004. MAKEINTRESOURCE(IDB_EXT_2007_RIBBON_BTN_PART_SMALL_RIGHT_R2)
  4005. )
  4006. );
  4007. m_bmpArrButtonSS_DD[INT(__EBSSA_RIGHT)].PreMultipliedRGBChannelsSet( true );
  4008. m_bmpArrButtonSS_simple = m_bmpArrButtonSS_DD[ INT(__EBSSA_LEFT) ];
  4009. if( ! m_bmpArrButtonSS_simple.IsEmpty() )
  4010. {
  4011. CSize _sizeBmp = m_bmpArrButtonSS_simple.GetSize();
  4012. INT nY = 0, nXRange = _sizeBmp.cx / 2;
  4013. for( ; nY < _sizeBmp.cy; nY ++ )
  4014. {
  4015. INT nXSrc = nXRange - 1, nXDst = _sizeBmp.cx - nXRange;
  4016. for( ; nXDst < _sizeBmp.cx; nXDst ++, nXSrc -- )
  4017. {
  4018. RGBQUAD _pixel;
  4019. VERIFY( m_bmpArrButtonSS_simple.GetPixel( nXSrc, nY, _pixel ) );
  4020. VERIFY( m_bmpArrButtonSS_simple.SetPixel( nXDst, nY, _pixel ) );
  4021. } // for( ; nXDst < _sizeBmp.cx; nXDst ++, nXSrc -- )