I created a class which generate windows and i want the size of windows changes to fit the content in it.
for example I have a selection window which contains total of 7 combobox and radio buttons in (4 lines) but the window generated is far too big for the content in it.
I want the parent window's size to shrink automatically to fit the content of the child windows in it. if I added more content, i want it to become bigger without manually setting the size of the window
CreateWindowEx( dwExStyle, ClassName(), lpWindowName, dwStyle, x, y, nWidth, nHeight, hWndParent, hMenu, GetModuleHandle(NULL), this );
I am using
CW_USEDEFAULT for width and height