Duplicating a Control

You will probably want to have more than one push button in your dialog.

    To add another push button
  1. Hold down the CTRL key.
  2. Drag the existing push button to a new location and drop it.

You might give this second button the symbol IDCANCEL and the label Cancel.

You can repeat this process to create more push buttons. Or you can use the CTRL key when you select controls from the toolbox. If you hold down the CTRL key when you click a toolbox button, the toolbox button stays in the pressed position. You can then click repeatedly in the dialog and place a number of identical controls. When you have all the controls you need of this kind, click the top control in the toolbox, or press ESC when the toolbox has the focus.