Click here to Skip to main content
15,921,941 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Toolbar with two colums Pin
Nathan Holt at EMOM28-Sep-07 7:13
Nathan Holt at EMOM28-Sep-07 7:13 
GeneralRe: Toolbar with two colums Pin
sharp_k28-Sep-07 10:53
sharp_k28-Sep-07 10:53 
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 
It doesn't have to be floating. 

You didn't mention MFC before, but now that you've mentioned it -

Override  CalcFixedLayout()...
If you return the proper size for the bar it will work. 
The width should be the size of two buttons (for two columns).
The height should be the height of the client area of the parent.

For CalcDynamicLayout() I often just route the call to CalcFixedLayout()
unless I need different functionality there - something like:

CSize CMyControlBar::CalcDynamicLayout(int nLength, DWORD dwMode)<br />
{<br />
    return CalcFixedLayout(dwMode & LM_STRETCH, dwMode & LM_HORZ);<br />
}<br />

Mark





Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

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 
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 

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.