Can't set menu title background color | developer.brewmp.com Can't set menu title background color | developer.brewmp.com

Developer

Can't set menu title background color

Forums:

I was hoping someone could offer some suggestions on this one. I'm sorry if its been covered, I DID search for this problem. I'm trying to set the menu title background color with absolutely no luck.

my code...

// ******************

AEERect rectMain;
IMenuCtl* mnuMain;
AEEMenuColors mcMain;
AEEMenuColors mcMainGet;

if ( ISHELL_CreateInstance( pMe->m_pIShell, AEECLSID_MENUCTL, (void**)(&mnuMain) ) != SUCCESS )
return(FALSE);

rectMain.x = 5;
rectMain.y = 5;
rectMain.dx = 50;
rectMain.dy = 150;

IMENUCTL_SetRect( mnuMain, &rectMain );

IMENUCTL_SetProperties( mnuMain, MP_WRAPSCROLL | MP_UNDERLINE_TITLE );

IMENUCTL_SetTitle( mnuMain, NULL, NULL, (AECHAR*)L"Title" );
IMENUCTL_AddItem( mnuMain, NULL, NULL, 1, (AECHAR*)L"Item 1", 1 );
IMENUCTL_AddItem( mnuMain, NULL, NULL, 2, (AECHAR*)L"Item 2", 2 );

mcMain.wMask = MC_BACK | MC_TEXT | MC_SEL_BACK | MC_SEL_TEXT | MC_FRAME | MC_TITLE | MC_TITLE_TEXT;
mcMain.cBack = MAKE_RGB( 255, 255, 255 );
mcMain.cText = MAKE_RGB( 0, 0, 0 );
mcMain.cSelBack = MAKE_RGB( 0, 0, 255 );
mcMain.cSelText = MAKE_RGB( 255, 255, 255 );
mcMain.cFrame = MAKE_RGB( 0, 0, 255 );

// won't set?
mcMain.cTitle = MAKE_RGB( 0, 0, 255 );
mcMain.cTitleText = MAKE_RGB( 255, 255, 255 );

IMENUCTL_SetColors( mnuMain, &mcMain );

// is this really needed?
IMENUCTL_Redraw( mnuMain );

// the colors appear to be set in mcMainGet
IMENUCTL_GetColors( mnuMain, &mcMainGet );

IMENUCTL_SetActive( mnuMain, TRUE );

// ******************

Questions:
1. Am I doing anything incorrectly?
2. Is it a simulator issue ( I'm using 3.1.5.27 )?
3. Does this happen to anyone else?

Doesn't really matter where I put the SetColors(), it just won't set it for me. I've also tried setting CLR_SYS_TITLE and CLR_SYS_TITLE_TEXT to no avail.

Thanks in advance...

Help, I've fallen, and I can't get up.