Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Initializing Porperty Page with values from registry

Status
Not open for further replies.

Guest11

IS-IT--Management
Jul 24, 2003
3
0
0
IL
How I do initialize a property page with values from registry. I am able to get the value (using REgKey). But how do I initialize the radio buttons. I have a group with 5 radios.

Also where do I put that code so that when I switch bet pages, the most current value 9clicked by user) is shown and NOT the value stored in memory.

Thanx in advance.
 
if your radio buttons are grouped, than assign a member variable to the radio that has the group option set (in the resource editor).
this variable is an integer , u can assign values to it from 0 to 4 (if 0 the first radio is selected, if 1 the second and so on).
you need to do the assigning in the OnInitDialog() handler of your property page.
and of course don't forget UpdateData(FALSE)

hope this helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top