timers.h

 VOID CALLBACK VisibilityTimer(HWND hDlg,UINT message,UINT event,DWORD time)
{
switch (message)
{
case WM_TIMER:
{
if (a==1)
ShowWindow(GetDlgItem(hDlg,IDC_SETVP),visibility_flag);
if (a==2)
{
ShowWindow(GetDlgItem(hDlg,IDC_SETVP_ATTENUATION),visibility_flag);
ShowWindow(GetDlgItem(hDlg,IDC_SETVP_CURRENTATTENUATION),visibility_flag);
}
if (a==3)
{
ShowWindow(GetDlgItem(hDlg,IDC_SETVP_RELVOLUME),visibility_flag);
ShowWindow(GetDlgItem(hDlg,IDC_SETVP_CURRENTRELVOLUME),visibility_flag);
}
if (a==4)
{
ShowWindow(GetDlgItem(hDlg,IDC_ATTENUATION),visibility_flag);
ShowWindow(GetDlgItem(hDlg,IDC_RELVOLUME),visibility_flag);
}
if (a==5)
{
ShowWindow(GetDlgItem(hDlg,IDC_SAY_ATTENUATION),visibility_flag);
ShowWindow(GetDlgItem(hDlg,IDC_SAY_RELVOLUME),visibility_flag);
}
if (a==6)
{
ShowWindow(GetDlgItem(hDlg,IDC_RELVOLUME_DEF),visibility_flag);
KillTimer(hDlg,TIMER2);
if (f==false)
{
a=5;
do
{
SetWindowPos(hDlg,HWND_TOP,0,0,WIDTH+230-a,HEIGHT,SWP_NOMOVE);
a=a+5;
} while (a!=230);
EnableWindow(GetDlgItem(hDlg,IDC_FX),true);
}
EnableWindow(GetDlgItem(hDlg,IDC_F),true);
}
a++;
}
break;
}
}

VOID CALLBACK VisibilityTimer2(HWND hDlg,UINT message,UINT event,DWORD time)
{
switch (message)
{
case WM_TIMER:
{
if (a==1)
ShowWindow(GetDlgItem(hDlg,IDC_CHORUS_BOX),visibility_flag);
if (a==2)
ShowWindow(GetDlgItem(hDlg,IDC_COMPRESSOR_BOX),visibility_flag);
if (a==3)
ShowWindow(GetDlgItem(hDlg,IDC_DISTORTION_BOX),visibility_flag);
if (a==4)
ShowWindow(GetDlgItem(hDlg,IDC_ECHO_BOX),visibility_flag);
if (a==5)
ShowWindow(GetDlgItem(hDlg,IDC_FLANGER_BOX),visibility_flag);
if (a==6)
ShowWindow(GetDlgItem(hDlg,IDC_GARGLE_BOX),visibility_flag);
if (a==7)
ShowWindow(GetDlgItem(hDlg,IDC_PARAMEQ_BOX),visibility_flag);
if (a==8)
ShowWindow(GetDlgItem(hDlg,IDC_REVERB_BOX),visibility_flag);
if (a==9)
{
if (fx==false)
{
a=5;
do
{
SetWindowPos(hDlg,HWND_TOP,0,0,WIDTH,HEIGHT+270-a,SWP_NOMOVE);
a=a+5;
} while (a!=270);
}
KillTimer(hDlg,TIMER2);
}
a++;
}
break;
}
}

Project Homepage: