I have some edit controls I've added at run-time to a modal dialog.
Since I don't know how many I'm going to need prior to run-time, I need a way to either resize the dialog or allow it to be scrolled.
I've tried using the following code (in my class based on the CDialog class) to re-size the HEIGHT of the dialog:
SetWindowPos(&wndTop, rect2.left, rect2.top, rect2.right, rect2.bottom + y,SWP_NOZORDER | SWP_SHOWWINDOW );
This doesn't work right though... it keeps expanding the WIDTH of the dialog. If I use GetClientRect, it doesn't work either. Then the WIDTH is shrinking.
What am I missing?