IMDisplay: common image files in file open dialog
Posted: 2010-09-18T06:05:51-07:00
Hello,
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:
define IDR_IMIMAGETYPE in resource.h or in the gui:
correct _APS_NEXT_RESOURCE_VALUE:
below this
add this:
and remove the block with "JPEG (default)".
result:
Tilman Hausherr
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