I want to compute the minimum size both vertical and horizontal that will contain a dialog. I used GetClientRect to determine the width and height. Then for the width when a vertical scroll bar is needed I added GetSystemMetrics (SM_CXVSCROLL) + GetSystemMetrics (SM_CXSIZEFRAME) but I seem to come up a few pixels short.
What GetSysMetrics do I need to take into account for both the horizontal and vertical dimensions with and without scroll bars?