getting dialog size during runtime
i have called a dialog box up and now i want to move a control (pushbutton) to the bottom left hand corner of the dialog. so what i figured i would do is just like what i would do with a window, handle the wm_size message and take the LPARAM of it to get the sizes and then move the control according.
so i put the wm_size message into the dialog proc but then when i ran it, it didnt do what was expected. so then i eventually tested it (with a mesage box call) and it seems that the wm_size message wasn't even handled.
aren't there wm_size messages in dialog boxes? if not, then how do i get the dialog sizes during runtime to move controls accordingly?
thanks!