Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 301
  • Last Modified:

How to disable radiobatton in dialog?

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
serg111
Asked:
serg111
1 Solution
 
pagladasuCommented:
GetDlgItem(IDC_BUTTON1)->EnableWindow(FALSE);
where IDC_BUTTON1 is the ID of the radio button in question.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now