Paul Dodd
September 19th, 1999, 11:03 AM
Is there a way to have multiple lines of text below the bitmap in a toolbar? I have tried using SetMaxTextRows. Setting DT_WORDBREAK in SetDrawTextFlags gets the \r in the string to not show up as a square, but still there is no second line.
toolBar.GetToolBarCtrl().SetMaxTextRows( 2 );
toolBar.GetToolBarCtrl().SetDrawTextFlags( 0xffffffff, DT_WORDBREAK | DT_EDITCONTROL );
toolBar.SetButtonText( 0, "Line1\rLine2" );
transferToolBar.SetSizes( CSize( 120, 100 ), CSize( 90, 36 ) );
toolBar.GetToolBarCtrl().SetMaxTextRows( 2 );
toolBar.GetToolBarCtrl().SetDrawTextFlags( 0xffffffff, DT_WORDBREAK | DT_EDITCONTROL );
toolBar.SetButtonText( 0, "Line1\rLine2" );
transferToolBar.SetSizes( CSize( 120, 100 ), CSize( 90, 36 ) );