Click here to Skip to main content
15,041,266 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Is it possible to change the position of CMFCRibbonButton in mfc. I can able to place a button in CMFCRibbonBar at right most side of CMFCRibbonBar.Is it possible to place it in the begining of CMFCRibbonBar.

Thanks in Advance

CoderDinesh
Posted

1 solution

have you read the documtentation of this class: http://msdn.microsoft.com/de-de/library/bb983906.aspx[^]

the second member will dio the job: http://msdn.microsoft.com/de-de/library/bb983189.aspx[^]


how lazy are you?
   
Comments
coderDinesh 25-Jul-11 8:46am
   
I have already seen the second link and tried it in CMFCRibbonCategory class.
But it does not seems like a button the thing that i hate is when i click the button, a bar which comes under the Ribbonbar.That's is the problem i just don't like it.

Here i have attached my code:
I have removed all the ribbon controls generated by the vs2008 sp1.

CMFCRibbonBar m_wndRibbonBar;
CMFCRibbonButton* StyleButton;
StyleButton = new CMFCRibbonButton(ID_FIRSTBUTTON,strTemp,1,1);
StyleButton->SetText(_T("hello"));
m_wndRibbonBar .AddToTabs (StyleButton);


Thank you for your reply and waiting for your comments

CoderDinesh
KarstenK 25-Jul-11 9:18am
   
you arent finished, you got to do your homeworks: http://msdn.microsoft.com/en-us/library/bb983800.aspx

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900