DISABLED flag
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2023 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
579590a395
commit
3425f84a88
1 changed files with 9 additions and 5 deletions
|
@ -115,21 +115,22 @@ char *STRDUP(const char *c)
|
|||
// general flags
|
||||
#define FLAG_BOLD (1)
|
||||
#define FLAG_RIGHT (2)
|
||||
#define FLAG_DISABLED (4)
|
||||
|
||||
// text box flags
|
||||
#define FLAG_PASSWORD (4)
|
||||
#define FLAG_PASSWORD (8)
|
||||
|
||||
// listbox flags
|
||||
#define FLAG_MULTISELECT (8)
|
||||
#define FLAG_MULTISELECT (16)
|
||||
|
||||
// combobox flags
|
||||
#define FLAG_DROPLIST (16)
|
||||
#define FLAG_DROPLIST (32)
|
||||
|
||||
// bitmap flags
|
||||
#define FLAG_RESIZETOFIT (32)
|
||||
#define FLAG_RESIZETOFIT (64)
|
||||
|
||||
// radio button flags
|
||||
#define FLAG_GROUP (64)
|
||||
#define FLAG_GROUP (128)
|
||||
|
||||
struct TableEntry {
|
||||
char *pszName;
|
||||
|
@ -519,6 +520,7 @@ bool ReadSettings(void) {
|
|||
{ "FILE_HIDEREADONLY", OFN_HIDEREADONLY },
|
||||
{ "RESIZETOFIT", FLAG_RESIZETOFIT },
|
||||
{ "GROUP", FLAG_GROUP },
|
||||
{ "DISABLED", FLAG_DISABLED },
|
||||
/*
|
||||
{ "NO_ALPHA", 0 },
|
||||
{ "NO_NUMBERS", 0 },
|
||||
|
@ -932,6 +934,8 @@ int createCfgDlg()
|
|||
break;
|
||||
}
|
||||
|
||||
if (pFields[nIdx.nFlags & FLAG_DISABLED) dwStyle |= WS_DISABLED;
|
||||
|
||||
HWND hwCtrl = pFields[nIdx].hwnd = CreateWindowEx(
|
||||
dwExStyle,
|
||||
ClassTable[pFields[nIdx].nType - 1].pszClass,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue