<pre> CMenu m_ShortMenu; m_ShortMenu.LoadMenu(IDR_MENU1); //carica il menù per la toolbar e inserimento lingua SetMenu(&m_ShortMenu); CBrush* NewBrush; NewBrush = new CBrush; NewBrush->CreateSolidBrush(RGB(211, 211, 211)); CMenu* pMenu1 = this->GetMenu(); MENUINFO MenuInfo = { 0 }; MenuInfo.cbSize = sizeof(MenuInfo); MenuInfo.hbrBack = *NewBrush; // Brush you want to draw MenuInfo.fMask = MIM_BACKGROUND; MenuInfo.dwStyle = MNS_AUTODISMISS; MENUINFO MenuInfo1 = { 1 }; MenuInfo1.cbSize = sizeof(MenuInfo); MenuInfo1.hbrBack = *NewBrush; // Brush you want to draw MenuInfo1.fMask = MIM_BACKGROUND; MenuInfo1.dwStyle = MNS_AUTODISMISS; //CMenu* pMenu1 = this->GetMenu(); if (IsMenu(pMenu1->m_hMenu)) { SetMenuInfo(pMenu1->m_hMenu, &MenuInfo); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)