Solved

How to disable radiobatton in dialog?

Posted on 2002-04-01
1
296 Views
Last Modified: 2012-06-27
I'm using this function and it is working fine for checkbox but not working for radiobutton

SendDlgItemMessage(HWND,BUTTON1,WM_ENABLE,0,0);//disable

What is wrong?
0
Comment
Question by:serg111
1 Comment
 
LVL 4

Accepted Solution

by:
pagladasu earned 100 total points
ID: 6911532
GetDlgItem(IDC_BUTTON1)->EnableWindow(FALSE);
where IDC_BUTTON1 is the ID of the radio button in question.
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

790 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