show_effects_params.h

 VOID ShowChorusParams(HWND hDlg,DSFXChorus dsChorus)
{
SetDlgItemText(hDlg,IDT_TITLE,"Chorus parameters");

SetDlgItemText(hDlg,IDT_1,"Wet / Dry mix (%)");
SetDlgItemText(hDlg,IDT_2,"Depth (%)");
SetDlgItemText(hDlg,IDT_3,"Feedback (%)");
SetDlgItemText(hDlg,IDT_4,"Frequency (Hz)");
SetDlgItemText(hDlg,IDT_5,"Delay (ms)");

EnableWindow(GetDlgItem(hDlg,IDT_SLIDER1),true);
SendMessage(GetDlgItem(hDlg,IDT_SLIDER1),TBM_SETRANGE,0,MAKELPARAM(0,100));
SendMessage(GetDlgItem(hDlg,IDT_SLIDER1),TBM_SETPOS,TRUE,dsChorus.fWetDryMix);

EnableWindow(GetDlgItem(hDlg,IDT_SLIDER2),true);
SendMessage(GetDlgItem(hDlg,IDT_SLIDER2),TBM_SETRANGE,0,MAKELPARAM(0,100));
SendMessage(GetDlgItem(hDlg,IDT_SLIDER2),TBM_SETPOS,TRUE,dsChorus.fDepth);

EnableWindow(GetDlgItem(hDlg,IDT_SLIDER3),true);
SendMessage(GetDlgItem(hDlg,IDT_SLIDER3),TBM_SETRANGE,0,MAKELPARAM(-99,99));
SendMessage(GetDlgItem(hDlg,IDT_SLIDER3),TBM_SETPOS,TRUE,dsChorus.fFeedback);

EnableWindow(GetDlgItem(hDlg,IDT_SLIDER4),true);
SendMessage(GetDlgItem(hDlg,IDT_SLIDER4),TBM_SETRANGE,0,MAKELPARAM(0,10));
SendMessage(GetDlgItem(hDlg,IDT_SLIDER4),TBM_SETPOS,TRUE,dsChorus.fFrequency);

EnableWindow(GetDlgItem(hDlg,IDT_SLIDER5),true);
SendMessage(GetDlgItem(hDlg,IDT_SLIDER5),TBM_SETRANGE,0,MAKELPARAM(0,20));
SendMessage(GetDlgItem(hDlg,IDT_SLIDER5),TBM_SETPOS,TRUE,dsChorus.fDelay);

EnableWindow(GetDlgItem(hDlg,IDT_SAY_1),true);
SetDlgItemInt(hDlg,IDT_SAY_1,dsChorus.fWetDryMix,true);

EnableWindow(GetDlgItem(hDlg,IDT_SAY_2),true);
SetDlgItemInt(hDlg,IDT_SAY_2,dsChorus.fDepth,true);

EnableWindow(GetDlgItem(hDlg,IDT_SAY_3),true);
SetDlgItemInt(hDlg,IDT_SAY_3,dsChorus.fFeedback,true);

EnableWindow(GetDlgItem(hDlg,IDT_SAY_4),true);
SetDlgItemInt(hDlg,IDT_SAY_4,dsChorus.fFrequency,true);

EnableWindow(GetDlgItem(hDlg,IDT_SAY_5),true);
SetDlgItemInt(hDlg,IDT_SAY_5,dsChorus.fDelay,true);

EnableWindow(GetDlgItem(hDlg,IDR_MINUS180),true);
EnableWindow(GetDlgItem(hDlg,IDR_MINUS90),true);
EnableWindow(GetDlgItem(hDlg,IDR_ZERO),true);
EnableWindow(GetDlgItem(hDlg,IDR_PLUS90),true);
EnableWindow(GetDlgItem(hDlg,IDR_PLUS180),true);

CheckDlgButton(hDlg,IDR_PLUS90,true);
}

