Advertisement

Dialog Box for Settings

Started by October 02, 2001 09:23 PM
12 comments, last by Wiz74 23 years, 4 months ago
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
Advertisement
thanks jwace81!
[email=JValentine_13@hotmail.com]contact[/email]
Thanx jwace81, this is the next thing I was going to have a look into.
Just another Corporate slave trying to release himself into the OpenGL void.

This topic is closed to new replies.

Advertisement