As an added note, this is due to the fact that in the Win32 API the cell has either a fixed width or fills the remaining space -1
int statwidths[] = {100, -1}; SendMessage(hStatus, SB_SETPARTS, sizeof(statwidths)/sizeof(int), (LPARAM)statwidths); SendMessage(hStatus, SB_SETTEXT, 0, (LPARAM)"Hi there :)");
If the memory is working correctly, you can only have one fill cell (-1) for each status bar.
You can also add a third middle cell and give this fill property to get a more consistent look of the StatusBar. Agreed, because the posts have an insert from left to right where you expect this. A bit like the mspaint snapshot found on the MSDN page for StatusBars
I like the creative approach: D
Martijn Laarman Feb 04 '09 at 0:03 2009-02-04 00:03
source share