Solved

Disable TButton in OWL (Borland C++)

Posted on 1997-01-14
1
729 Views
Last Modified: 2010-05-18
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.
0
Comment
Question by:tovergaard
1 Comment
 

Accepted Solution

by:
rodent earned 80 total points
ID: 1162196
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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now