Skip to main content
gamedev.net
🔒 Locked

Radio button data

Started by cppcdr 2 replies 600+ views
Original Post
cppcdr
cppcdr
Is there a function that can tell if a certian radio button is checked?
Shannon Barber
Shannon Barber
What API? Win32? You can send each radio button a message and see what its status is.
The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara
yadango
yadango
Win32 would go something like this (off the top of my head so don't quote me on it exactly :P) ->
int state = (int)SendMessage(rbuttonhandle, BM_GETCHECK, 0, 0);
if(state == BST_CHECKED) ;
else if(state == BST_UNCHECKED) ;
else if(state == BST_INDETERMINANT) ;
cppcdr
cppcdr
Thanks!

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.