VOID ShowCompressorParams(HWND hDlg,DSFXCompressor dsCompressor)
{
SetDlgItemText(hDlg,IDT_TITLE,"Compressor parameters");

SetDlgItemText(hDlg,IDT_1,"Gain (dB)");
SetDlgItemText(hDlg,IDT_2,"Attack (ms)");
SetDlgItemText(hDlg,IDT_3,"Release (ms)");
SetDlgItemText(hDlg,IDT_4,"Threshold (dB)");
SetDlgItemText(hDlg,IDT_5,"Ratio (x:1)");

EnableWindow(GetDlgItem(hDlg,IDT_SLIDER1),true);
SendMessage(GetDlgItem(hDlg,IDT_SLIDER1),TBM_SETRANGE,0,MAKELPARAM(-60,60));
SendMessage(GetDlgItem(hDlg,IDT_SLIDER1),TBM_SETPOS,TRUE,dsCompressor.fGain);

EnableWindow(GetDlgItem(hDlg,IDT_SLIDER2),true);
SendMessage(GetDlgItem(hDlg,IDT_SLIDER2),TBM_SETRANGE,0,MAKELPARAM(0,500));
SendMessage(GetDlgItem(hDlg,IDT_SLIDER2),TBM_SETPOS,TRUE,dsCompressor.fAttack);

EnableWindow(GetDlgItem(hDlg,IDT_SLIDER3),true);
SendMessage(GetDlgItem(hDlg,IDT_SLIDER3),TBM_SETRANGE,0,MAKELPARAM(50,3000));
SendMessage(GetDlgItem(hDlg,IDT_SLIDER3),TBM_SETPOS,TRUE,dsCompressor.fRelease);

EnableWindow(GetDlgItem(hDlg,IDT_SLIDER4),true);
SendMessage(GetDlgItem(hDlg,IDT_SLIDER4),TBM_SETRANGE,0,MAKELPARAM(-60,0));
SendMessage(GetDlgItem(hDlg,IDT_SLIDER4),TBM_SETPOS,TRUE,dsCompressor.fThreshold);

EnableWindow(GetDlgItem(hDlg,IDT_SLIDER5),true);
SendMessage(GetDlgItem(hDlg,IDT_SLIDER5),TBM_SETRANGE,0,MAKELPARAM(1,100));
SendMessage(GetDlgItem(hDlg,IDT_SLIDER5),TBM_SETPOS,TRUE,dsCompressor.fRatio);

EnableWindow(GetDlgItem(hDlg,IDT_SAY_1),true);
SetDlgItemInt(hDlg,IDT_SAY_1,dsCompressor.fGain,true);

EnableWindow(GetDlgItem(hDlg,IDT_SAY_2),true);
SetDlgItemInt(hDlg,IDT_SAY_2,dsCompressor.fAttack,true);

EnableWindow(GetDlgItem(hDlg,IDT_SAY_3),true);
SetDlgItemInt(hDlg,IDT_SAY_3,dsCompressor.fRelease,true);

EnableWindow(GetDlgItem(hDlg,IDT_SAY_4),true);
SetDlgItemInt(hDlg,IDT_SAY_4,dsCompressor.fThreshold,true);

EnableWindow(GetDlgItem(hDlg,IDT_SAY_5),true);
SetDlgItemInt(hDlg,IDT_SAY_5,dsCompressor.fRatio,true);

EnableWindow(GetDlgItem(hDlg,IDR_MINUS180),false);
EnableWindow(GetDlgItem(hDlg,IDR_MINUS90),false);
EnableWindow(GetDlgItem(hDlg,IDR_ZERO),false);
EnableWindow(GetDlgItem(hDlg,IDR_PLUS90),false);
EnableWindow(GetDlgItem(hDlg,IDR_PLUS180),false);

CheckDlgButton(hDlg,IDR_MINUS180,false);
CheckDlgButton(hDlg,IDR_MINUS90,false);
CheckDlgButton(hDlg,IDR_ZERO,false);
CheckDlgButton(hDlg,IDR_PLUS90,false);
CheckDlgButton(hDlg,IDR_PLUS180,false);
}

