We had a similar problem just the other day. Copied the control from one dialog resource to another. As it happened, you cannot just copy an ActiveX control from one dialog to another, as you do with other MFC controls. For an ActiveX control, the rc file contains the DLGINIT section. For example, I have a form with an IE WebBrowser control:
IDD_ONLINE_REPORTVIEW_FORM DIALOGEX 0, 0, 320, 200 STYLE DS_SETFONT | DS_CONTROL | WS_CHILD FONT 8, "MS Sans Serif", 0, 0, 0x0 BEGIN CONTROL "",IDC_EXPLORER1,"{8856F961-340A-11D0-A96B-00C04FD705A2}",WS_TABSTOP,7,61,299,77 END
and below in the rc file there is a DLGINIT section:
IDD_ONLINE_REPORTVIEW_FORM DLGINIT BEGIN IDC_EXPLORER1, 0x376, 160, 0 0x0000, 0x0000, 0x004c, 0x0000, 0x2e68, 0x0000, 0x0ceb, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x004c, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0001, 0x0000, 0xd0e0, 0x0057, 0x3573, 0x11cf, 0x69ae, 0x0008, 0x2e2b, 0x6212, 0x0008, 0x0000, 0x0000, 0x0000, 0x004c, 0x0000, 0x1401, 0x0002, 0x0000, 0x0000, 0x00c0, 0x0000, 0x0000, 0x4600, 0x0080, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0001, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0 END
Open the source of the rc file and search for the identifier of the control. Find the DLGINIT section and copy it into a new dialog