Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members | Related Pages

Prefs_WIN32.i File Reference

#include <commctrl.h>
#include "resource.h"

Include dependency graph for Prefs_WIN32.i:

Include dependency graph

Go to the source code of this file.

Defines

#define STANDARD_PAGE   0
#define WIN32_PAGE   1
#define SetupSpin(id, upper, lower)   SendMessage(GetDlgItem(hDlg, id), UDM_SETRANGE, 0, MAKELONG(upper, lower))
#define SetupSpinIncrement(id, increment)   (udaccel.nSec = 0, udaccel.nInc = increment, SendMessage(GetDlgItem(hDlg, id), UDM_SETACCEL, 1, (LPARAM) &udaccel))
#define SetupComboClear(id)   SendMessage(GetDlgItem(hDlg, id), CB_RESETCONTENT, 0, 0)
#define SetupComboAdd(id, string)   SendMessage(GetDlgItem(hDlg, id), CB_ADDSTRING, 0, (LPARAM) string)
#define SetText(id, val)   SetDlgItemText(hDlg, id, val)
#define SetInteger(id, val)   SetDlgItemInt(hDlg, id, val, FALSE)
#define SetCheckBox(id, val)   CheckDlgButton(hDlg, id, (val) ? BST_CHECKED : BST_UNCHECKED)
#define SetCombo(id, val)   SendMessage(GetDlgItem(hDlg, id), CB_SELECTSTRING, 0, (LPARAM) val)
#define GetCheckBox(id, val)   (val = IsDlgButtonChecked(hDlg, id) == BST_CHECKED)
#define GetInteger(id, val)   (val = GetDlgItemInt(hDlg, id, NULL, FALSE))
#define GetText(id, val)   GetDlgItemText(hDlg, id, val, sizeof(val))


Define Documentation

#define GetCheckBox id,
val   )     (val = IsDlgButtonChecked(hDlg, id) == BST_CHECKED)
 

Definition at line 258 of file Prefs_WIN32.i.

#define GetInteger id,
val   )     (val = GetDlgItemInt(hDlg, id, NULL, FALSE))
 

Definition at line 259 of file Prefs_WIN32.i.

#define GetText id,
val   )     GetDlgItemText(hDlg, id, val, sizeof(val))
 

Definition at line 260 of file Prefs_WIN32.i.

#define SetCheckBox id,
val   )     CheckDlgButton(hDlg, id, (val) ? BST_CHECKED : BST_UNCHECKED)
 

Definition at line 192 of file Prefs_WIN32.i.

#define SetCombo id,
val   )     SendMessage(GetDlgItem(hDlg, id), CB_SELECTSTRING, 0, (LPARAM) val)
 

Definition at line 193 of file Prefs_WIN32.i.

#define SetInteger id,
val   )     SetDlgItemInt(hDlg, id, val, FALSE)
 

Definition at line 191 of file Prefs_WIN32.i.

#define SetText id,
val   )     SetDlgItemText(hDlg, id, val)
 

Definition at line 190 of file Prefs_WIN32.i.

Referenced by PathControl::MessageReceived(), and NumberControl::SetValue().

#define SetupComboAdd id,
string   )     SendMessage(GetDlgItem(hDlg, id), CB_ADDSTRING, 0, (LPARAM) string)
 

Definition at line 137 of file Prefs_WIN32.i.

#define SetupComboClear id   )     SendMessage(GetDlgItem(hDlg, id), CB_RESETCONTENT, 0, 0)
 

Definition at line 136 of file Prefs_WIN32.i.

#define SetupSpin id,
upper,
lower   )     SendMessage(GetDlgItem(hDlg, id), UDM_SETRANGE, 0, MAKELONG(upper, lower))
 

Definition at line 134 of file Prefs_WIN32.i.

#define SetupSpinIncrement id,
increment   )     (udaccel.nSec = 0, udaccel.nInc = increment, SendMessage(GetDlgItem(hDlg, id), UDM_SETACCEL, 1, (LPARAM) &udaccel))
 

Definition at line 135 of file Prefs_WIN32.i.

#define STANDARD_PAGE   0
 

Definition at line 15 of file Prefs_WIN32.i.

#define WIN32_PAGE   1
 

Definition at line 16 of file Prefs_WIN32.i.


Generated on Tue Feb 8 04:10:36 2005 for E32frodo by doxygen 1.3.3