VOID ShowDistortionParams(HWND hDlg,DSFXDistortion dsDistortion)
{
SetDlgItemText(hDlg,IDT_TITLE,"Distortion parameters");

SetDlgItemText(hDlg,IDT_1,"Gain (dB)");
SetDlgItemText(hDlg,IDT_2,"Edge (%)");
SetDlgItemText(hDlg,IDT_3,"PostEq Center Freq (Hz)");
SetDlgItemText(hDlg,IDT_4,"PostEq Bandwidth (Hz)");
SetDlgItemText(hDlg,IDT_5,"PreLowpassCutoff (Hz)");

EnableWindow(GetDlgItem(hDlg,IDT_SLIDER1),true);
SendMessage(GetDlgItem(hDlg,IDT_SLIDER1),TBM_SETRANGE,0,MAKELPARAM(-60,0));
SendMessage(GetDlgItem(hDlg,IDT_SLIDER1),TBM_SETPOS,TRUE,dsDistortion.fGain);

EnableWindow(GetDlgItem(hDlg,IDT_SLIDER2),true);
SendMessage(GetDlgItem(hDlg,IDT_SLIDER2),TBM_SETRANGE,0,MAKELPARAM(0,100));
SendMessage(GetDlgItem(hDlg,IDT_SLIDER2),TBM_SETPOS,TRUE,dsDistortion.fEdge);

EnableWindow(GetDlgItem(hDlg,IDT_SLIDER3),true);
SendMessage(GetDlgItem(hDlg,IDT_SLIDER3),TBM_SETRANGE,0,MAKELPARAM(100,8000));
SendMessage(GetDlgItem(hDlg,IDT_SLIDER3),TBM_SETPOS,TRUE,dsDistortion.fPostEQCenterFrequency);

EnableWindow(GetDlgItem(hDlg,IDT_SLIDER4),true);
SendMessage(GetDlgItem(hDlg,IDT_SLIDER4),TBM_SETRANGE,0,MAKELPARAM(100,8000));
SendMessage(GetDlgItem(hDlg,IDT_SLIDER4),TBM_SETPOS,TRUE,dsDistortion.fPostEQBandwidth);

EnableWindow(GetDlgItem(hDlg,IDT_SLIDER5),true);
SendMessage(GetDlgItem(hDlg,IDT_SLIDER5),TBM_SETRANGE,0,MAKELPARAM(100,8000));
SendMessage(GetDlgItem(hDlg,IDT_SLIDER5),TBM_SETPOS,TRUE,dsDistortion.fPreLowpassCutoff);

EnableWindow(GetDlgItem(hDlg,IDT_SAY_1),true);
SetDlgItemInt(hDlg,IDT_SAY_1,dsDistortion.fGain,true);

EnableWindow(GetDlgItem(hDlg,IDT_SAY_2),true);
SetDlgItemInt(hDlg,IDT_SAY_2,dsDistortion.fEdge,true);

EnableWindow(GetDlgItem(hDlg,IDT_SAY_3),true);
SetDlgItemInt(hDlg,IDT_SAY_3,dsDistortion.fPostEQCenterFrequency,true);

EnableWindow(GetDlgItem(hDlg,IDT_SAY_4),true);
SetDlgItemInt(hDlg,IDT_SAY_4,dsDistortion.fPostEQBandwidth,true);

EnableWindow(GetDlgItem(hDlg,IDT_SAY_5),true);
SetDlgItemInt(hDlg,IDT_SAY_5,dsDistortion.fPreLowpassCutoff,true);

EnableWindow(GetDlgItem(hDlg,IDR_MINUS180),false);
EnableWindow(GetDlgItem(hDlg,IDR_MINUS90),false);
EnableWindow(GetDlgItem(hDlg,IDR_ZERO),false);
EnableWindow(GetDlgItem(hDlg,IDR_PLUS90),false);
EnableWindow(GetDlgItem(hDlg,IDR_PLUS180),false);

CheckDlgButton(hDlg,IDR_MINUS180,false);
CheckDlgButton(hDlg,IDR_MINUS90,false);
CheckDlgButton(hDlg,IDR_ZERO,false);
CheckDlgButton(hDlg,IDR_PLUS90,false);
CheckDlgButton(hDlg,IDR_PLUS180,false);
}

