Click to See Complete Forum and Search --> : Disabling a Button, and executing other progs...


May 10th, 1999, 11:39 PM
I'm having 2 major problems right now. First, I need to find out how to disable a button(stop laughing, I'm new). I also need to know how to Winexec something and after that's done, Winexec something else. Please help.

Dan Haddix
May 11th, 1999, 01:37 AM
I don't know about the second question (I still pretty new at this too), but I do know the first one. Just use something like this...

CButton* pB = (CButton*)GetDlgItem(IDC_BUTTONNAME);
pB->EnableWindow(FALSE);

sally
May 11th, 1999, 01:48 AM
Try ShellExecute() or ShellExecuteEx()

Sally

Sally
May 11th, 1999, 01:48 AM
Try ShellExecute() or ShellExecuteEx()

Sally