Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

I am unable to set the colors of selected/ unselected Menu Items using IMENUCTL_SetColors(). Why?

0
Posted

I am unable to set the colors of selected/ unselected Menu Items using IMENUCTL_SetColors(). Why?

0

When setting the menu color, it is imperative to correctly set AEEMenuColors.wMask. For example: AEEMenuColors menu_colors; // Unselected menu item background menu_colors.wMask = MC_BACK; menu_colors->cBack = MAKE_RGB(0,0,0); menu_colors->cText = MAKE_RGB(0,0,102); IMENUCTL_SetColors(pMe->m_pISKMenu,&menu_colors); // Selected menu item background menu_colors.wMask = MC_SEL_BACK; menu_colors->cSelBack = MAKE_RGB(64,64,128); menu_colors->cSelText = MAKE_RGB(255,255,255); IMENUCTL_SetColors(pMe->m_pISKMenu,&menu_colors); IMENUCTL_Redraw(pMe->m_pISKMenu); The various values for AEEMenuColors.wMask are: MC_BACK Unselected item background MC_TEXT Unselected item text MC_SEL_BACK Selected item background MC_SEL_TEXT Selected item text MC_FRAME Simple frame color MC_SCROLLBAR Scrollbar frame color MC_SCROLLBAR_FILL Scrollbar fill color These two mask is supported only for list controls. MC_TITLE Title background color. MC_TITLE_TEXT Title text color.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123