VOID ShowEchoParams(HWND hDlg,DSFXEcho dsEcho)
{
SetDlgItemText(hDlg,IDT_TITLE,"Distortion parameters");

SetDlgItemText(hDlg,IDT_1,"Wet / Dry Mix (%)");
SetDlgItemText(hDlg,IDT_2,"Feedback (%)");
SetDlgItemText(hDlg,IDT_3,"Left delay (ms)");
SetDlgItemText(hDlg,IDT_4,"Right delay (ms)");
SetDlgItemText(hDlg,IDT_5,"Pan delay (bool)");

EnableWindow(GetDlgItem(hDlg,IDT_SLIDER1),true);
SendMessage(GetDlgItem(hDlg,IDT_SLIDER1),TBM_SETRANGE,0,MAKELPARAM(0,100));
SendMessage(GetDlgItem(hDlg,IDT_SLIDER1),TBM_SETPOS,TRUE,dsEcho.fWetDryMix);

EnableWindow(GetDlgItem(hDlg,IDT_SLIDER2),true);
SendMessage(GetDlgItem(hDlg,IDT_SLIDER2),TBM_SETRANGE,0,MAKELPARAM(0,100));
SendMessage(GetDlgItem(hDlg,IDT_SLIDER2),TBM_SETPOS,TRUE,dsEcho.fFeedback);

EnableWindow(GetDlgItem(hDlg,IDT_SLIDER3),true);
SendMessage(GetDlgItem(hDlg,IDT_SLIDER3),TBM_SETRANGE,0,MAKELPARAM(10,2000));
SendMessage(GetDlgItem(hDlg,IDT_SLIDER3),TBM_SETPOS,TRUE,dsEcho.fLeftDelay);

EnableWindow(GetDlgItem(hDlg,IDT_SLIDER4),true);
SendMessage(GetDlgItem(hDlg,IDT_SLIDER4),TBM_SETRANGE,0,MAKELPARAM(10,2000));
SendMessage(GetDlgItem(hDlg,IDT_SLIDER4),TBM_SETPOS,TRUE,dsEcho.fRightDelay);

EnableWindow(GetDlgItem(hDlg,IDT_SLIDER5),true);
SendMessage(GetDlgItem(hDlg,IDT_SLIDER5),TBM_SETRANGE,0,MAKELPARAM(0,1));
SendMessage(GetDlgItem(hDlg,IDT_SLIDER5),TBM_SETPOS,TRUE,dsEcho.lPanDelay);

EnableWindow(GetDlgItem(hDlg,IDT_SAY_1),true);
SetDlgItemInt(hDlg,IDT_SAY_1,dsEcho.fWetDryMix,true);

EnableWindow(GetDlgItem(hDlg,IDT_SAY_2),true);
SetDlgItemInt(hDlg,IDT_SAY_2,dsEcho.fFeedback,true);

EnableWindow(GetDlgItem(hDlg,IDT_SAY_3),true);
SetDlgItemInt(hDlg,IDT_SAY_3,dsEcho.fLeftDelay,true);

EnableWindow(GetDlgItem(hDlg,IDT_SAY_4),true);
SetDlgItemInt(hDlg,IDT_SAY_4,dsEcho.fRightDelay,true);

EnableWindow(GetDlgItem(hDlg,IDT_SAY_5),true);
SetDlgItemInt(hDlg,IDT_SAY_5,dsEcho.lPanDelay,true);

EnableWindow(GetDlgItem(hDlg,IDR_MINUS180),false);
EnableWindow(GetDlgItem(hDlg,IDR_MINUS90),false);
EnableWindow(GetDlgItem(hDlg,IDR_ZERO),false);
EnableWindow(GetDlgItem(hDlg,IDR_PLUS90),false);
EnableWindow(GetDlgItem(hDlg,IDR_PLUS180),false);

CheckDlgButton(hDlg,IDR_MINUS180,false);
CheckDlgButton(hDlg,IDR_MINUS90,false);
CheckDlgButton(hDlg,IDR_ZERO,false);
CheckDlgButton(hDlg,IDR_PLUS90,false);
CheckDlgButton(hDlg,IDR_PLUS180,false);
}

