Dialog Box for Settings
I just tried it and it works perfectly. Thank you to the three of you who offered your assistance.
Just another Corporate slave trying to release himself into the OpenGL void.
You can also pre-set values in the dialog if you want. You can do this by calling CheckDlgButton() inside the WM_INITDIALOG message.
ex (from the previous example):
case WM_INITDIALOG:
{
CheckDlgButton(hwndDlg, IDC_RADIO2, true);
}
You could use this to possibly store the last settings that the person used, and then automatically default to those settings when starting the program again. For edit boxes, you could use the functions SetDlgItemInt(), and SetDlgItemText() to set default values.
jw
ex (from the previous example):
case WM_INITDIALOG:
{
CheckDlgButton(hwndDlg, IDC_RADIO2, true);
}
You could use this to possibly store the last settings that the person used, and then automatically default to those settings when starting the program again. For edit boxes, you could use the functions SetDlgItemInt(), and SetDlgItemText() to set default values.
jw
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement