Multiple doc templates problem
-
I'm working on a paint program, and want my File|Open dialog to allow loading of jpg, bmp, ( NOT gif, if UNISYS is watching ;o) ) so I have created multiple document templates. The problem now is that when I click File|New I get asked what sort of document I want to create. Can anyone suggest a way to get around this problem ? I've tried overriding OnFileOpen in the Document class, but that works only AFTER the first file has been loaded or created. Thanks Christian
-
I'm working on a paint program, and want my File|Open dialog to allow loading of jpg, bmp, ( NOT gif, if UNISYS is watching ;o) ) so I have created multiple document templates. The problem now is that when I click File|New I get asked what sort of document I want to create. Can anyone suggest a way to get around this problem ? I've tried overriding OnFileOpen in the Document class, but that works only AFTER the first file has been loaded or created. Thanks Christian
-
I'm working on a paint program, and want my File|Open dialog to allow loading of jpg, bmp, ( NOT gif, if UNISYS is watching ;o) ) so I have created multiple document templates. The problem now is that when I click File|New I get asked what sort of document I want to create. Can anyone suggest a way to get around this problem ? I've tried overriding OnFileOpen in the Document class, but that works only AFTER the first file has been loaded or created. Thanks Christian
Hello, codeguru around the world. Visual C++ 4 HOW-TO by Scott Stanfield with Ralph Arvesen has something to resolve this answer. I just write the sentense as it is. 4) Add a string resource. Using App Studio, make a copy of the existing string resource IDR_LINESTYPE and change the ID to IDR_DEBUGTYPE. The caption for the IDR_DEBUGTYPE is not identical to IDR_LINESTYPE. Modify it and remove the second, "Lines" to prevent the framework from thinking we have more than one document type. Otherwise, you would end up with the dialog box - the unwanted file new dialog box. Good luck for your project. -Masaaki Onishi-