VOID ShowFlangerParams(HWND hDlg,DSFXFlanger dsFlanger)
{
SetDlgItemText(hDlg,IDT_TITLE,"Flanger parameters");

SetDlgItemText(hDlg,IDT_1,"Wet / Dry Mix (%)");
SetDlgItemText(hDlg,IDT_2,"Depth (%)");
SetDlgItemText(hDlg,IDT_3,"Feedback (%)");
SetDlgItemText(hDlg,IDT_4,"Frequency (Hz)");
SetDlgItemText(hDlg,IDT_5,"Delay (ms)");

EnableWindow(GetDlgItem(hDlg,IDT_SLIDER1),true);
SendMessage(GetDlgItem(hDlg,IDT_SLIDER1),TBM_SETRANGE,0,MAKELPARAM(0,100));
SendMessage(GetDlgItem(hDlg,IDT_SLIDER1),TBM_SETPOS,TRUE,dsFlanger.fWetDryMix);

EnableWindow(GetDlgItem(hDlg,IDT_SLIDER2),true);
SendMessage(GetDlgItem(hDlg,IDT_SLIDER2),TBM_SETRANGE,0,MAKELPARAM(0,100));
SendMessage(GetDlgItem(hDlg,IDT_SLIDER2),TBM_SETPOS,TRUE,dsFlanger.fDepth);

EnableWindow(GetDlgItem(hDlg,IDT_SLIDER3),true);
SendMessage(GetDlgItem(hDlg,IDT_SLIDER3),TBM_SETRANGE,0,MAKELPARAM(-99,99));
SendMessage(GetDlgItem(hDlg,IDT_SLIDER3),TBM_SETPOS,TRUE,dsFlanger.fFeedback);

EnableWindow(GetDlgItem(hDlg,IDT_SLIDER4),true);
SendMessage(GetDlgItem(hDlg,IDT_SLIDER4),TBM_SETRANGE,0,MAKELPARAM(0,10));
SendMessage(GetDlgItem(hDlg,IDT_SLIDER4),TBM_SETPOS,TRUE,dsFlanger.fFrequency);

EnableWindow(GetDlgItem(hDlg,IDT_SLIDER5),true);
SendMessage(GetDlgItem(hDlg,IDT_SLIDER5),TBM_SETRANGE,0,MAKELPARAM(0,4));
SendMessage(GetDlgItem(hDlg,IDT_SLIDER5),TBM_SETPOS,TRUE,dsFlanger.fDelay);

EnableWindow(GetDlgItem(hDlg,IDT_SAY_1),true);
SetDlgItemInt(hDlg,IDT_SAY_1,dsFlanger.fWetDryMix,true);

EnableWindow(GetDlgItem(hDlg,IDT_SAY_2),true);
SetDlgItemInt(hDlg,IDT_SAY_2,dsFlanger.fDepth,true);

EnableWindow(GetDlgItem(hDlg,IDT_SAY_3),true);
SetDlgItemInt(hDlg,IDT_SAY_3,dsFlanger.fFeedback,true);

EnableWindow(GetDlgItem(hDlg,IDT_SAY_4),true);
SetDlgItemInt(hDlg,IDT_SAY_4,dsFlanger.fFrequency,true);

EnableWindow(GetDlgItem(hDlg,IDT_SAY_5),true);
SetDlgItemInt(hDlg,IDT_SAY_5,dsFlanger.fDelay,true);

EnableWindow(GetDlgItem(hDlg,IDR_MINUS180),true);
EnableWindow(GetDlgItem(hDlg,IDR_MINUS90),true);
EnableWindow(GetDlgItem(hDlg,IDR_ZERO),true);
EnableWindow(GetDlgItem(hDlg,IDR_PLUS90),true);
EnableWindow(GetDlgItem(hDlg,IDR_PLUS180),true);

CheckDlgButton(hDlg,IDR_MINUS180,false);
CheckDlgButton(hDlg,IDR_MINUS90,false);
CheckDlgButton(hDlg,IDR_ZERO,true);
CheckDlgButton(hDlg,IDR_PLUS90,false);
CheckDlgButton(hDlg,IDR_PLUS180,false);
}

