Click here to Skip to main content
15,881,248 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralNM_CUSTOMDRAW in an ATL dialog based application Pin
aks.9-Dec-14 3:00
aks.9-Dec-14 3:00 
QuestionRe: NM_CUSTOMDRAW in an ATL dialog based application Pin
Richard MacCutchan9-Dec-14 6:03
mveRichard MacCutchan9-Dec-14 6:03 
QuestionA Chinese blog about integrating MS Detours Library and Mhook library Pin
Jamming18-Dec-14 15:11
Jamming18-Dec-14 15:11 
AnswerRe: A Chinese blog about integrating MS Detours Library and Mhook library Pin
Garth J Lancaster8-Dec-14 16:32
professionalGarth J Lancaster8-Dec-14 16:32 
GeneralRe: A Chinese blog about integrating MS Detours Library and Mhook library Pin
Jamming18-Dec-14 21:07
Jamming18-Dec-14 21:07 
AnswerRe: A Chinese blog about integrating MS Detours Library and Mhook library Pin
Richard MacCutchan8-Dec-14 22:04
mveRichard MacCutchan8-Dec-14 22:04 
GeneralRe: A Chinese blog about integrating MS Detours Library and Mhook library Pin
Jamming19-Dec-14 3:07
Jamming19-Dec-14 3:07 
QuestionIs there a way to move the right-most button of a CMFCToolbar to the right most position (of the rect) ? Pin
Maximilien8-Dec-14 4:38
Maximilien8-Dec-14 4:38 
Based on the "Visual C++ 2008 Feature Pack" sample VisualStudioDemo

I have a toolbar (CMFCToolbar) in a docking pane (CDockPane) that contains operations to be done on the content of the docking pane.

Currently, all the toolbar buttons are "aligned" from the left side; as it is expected when working with a toolbar.

Is there a way to move the right-most button in the toolbar to be at the right-most side or the rect (of the toobar) ?

for example ( in ascii art) to have something like this (toolbar is between [] )

C++
==================================================
| [button1|button2|button3|             button4] |
|------------------------------------------------|
|                                                |

The toolbar rect spans the whole width of the docking pane (also resizes when the docking pane resizes)

Looking at the CMFCToolbar documentation and code (afxtoolbar.cpp/.h) does not seem to offer some API to do that.

So, Am I chasing a wild goose?

Thanks.

Max.
I'd rather be phishing!

AnswerRe: Is there a way to move the right-most button of a CMFCToolbar to the right most position (of the rect) ? Pin
Eugen Podsypalnikov12-Dec-14 1:28
Eugen Podsypalnikov12-Dec-14 1:28 
GeneralRe: Is there a way to move the right-most button of a CMFCToolbar to the right most position (of the rect) ? Pin
Maximilien12-Dec-14 3:20
Maximilien12-Dec-14 3:20 
QuestionMFC Grid Control does not show cells content Pin
georox6-Dec-14 2:37
georox6-Dec-14 2:37 
GeneralRe: MFC Grid Control does not show cells content Pin
SoMad6-Dec-14 14:53
professionalSoMad6-Dec-14 14:53 
QuestionPrint a long CString Pin
Gagnon Claude5-Dec-14 17:32
Gagnon Claude5-Dec-14 17:32 
AnswerRe: Print a long CString Pin
enhzflep5-Dec-14 20:26
enhzflep5-Dec-14 20:26 
AnswerRe: Print a long CString Pin
Richard MacCutchan5-Dec-14 22:18
mveRichard MacCutchan5-Dec-14 22:18 
Questionadd file version to a new text file Pin
henryh5-Dec-14 4:58
henryh5-Dec-14 4:58 
AnswerRe: add file version to a new text file Pin
den2k885-Dec-14 5:12
professionalden2k885-Dec-14 5:12 
GeneralRe: add file version to a new text file Pin
henryh5-Dec-14 5:26
henryh5-Dec-14 5:26 
GeneralRe: add file version to a new text file Pin
Richard MacCutchan5-Dec-14 6:36
mveRichard MacCutchan5-Dec-14 6:36 
GeneralRe: add file version to a new text file Pin
henryh5-Dec-14 10:42
henryh5-Dec-14 10:42 
AnswerRe: add file version to a new text file Pin
Randor 5-Dec-14 6:03
professional Randor 5-Dec-14 6:03 
AnswerRe: add file version to a new text file Pin
Richard MacCutchan5-Dec-14 6:35
mveRichard MacCutchan5-Dec-14 6:35 
GeneralRe: add file version to a new text file Pin
Randor 5-Dec-14 6:48
professional Randor 5-Dec-14 6:48 
GeneralRe: add file version to a new text file Pin
Richard MacCutchan5-Dec-14 7:17
mveRichard MacCutchan5-Dec-14 7:17 
GeneralRe: add file version to a new text file Pin
henryh5-Dec-14 10:39
henryh5-Dec-14 10:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.