Hi HelloWorld,
A bit of further input. This method of copying does not impair functionality. Different dialog boxes can have the same Button ID and will work correctly, because the message is handled by the procedure assigned to the Dialog Box for processing. So another box with the same Button ID will not be processed inadvertently, the message won't get to it.
However -
If you really, really, really want to change it you can do it this way.
First you open whatever .h file is being used for your resource file and add a symbol(s) and ID(s) you want to use for Dialog box 2, Button IDs. If your resource file is main.rc then main.h would be opened
#define IDCANCEL2 4076 //example add (be sure number is not already is use)
Save the .h file
The open the .rc resource file as TEXT (right click on the file, 'open as', text)
In the resource file locate the second Dialog box definition
Find the button you want to change
CONTROL "Cancel", IDCANCEL, "Button", WS_TABSTOP, 160, 23, 45, 15
change to
CONTROL "Cancel", IDCANCEL2, "Button", WS_TABSTOP, 160, 23, 45, 15
Save the file. Now it should have the new ID.
It takes a bit and not really necessary but it can be done.
John Z