SetFlatMode ( set menu flat mode)

Top  Previous  Next


SetFlatMode( mode )




A BYTE value that sets the menu flat mode. A value of TRUE (1) turns flat mode on, and a value of FALSE (0) turns it off.


The SetFlatMode method controls the flat mode appearance of a target menu. When flat mode is off (FALSE), the selection bar appears "raised" in the menu structure. Otherwise the appearance of the selection bar is "flat".


The method is usually called right after the Init method, and prior to setting menu colors.








 MenuStyleMgr.SetColor(MenuBrushes:FrameBrush,8421504, 8421504,True)

 AppFrame{PROP:Text} = 'Visual Styles Demo - Window2K Menu Style Active'



See Also:     GetFlatMode( get menu flat mode )