VOID ShowGargleParams(HWND hDlg,DSFXGargle dsGargle)
{
SetDlgItemText(hDlg,IDT_TITLE,"Gargle parameters");

SetDlgItemText(hDlg,IDT_1,"Rate (Hz)");
SetDlgItemText(hDlg,IDT_2,"N / A");
SetDlgItemText(hDlg,IDT_3,"N / A");
SetDlgItemText(hDlg,IDT_4,"N / A");
SetDlgItemText(hDlg,IDT_5,"N / A");

EnableWindow(GetDlgItem(hDlg,IDT_SLIDER1),true);
SendMessage(GetDlgItem(hDlg,IDT_SLIDER1),TBM_SETRANGE,0,MAKELPARAM(1,1000));
SendMessage(GetDlgItem(hDlg,IDT_SLIDER1),TBM_SETPOS,TRUE,dsGargle.dwRateHz);

EnableWindow(GetDlgItem(hDlg,IDT_SLIDER2),false);
EnableWindow(GetDlgItem(hDlg,IDT_SLIDER3),false);
EnableWindow(GetDlgItem(hDlg,IDT_SLIDER4),false);
EnableWindow(GetDlgItem(hDlg,IDT_SLIDER5),false);

EnableWindow(GetDlgItem(hDlg,IDT_SAY_1),true);
SetDlgItemInt(hDlg,IDT_SAY_1,dsGargle.dwRateHz,true);

EnableWindow(GetDlgItem(hDlg,IDT_SAY_2),false);
EnableWindow(GetDlgItem(hDlg,IDT_SAY_3),false);
EnableWindow(GetDlgItem(hDlg,IDT_SAY_4),false);
EnableWindow(GetDlgItem(hDlg,IDT_SAY_5),false);

EnableWindow(GetDlgItem(hDlg,IDR_MINUS180),false);
EnableWindow(GetDlgItem(hDlg,IDR_MINUS90),false);
EnableWindow(GetDlgItem(hDlg,IDR_ZERO),false);
EnableWindow(GetDlgItem(hDlg,IDR_PLUS90),false);
EnableWindow(GetDlgItem(hDlg,IDR_PLUS180),false);

CheckDlgButton(hDlg,IDR_MINUS180,false);
CheckDlgButton(hDlg,IDR_MINUS90,false);
CheckDlgButton(hDlg,IDR_ZERO,false);
CheckDlgButton(hDlg,IDR_PLUS90,false);
CheckDlgButton(hDlg,IDR_PLUS180,false);
}

VOID ShowParamEqParams(HWND hDlg,DSFXParamEq dsParamEq)
{
SetDlgItemText(hDlg,IDT_TITLE,"ParamEq parameters");

SetDlgItemText(hDlg,IDT_1,"Center Frequency (Hz)");
SetDlgItemText(hDlg,IDT_2,"Bandwidth (Hz)");
SetDlgItemText(hDlg,IDT_3,"Gain (dB)");
SetDlgItemText(hDlg,IDT_4,"N / A");
SetDlgItemText(hDlg,IDT_5,"N / A");

EnableWindow(GetDlgItem(hDlg,IDT_SLIDER1),true);
SendMessage(GetDlgItem(hDlg,IDT_SLIDER1),TBM_SETRANGE,0,MAKELPARAM(80,16000));
SendMessage(GetDlgItem(hDlg,IDT_SLIDER1),TBM_SETPOS,TRUE,dsParamEq.fCenter);

EnableWindow(GetDlgItem(hDlg,IDT_SLIDER2),true);
SendMessage(GetDlgItem(hDlg,IDT_SLIDER2),TBM_SETRANGE,0,MAKELPARAM(1,36));
SendMessage(GetDlgItem(hDlg,IDT_SLIDER2),TBM_SETPOS,TRUE,dsParamEq.fBandwidth);

EnableWindow(GetDlgItem(hDlg,IDT_SLIDER3),true);
SendMessage(GetDlgItem(hDlg,IDT_SLIDER3),TBM_SETRANGE,0,MAKELPARAM(-15,15));
SendMessage(GetDlgItem(hDlg,IDT_SLIDER3),TBM_SETPOS,TRUE,dsParamEq.fGain);

EnableWindow(GetDlgItem(hDlg,IDT_SLIDER4),false);
EnableWindow(GetDlgItem(hDlg,IDT_SLIDER5),false);

EnableWindow(GetDlgItem(hDlg,IDT_SAY_1),true);
SetDlgItemInt(hDlg,IDT_SAY_1,dsParamEq.fCenter,true);

EnableWindow(GetDlgItem(hDlg,IDT_SAY_2),true);
SetDlgItemInt(hDlg,IDT_SAY_2,dsParamEq.fBandwidth,true);

EnableWindow(GetDlgItem(hDlg,IDT_SAY_3),true);
SetDlgItemInt(hDlg,IDT_SAY_3,dsParamEq.fGain,true);

EnableWindow(GetDlgItem(hDlg,IDT_SAY_4),false);
SetDlgItemInt(hDlg,IDT_SAY_3,0,true);

EnableWindow(GetDlgItem(hDlg,IDT_SAY_5),false);
SetDlgItemInt(hDlg,IDT_SAY_3,0,true);

EnableWindow(GetDlgItem(hDlg,IDR_MINUS180),false);
EnableWindow(GetDlgItem(hDlg,IDR_MINUS90),false);
EnableWindow(GetDlgItem(hDlg,IDR_ZERO),false);
EnableWindow(GetDlgItem(hDlg,IDR_PLUS90),false);
EnableWindow(GetDlgItem(hDlg,IDR_PLUS180),false);

CheckDlgButton(hDlg,IDR_MINUS180,false);
CheckDlgButton(hDlg,IDR_MINUS90,false);
CheckDlgButton(hDlg,IDR_ZERO,false);
CheckDlgButton(hDlg,IDR_PLUS90,false);
CheckDlgButton(hDlg,IDR_PLUS180,false);
}

