tags:

views:

92

answers:

1

Hello, I have simple dialog-based application with a status bar:

InitCommonControls();
HWND hStatus = CreateWindowEx(...);
SendMessage(hStatus, SB_SETPARTS, ...);

I would like it to remain always at the bottom of the dialog, even if the dialog gets resized.

I tried SendMessage(hStatus, WM_SIZE, 0, 0); in WM_SIZE of the dialog procedure but it doesn't work (status bar stays at the same position). Do I have to move it manually?

A: 

It works, I don't know what happened....

Lars Kanto