Re: Check a radio button
- From: "Usman Jamil" <usman@xxxxxxxxxxx>
- Date: Mon, 4 Jun 2007 15:46:37 +0500
Hi
I also agree that one must make life easier. If they have provided control
variables, one must use it. I said so, because I was having problem using
the variable. I have an application that contains some dialogs which are
different tabs of a property*** that itself is placed on a main dialog.
There are different controls on each tab of the property***. I used a
class from codeguru that is used to resize the dialog. The class internally
resizes all the controls on dialog too. There is some problem with that
code, due to which if I assign a variable to the control on a dialog (tab of
a prop ***), it disturb the size of the dialog in that tab and some
controls on the edges vanish due to the limited size of the main dialog.
There must be some problem with that class but instead of waiting for a fix
to be released, I thought not to use the variables.
I also tried GetDlgItem SetCheck but it was not working, strange but I must
be missing something. Anyway GetDlgItem and SetCheck is the solution and its
working fine now.
Thanks everyone for your posts.
Regards
Usman
"Joseph M. Newcomer" <newcomer@xxxxxxxxxxxx> wrote in message
news:st3u53tntb7baot7c4klqupc1hrobtt6as@xxxxxxxxxx
See below...
On Thu, 31 May 2007 18:42:09 +0500, "Usman Jamil" <usman@xxxxxxxxxxx>
wrote:
Hi*****
I'm working in VC++. I've two radio buttons on a dialog. When the dialog
appears, none of those two is checked. Is there any way I can show either
one of the radio buttons to be checked by default when the dialog appears.
I
have to do it without adding a control variable to the radio buttons.
This is such a profoundly silly restriction it hardly seems worth
answering the question.
In what weird world do you live in where creating control variables is
even considered
optional? I find the statement to be nonsensical. Can you justify such a
ridiculous
requirement?
Try
CheckRadioButton(low, high, selection)
but try to think about programming a reasonable fashion, and questions
that suggest that
creating a control variable is somehow something other than the most
fundamental paradigm
of programming strike me that you are living a world of cluelessness.
joe
*****
Joseph M. Newcomer [MVP]
Regards
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- Follow-Ups:
- Re: Check a radio button
- From: Joseph M . Newcomer
- Re: Check a radio button
- Prev by Date: Re: Help please
- Next by Date: PostMessage return access denied
- Previous by thread: Re: Check a radio button
- Next by thread: Re: Check a radio button
- Index(es):