VOID ShowReverbParams(HWND hDlg,DSFXWavesReverb dsReverb)
{
SetDlgItemText(hDlg,IDT_TITLE,"Waves Reverb parameters");

SetDlgItemText(hDlg,IDT_1,"In Gain (dB)");
SetDlgItemText(hDlg,IDT_2,"Reverb Mix (db)");
SetDlgItemText(hDlg,IDT_3,"Reverb Gain (ms)");
SetDlgItemText(hDlg,IDT_4,"High Freq RT Radio (x:1)");
SetDlgItemText(hDlg,IDT_5,"N / A");

EnableWindow(GetDlgItem(hDlg,IDT_SLIDER1),true);
SendMessage(GetDlgItem(hDlg,IDT_SLIDER1),TBM_SETRANGE,0,MAKELPARAM(-96,0));
SendMessage(GetDlgItem(hDlg,IDT_SLIDER1),TBM_SETPOS,TRUE,dsReverb.fInGain);

EnableWindow(GetDlgItem(hDlg,IDT_SLIDER2),true);
SendMessage(GetDlgItem(hDlg,IDT_SLIDER2),TBM_SETRANGE,0,MAKELPARAM(-96,0));
SendMessage(GetDlgItem(hDlg,IDT_SLIDER2),TBM_SETPOS,TRUE,dsReverb.fReverbMix);

EnableWindow(GetDlgItem(hDlg,IDT_SLIDER3),true);
SendMessage(GetDlgItem(hDlg,IDT_SLIDER3),TBM_SETRANGE,0,MAKELPARAM(0,3000));
SendMessage(GetDlgItem(hDlg,IDT_SLIDER3),TBM_SETPOS,TRUE,dsReverb.fReverbTime);

EnableWindow(GetDlgItem(hDlg,IDT_SLIDER4),true);
SendMessage(GetDlgItem(hDlg,IDT_SLIDER4),TBM_SETRANGE,0,MAKELPARAM(0,1));
SendMessage(GetDlgItem(hDlg,IDT_SLIDER4),TBM_SETPOS,TRUE,dsReverb.fHighFreqRTRatio);

EnableWindow(GetDlgItem(hDlg,IDT_SLIDER5),false);

EnableWindow(GetDlgItem(hDlg,IDT_SAY_1),true);
SetDlgItemInt(hDlg,IDT_SAY_1,dsReverb.fInGain,true);

EnableWindow(GetDlgItem(hDlg,IDT_SAY_2),true);
SetDlgItemInt(hDlg,IDT_SAY_2,dsReverb.fReverbMix,true);

EnableWindow(GetDlgItem(hDlg,IDT_SAY_3),true);
SetDlgItemInt(hDlg,IDT_SAY_3,dsReverb.fReverbTime,true);

EnableWindow(GetDlgItem(hDlg,IDT_SAY_4),true);
SetDlgItemInt(hDlg,IDT_SAY_4,dsReverb.fHighFreqRTRatio,true);

EnableWindow(GetDlgItem(hDlg,IDT_SAY_5),false);
SetDlgItemInt(hDlg,IDT_SAY_4,0,true);

EnableWindow(GetDlgItem(hDlg,IDR_MINUS180),false);
EnableWindow(GetDlgItem(hDlg,IDR_MINUS90),false);
EnableWindow(GetDlgItem(hDlg,IDR_ZERO),false);
EnableWindow(GetDlgItem(hDlg,IDR_PLUS90),false);
EnableWindow(GetDlgItem(hDlg,IDR_PLUS180),false);

CheckDlgButton(hDlg,IDR_MINUS180,false);
CheckDlgButton(hDlg,IDR_MINUS90,false);
CheckDlgButton(hDlg,IDR_ZERO,false);
CheckDlgButton(hDlg,IDR_PLUS90,false);
CheckDlgButton(hDlg,IDR_PLUS180,false);
}

Project Homepage: