Could you list the code where you added it? I typically just include other
..rc files in the .rc2 file and it works fine. Is your .RC2 file still
That doesn't work, Tom, because the resource editor does not read it
and comes up with "Loading failed" when it comes to my imported
"CHOOSECOLOR" dialog definition (even when placed at the end of the
.rc file). I have resorted to copying the whole include file into
resource.h, where it gets merged with the other defines at the next
edit.
I also have trouble with Class Wizard. If I leave the dialog name as
"CHOOSECOLOR" then class wizard will not access my new controls, and
if I change it to IDD_COLOUR_DIALOG the wizard works but I don't have
a way of setting m_cc to get it to be used.
Any clues ?
- Gilbert
"Tom Serface" <tom.nospam@camaswood.com> wrote:
I typically add additional includes to the .RC2 file and then they don't
get
written over.
Tom
"Gilbert Smith" <nospam@nospam.com> wrote in message
news:4me2541jk6tiuvb3h1csj5mkcbba91biob@4ax.com...
"Alex Blekhman" <tkfx.REMOVE@yahoo.com> wrote:
"Gilbert Smith" wrote:
How do I "provide a custom dialog template" when I have no
details of the standard dialog box, such as control design and
object IDs ?
Go to Platform SDK include directory. You will find there .DLG
files that contain templates of all common dialogs.
HTH
Alex
Many thanks Alex.
I have copied color.dlg into my .rc file, devstudio can see it and
edit it ok, and it compiles ok, and I have changed m_cc to use it.
I have tried the "#include <colordlg.h>" line in the .rc file and
also resource.h but it gets removed on the next resource edit, so I
have to keep replacing it.
Is there a standard way round this ?