I have added 4 group Boxes on my Dialog based App and in Each Group there are 3 Radio Buttons.
According to the user's Selection, i want to get the combination of radio Buttons and Function according to the selection?
For Ex:- In one group Box there are 3 Radio Buttons say 600 DPI,
300 DPI and
and same in the other Group Box. Suppose if user has selected 300 DPI in one Group Box and 150 DPI in Other Group Box. Then i want to know how to get that user has selected so and so combination.
I m using GetCheckedRadioButon(1stRadioID, LastRadioID) but m not getting anything from that?
Please help me Out.
I'm assuming you're using an MFC based dialog application.
If this assumption is right, read on.
For the first radio button of each group, set its Group property to True.
Right click on this radio button and select Add Variable and create an integer variable.
The above step is only possible with a radio button whose Group property is set to True.
To get the user selection, simply call UpdateData() and the integer variable will contain the 0-based index of the selected radio button.
«_Superman_» I love work. It gives me something to do between weekends.
every one i have created the file using the createFile.
HANDLE temp_file = CreateFile(sourceFileName,GENERIC_WRITE|GENERIC_READ,/*FILE_SHARE_WRITE|FILE_SHARE_READ*/NULL,NULL,CREATE_ALWAYS,FILE_ATTRIBUTE_HIDDEN /*FILE_ATTRIBUTE_NORMAL*/,NULL);
in windows vista i have created but its getting deleted in windows 8 and windows xp .
what will be the reason .
My application am creating the file.i am calling the exe for the preview of the file after closing the exe the file is getting dleted,its working fine on windows 7 and vista even am not use the delete file API not the exe which am calling has no dletefile API ...