settings_dialog_filter <> =
{
  @message WM_COMMAND (pstruct -w reply, p_program_state -&w state, p_settings_dialog_filter -&w _, p_msg msg)
                   if (msg->window_id == DLG_BUTTON/YES)   
  {
    ...
  }

  ...

};

settings_dialog_filter <> =
{
  @message WM_CONTROL (pstruct -w reply, p_program_state -&w state, p_settings_dialog_filter -&w _, p_msg msg)
                   if (msg->window_id == DLG_BUTTON/YES)   
  {
    ...
  }

  ...

};