Hi Guys,

I have here a simple problem that I could not figure how to do it. I have two buttons, lets say button 1 and 2, I need to swap these button to each others position. This means That button 1 will take button 2 position in the dialog and button 2 will take button 1 position.

For the time being, I changing the text on the button and it looks like its swapping but its just changing the text.

PHP Code:
void CPLAYDlg::OnButton(UINT uID
{
    
// TODO: Add your control notification handler code here
    
SetDlgItemText(uID,"0");
    
CString str;
    
str.Format ("%d",uID-1000);
    
SetDlgItemText(IDC_BUTTON0,str);    

in the above code, I changed the text of button 0 with the button with uID as ID. Any one can help me on this????
Thank You.