Click here to Skip to main content
15,922,166 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Toolbar with two colums Pin
Nathan Holt at EMOM28-Sep-07 11:01
Nathan Holt at EMOM28-Sep-07 11:01 
AnswerRe: Toolbar with two colums Pin
Mark Salsbery28-Sep-07 8:19
Mark Salsbery28-Sep-07 8:19 
GeneralRe: Toolbar with two colums Pin
sharp_k28-Sep-07 10:51
sharp_k28-Sep-07 10:51 
GeneralRe: Toolbar with two colums Pin
Mark Salsbery28-Sep-07 11:44
Mark Salsbery28-Sep-07 11:44 
GeneralRe: Toolbar with two colums Pin
sharp_k29-Sep-07 3:10
sharp_k29-Sep-07 3:10 
GeneralRe: Toolbar with two colums Pin
Mark Salsbery29-Sep-07 6:36
Mark Salsbery29-Sep-07 6:36 
GeneralRe: Toolbar with two colums Pin
sharp_k29-Sep-07 7:13
sharp_k29-Sep-07 7:13 
GeneralRe: Toolbar with two colums Pin
Mark Salsbery29-Sep-07 7:34
Mark Salsbery29-Sep-07 7:34 
Mark_VC wrote:
What to put in CalcFixedLayout override.


All you need is to return the size you want.

For vertical, two columns, something like this maybe...
CRect CliRect;
GetParent()->GetClientRect(&CliRect);

CRect ButtonRect;
GetToolBarCtrl().GetItemRect(0, &ButtonRect);

return CSize(ButtonRect.Width() * 2, CliRect.Height());

The wrapable style only needs to be set on the toolbar itself.  You also don't need
separators although they can be used to aid wrapping in some instances.


Mark



Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: Toolbar with two colums Pin
sharp_k29-Sep-07 8:28
sharp_k29-Sep-07 8:28 
AnswerRe: Toolbar with two colums Pin
Anurag Gandhi28-Sep-07 22:26
professionalAnurag Gandhi28-Sep-07 22:26 
GeneralRe: Toolbar with two colums Pin
sharp_k29-Sep-07 3:13
sharp_k29-Sep-07 3:13 
QuestionHow to get all computers ip address on LAN? Pin
Gofur Halmurat28-Sep-07 6:05
Gofur Halmurat28-Sep-07 6:05 
AnswerRe: How to get all computers ip address on LAN? Pin
Matthew Faithfull28-Sep-07 6:15
Matthew Faithfull28-Sep-07 6:15 
GeneralRe: How to get all computers ip address on LAN? Pin
David Crow28-Sep-07 6:28
David Crow28-Sep-07 6:28 
AnswerRe: How to get all computers ip address on LAN? Pin
David Crow28-Sep-07 7:00
David Crow28-Sep-07 7:00 
QuestionMemory DC with Negative coordinates Pin
shivrajbhosale28-Sep-07 4:46
shivrajbhosale28-Sep-07 4:46 
AnswerRe: Memory DC with Negative coordinates Pin
led mike28-Sep-07 5:10
led mike28-Sep-07 5:10 
AnswerRe: Memory DC with Negative coordinates Pin
Hamid_RT28-Sep-07 20:07
Hamid_RT28-Sep-07 20:07 
AnswerRe: Memory DC with Negative coordinates Pin
Nelek30-Sep-07 21:42
protectorNelek30-Sep-07 21:42 
QuestionWM_MOUSEMOVE without mouse movement Pin
Manfred Staiger28-Sep-07 3:43
Manfred Staiger28-Sep-07 3:43 
AnswerRe: WM_MOUSEMOVE without mouse movement Pin
Iain Clarke, Warrior Programmer28-Sep-07 3:52
Iain Clarke, Warrior Programmer28-Sep-07 3:52 
GeneralRe: WM_MOUSEMOVE without mouse movement Pin
Manfred Staiger28-Sep-07 3:59
Manfred Staiger28-Sep-07 3:59 
AnswerFound an explanation Pin
Manfred Staiger28-Sep-07 4:24
Manfred Staiger28-Sep-07 4:24 
QuestionCCombobox width problem Pin
prithaa28-Sep-07 3:35
prithaa28-Sep-07 3:35 
AnswerRe: CCombobox width problem Pin
Hamid_RT28-Sep-07 3:38
Hamid_RT28-Sep-07 3:38 

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.