Menu Colors

Orlando Gondar 61 Reputation points
2022-06-27T15:47:29.41+00:00

Hello there, I have this code that works good changing the background color of a menu.
The question is: How can I change the TEXT of the Menu? ( If possible ) Thanks.

Current Code:
// Create a Brush for the Menu
LOGBRUSH lbr; lbr.lbHatch = 0; lbr.lbStyle = 0; lbr.lbColor = RGB(164,164,164);

GBRUSH = CreateBrushIndirect(&lbr);

// Apply Brush to the Menu
MENUINFO mi = { 0 }; mi.cbSize = sizeof(mi); mi.fMask = MIM_BACKGROUND | MIM_APPLYTOSUBMENUS; mi.hbrBack = GBRUSH;
HMENU hMenu = GetMenu(hwnd); SetMenuInfo(hMenu, &mi);

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,729 questions
0 comments No comments
{count} votes

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.