Click to See Complete Forum and Search --> : Copying a control to another dialog?


wookies
March 25th, 2004, 11:47 PM
This is what I am attempting to accomplish, but I don't have enough API know-how to do it, if it's even possible. I have a program (that I did not make) that has a text box that is not a standard control (handles html, but it isn't standard, it has some characteristics that I wouldn't be able to accurately reproduce) - I want to hide the original dialog containing this control (this I can do), but I want to make a new dialog which has a "copy" of this control in it, and I want to be able to update the copy when the program updates the original, which is now hidden. I may not have been very clear, but hopefully it is clear enough. If not, I can probably figure out how to explain it better.

ferox
April 2nd, 2004, 02:11 AM
You can import the resource file for that dialog in your new dialog based application and copy the dialog resource in your own application. That's what I think you need to do.

wookies
April 3rd, 2004, 04:39 PM
Thank you for your reply. However, my problem is that this control is not in a resource dll or executable, it is defined at run time. I do not think that I can recreate this control, which is why I was trying to copy it. Thanks again