|
-
April 30th, 2004, 02:01 AM
#1
Swap Button Positions
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.
Come Join This Poll Where are we from? (Ultimate)
Knowing is not enough; we must apply. Willing is not enough; we must do. - Johann Wolfgang
An idle brain is the devil's workshop. - unknown
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|