It seems that my message got truncated. The question was: When I call
GetWindowRect on a CButton object, does it return the top-left and
bottom-right coordinates of the button or what? If so, are those relative
of the parent window, screen dimensions or margins of the parent window? I
am getting some rather enexpectedly huge numbers. Also, a resizable
CAcUiTabMainDialog, if I stretch it and click OK will remember not only the
window dimensions, but also the CAcUiTab control dimensions. However, it
would not remember the position of the OK and Cancel buttons. So each time
I open a previously resized dialog, the tab control will be consistent with
the size of the dialog, but the buttons' position will be the same as in the
dialog when it's called for the first time before resizing. What can I do
here to make the dialog remember the position? I suppose, I could OnSize,
after positioning the buttons save their WindowRect data, and reinstate it
on WindowShow again, but then, it becomes somewhat ugly differentiating
between the cases of the window shown for the first time and the one that
has been shown before. Is there a more elegant way of achieving this. If
someon could please post a small simple dialog box on the basis of
CAcUiTabMainDialog that is resizable and whose buttons remember their
position, I would appreciate it greatly. Unless the way I described is
pretty much the only one. Links and reference article tips are welcome
Thank you for your time.
Alex Parshikov
Iceversaka, Inc.