Solved

How to disable radiobatton in dialog?

Posted on 2002-04-01
1
287 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
Comment Utility
GetDlgItem(IDC_BUTTON1)->EnableWindow(FALSE);
where IDC_BUTTON1 is the ID of the radio button in question.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

763 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

11 Experts available now in Live!

Get 1:1 Help Now