Solved

Disable TButton in OWL (Borland C++)

Posted on 1997-01-14
1
726 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…

747 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

8 Experts available now in Live!

Get 1:1 Help Now