The file open dialogbox is unpractical because it doesn't show all image types immediately. I suggest an improvement, so that people get shown all common images:
In the rc file, add this below IDR_IMGIFTYPE:
Code: Select all
IDR_IMIMAGETYPE "\nImage\n\nCommon image files\n.jpg;.png;.tif;.tiff;.bmp;.wmf;.mif;.miff;.svg;.eps;.gif\n\n"
Code: Select all
#define IDR_IMIMAGETYPE 139
Code: Select all
#define _APS_NEXT_RESOURCE_VALUE 140
Code: Select all
CMultiDocTemplate* pDocTemplate;
Code: Select all
//TH all image types, default
pDocTemplate = new CMultiDocTemplate(
IDR_IMIMAGETYPE,
RUNTIME_CLASS(CIMDisplayDoc),
RUNTIME_CLASS(CChildFrame), // custom MDI child frame
RUNTIME_CLASS(CIMDisplayView));
AddDocTemplate(pDocTemplate);
result:
Tilman Hausherr