Home | Info | Community | Development | myReactOS | Contact Us
[static]
Definition at line 290 of file powershemes.c.
Referenced by CreateEnergyList().
{ int ifrom=0,i=0,imin=0; HWND hwnd = NULL; TCHAR szName[MAX_PATH]; LRESULT index; for(i=1;i<9;i++) { switch(i) { case 1: hwnd=GetDlgItem(hwndDlg, IDC_MONITORACLIST); imin=IDS_TIMEOUT1; break; case 2: hwnd=GetDlgItem(hwndDlg, IDC_STANDBYACLIST); imin=IDS_TIMEOUT1; break; case 3: hwnd=GetDlgItem(hwndDlg, IDC_DISKACLIST); imin=IDS_TIMEOUT3; break; case 4: hwnd=GetDlgItem(hwndDlg, IDC_HYBERNATEACLIST); imin=IDS_TIMEOUT3; break; case 5: hwnd=GetDlgItem(hwndDlg, IDC_MONITORDCLIST); imin=IDS_TIMEOUT1; break; case 6: hwnd=GetDlgItem(hwndDlg, IDC_STANDBYDCLIST); imin=IDS_TIMEOUT1; break; case 7: hwnd=GetDlgItem(hwndDlg, IDC_DISKDCLIST); imin=IDS_TIMEOUT3; break; case 8: hwnd=GetDlgItem(hwndDlg, IDC_HYBERNATEDCLIST); imin=IDS_TIMEOUT3; break; default: return; } for (ifrom=imin;ifrom<(IDS_TIMEOUT15+1);ifrom++) { if (LoadString(hApplet, ifrom, szName, MAX_PATH)) { index = SendMessage(hwnd, CB_ADDSTRING, 0, (LPARAM)szName); if (index == CB_ERR) return; SendMessage(hwnd, CB_SETITEMDATA, index, (LPARAM)Sec[ifrom-IDS_TIMEOUT16]); } } if (LoadString(hApplet, IDS_TIMEOUT16, szName, MAX_PATH)) { index = SendMessage(hwnd, CB_ADDSTRING, 0, (LPARAM)szName); if (index == CB_ERR) return; SendMessage(hwnd, CB_SETITEMDATA, index, (LPARAM)Sec[0]); } } }