toolBars buttons
-
Hi everybody, i need help. I am working with toolBars and i dont know how i can set the text of the buttons in the toolBar. If any body can help me i will be gratefull.
neliocc wrote: i dont know how i can set the text of the buttons in the toolBar SetWindowText(HANDLE_OF_BUTTON, BUTTON_TEXT);
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta
-
neliocc wrote: i dont know how i can set the text of the buttons in the toolBar SetWindowText(HANDLE_OF_BUTTON, BUTTON_TEXT);
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta
-
m_wndToolBar.SetButtonText(0,"this text"); m_wndToolBar.GetToolBarCtrl().SetButtonSize(CSize(22,36)); Just set the button size CSize(22,36) to values which suit you. this is this.
-
Send a TB_SETBUTTONINFO message to the toolbar.
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03 "Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04 Within you lies the power for good - Use it!
Honoured as one of The Most Helpful Members of 2004
-
neliocc wrote: i am working with win32 API Then Look for TB_SETBUTTONINFO and TB_SETBUTTONWIDTH messages
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta