user974967
user974967

Reputation: 2946

reusing dialog box

I have a dialog box from an old program that I would like to reuse, but I can't find an easy way to import/export it.

I'm pretty sure the .rc file contains all the sizing/spacing info, but if I try to import it, a 'Custom Resource' option appears.

Is it best to generate a new .rc file, and then edit it directly (ie, copy and paste the values from the old .rc file)? Is there a better way?

Upvotes: 0

Views: 536

Answers (3)

Cheers and hth. - Alf
Cheers and hth. - Alf

Reputation: 145359

I would just copy/paste the textual definition.

Upvotes: 0

user999040
user999040

Reputation:

I find very easy to use some resource editors like ResEdit, so you don't need to bother about such things.

Upvotes: 0

Alex F
Alex F

Reputation: 43321

Open source and destination .rc files in Visual Studio using File - Open function (without loading the project). Now it is possible to drag-and-drop resources between two .rc files, or use Copy-Paste. Visual Studio updates also resource.h file when resource is pasted into .rc file. More details here:

http://msdn.microsoft.com/en-us/library/a5axa064.aspx

http://support.microsoft.com/kb/829437

Upvotes: 1

Related Questions