Quote:
Originally posted by souldog
code:--------------------------------------------------------------------------------
void FOO_DIALOG::SwapButtons(CButton& button1, CButton& button2)
{
CRect rect1, rect2;
button1.GetWindowRect(&rect1);
button2.GetWindowRect(&rect2);
ScreenToClient(&rect1);
ScreenToClient(&rect2);
Button1.MoveWindow(&rect2);
Button2.MoveWindow(&rect1);
}
--------------------------------------------------------------------------------
Didn't test it
That just what I wanted. Thanks both of you.