Click here to Skip to main content
15,918,330 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: bluetooth code Pin
CPallini26-Jul-09 23:17
mveCPallini26-Jul-09 23:17 
AnswerRe: bluetooth code Pin
killabyte26-Jul-09 23:26
killabyte26-Jul-09 23:26 
QuestionHeaderCtrl Pin
kumar sanghvi26-Jul-09 22:51
kumar sanghvi26-Jul-09 22:51 
AnswerRe: HeaderCtrl [modified] Pin
Adam Roderick J26-Jul-09 22:54
Adam Roderick J26-Jul-09 22:54 
AnswerRe: HeaderCtrl Pin
«_Superman_»26-Jul-09 22:56
professional«_Superman_»26-Jul-09 22:56 
GeneralRe: HeaderCtrl [modified] Pin
kumar sanghvi26-Jul-09 23:23
kumar sanghvi26-Jul-09 23:23 
GeneralRe: HeaderCtrl Pin
kumar sanghvi27-Jul-09 0:20
kumar sanghvi27-Jul-09 0:20 
GeneralRe: HeaderCtrl Pin
«_Superman_»27-Jul-09 2:02
professional«_Superman_»27-Jul-09 2:02 
QuestionHowto Load Windows Standard Modem through Code Pin
matiboyin26-Jul-09 22:35
matiboyin26-Jul-09 22:35 
AnswerRe: Howto Load Windows Standard Modem through Code Pin
«_Superman_»26-Jul-09 22:53
professional«_Superman_»26-Jul-09 22:53 
Questionseamlees play the clips Pin
raj157626-Jul-09 21:11
raj157626-Jul-09 21:11 
QuestionGmfBridge dynamic clip play from the list problem Pin
raj157626-Jul-09 19:55
raj157626-Jul-09 19:55 
AnswerRe: GmfBridge dynamic clip play from the list problem Pin
CPallini26-Jul-09 21:09
mveCPallini26-Jul-09 21:09 
GeneralRe: GmfBridge dynamic clip play from the list problem Pin
raj157626-Jul-09 21:15
raj157626-Jul-09 21:15 
GeneralRe: GmfBridge dynamic clip play from the list problem Pin
CPallini26-Jul-09 21:32
mveCPallini26-Jul-09 21:32 
AnswerRe: GmfBridge dynamic clip play from the list problem Pin
manutechalpy3086-Aug-09 4:38
manutechalpy3086-Aug-09 4:38 
GeneralRe: GmfBridge dynamic clip play from the list problem Pin
Member 24062014-Aug-10 1:05
Member 24062014-Aug-10 1:05 
GeneralRe: GmfBridge dynamic clip play from the list problem Pin
manutechalpy30814-Aug-10 4:11
manutechalpy30814-Aug-10 4:11 
QuestionPlease help in c++ Pin
Neil Jigger26-Jul-09 16:41
Neil Jigger26-Jul-09 16:41 
AnswerRe: Please help in c++ Pin
«_Superman_»26-Jul-09 17:07
professional«_Superman_»26-Jul-09 17:07 
I'm assuming you're using MFC.

Make sure the radio buttons belong to the same group.
You can do this by setting the group property of the first radio button to true.
And the rest of the radio button must follow the first in order.

Now associate an int variable with the first radio button by right clicking on it and selecting "Add Variable".
Similarly associate an int variable with the edit box.

In the button click handler, first call UpdateData.
This will update the UI selection to the variables just added.
Check the value of the radio button variable to determine the option selected.
It will be 0 for first, 1 for second and so on.

Do your calculation and set the result to the variable associated with the edit box.
Finally call UpdateData(FALSE) to set the variables back to the UI.

«_Superman
I love work. It gives me something to do between weekends.

GeneralRe: Please help in c++ (Superman) Pin
Neil Jigger26-Jul-09 17:16
Neil Jigger26-Jul-09 17:16 
GeneralRe: Please help in c++ (Superman) Pin
Chandrasekharan P26-Jul-09 18:38
Chandrasekharan P26-Jul-09 18:38 
GeneralRe: Please help in c++ (Superman) Pin
Neil Jigger26-Jul-09 19:35
Neil Jigger26-Jul-09 19:35 
GeneralRe: Please help in c++ (Superman) Pin
Chandrasekharan P26-Jul-09 20:21
Chandrasekharan P26-Jul-09 20:21 
GeneralRe: Please help in c++ (Superman) Pin
Neil Jigger26-Jul-09 20:27
Neil Jigger26-Jul-09 20:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.