if File_dialog.Flags->IsSet (FDS_OPEN_DIALOG)                                  /*  "AND" */
+
  if File_dialog.Flags->IsSet (FDS_CENTER)                                     /*  "AND" */
  +
    ...
  ;
  else
  +
    ...
  ;
;
else
+
  ...
;