Disable TButton in OWL (Borland C++)

How can a button (the TButton class) maded in OWL from Borland C++ version 4.5 be disabled. By disable, do I mean make the button gray.
LVL 2
tovergaardAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
rodentConnect With a Mentor Commented:
get the window handle, and use EnableWindow(hWnd, FALSE) or whatever the call is (look under EnableWindow)

if you can only get the control ID of the button, use EnableWindow(GetDlgItem(hWndDlg, CtlId), FALSE)

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.