static BOOL exportFlist_OnInitDialog(HWND hwnd, HWND hwndFocus, LPARAM lParam) { LPFlistEntry lpFlistEntry=(LPFlistEntry)lParam; SetDlgData(hwnd, lpFlistEntry); SetDlgItemText(hwnd, CID_FILENAME, lpFlistEntry->flistName); RadioButton(hwnd, CID_LOCAL, lpFlistEntry->flistFlags&FLIST_FLAG_EXPORT ? CID_EXPORT : lpFlistEntry->flistFlags&FLIST_FLAG_FILEPOOL ? CID_TRANSFORM : CID_LOCAL); return(TRUE); }
static BOOL exportFdir_OnInitDialog(HWND hwnd, HWND hwndFocus, LPARAM lParam) { LPExportFdirData lpExportFdirData=(LPExportFdirData)lParam; SetDlgData(hwnd, lpExportFdirData); SetDlgItemText(hwnd, CID_FILENAME, lpExportFdirData->lpFdirEntry->fdirName); ShowWindow(GetDlgItem(hwnd, CID_TRANSFORM), lpExportFdirData->bTransformOK); EnableWindow(GetDlgItem(hwnd, CID_EXPORT), lpExportFdirData->bExportOK); RadioButton(hwnd, CID_LOCAL, lpExportFdirData->lpFdirEntry->fdirFlags&FDIR_FLAG_EXPORT ? CID_EXPORT : lpExportFdirData->lpFdirEntry->fdirFlags&FDIR_FLAG_FILEPOOL ? CID_TRANSFORM : CID_LOCAL); return(TRUE); }
BOOL CALLBACK ConfigureProc(HWND dlg,UINT message,WPARAM wParam,LPARAM lParam) { static ConfContext *Context; switch(message) { case WM_INITDIALOG : Context = (ConfContext*)((HostData*)lParam)->ProcData->Context; SetDlgData(dlg,Context); SetFocus(GetDlgItem(dlg,IDC_Debug)); return FALSE; break; case WM_COMMAND: switch LOWORD(wParam) { case IDOK: GetDlgData(dlg,Context); EndDialog(dlg,IDOK); return TRUE; case IDCANCEL: EndDialog(dlg,IDCANCEL); return TRUE; break; } } return FALSE; }