/*[]=====================================================================[]*/ /*[] LeadTools Run Time Library - Version 13 []*/ /*[] []*/ /*[] []*/ /*[] Copyright (c) 1991-2002 LEAD Technologies, Inc. []*/ /*[] All Rights Reserved. []*/ /*[]=====================================================================[]*/ #include #include #include "ImgPF.h" static OPENFILENAME ofn; L_VOID FileInit(HWND hWnd) { static TCHAR szFilter[] = TEXT("Text Files (*.TXT)\0*.txt\0") \ TEXT("Word Files (*.DOC)\0*.doc\0") \ TEXT("LEAD Files (*.CMP)\0*.cmp\0") \ TEXT("WINDOWS Bitmap (*.BMP)\0*.bmp\0") \ TEXT("JPEG Files (*.JPG)\0*.jpg\0") \ TEXT("All Files (*.*)\0*.*\0\0"); ofn.lStructSize = sizeof(OPENFILENAME); ofn.hwndOwner = hWnd; ofn.hInstance = NULL; ofn.lpstrFilter = szFilter; ofn.lpstrCustomFilter = NULL; ofn.nMaxCustFilter = 0; ofn.nFilterIndex = 0; ofn.lpstrFile = NULL; ofn.nMaxFile = MAX_PATH; ofn.lpstrFileTitle = NULL; ofn.nMaxFileTitle = MAX_PATH; ofn.lpstrInitialDir = NULL; ofn.lpstrTitle = NULL; ofn.Flags = 0; ofn.nFileOffset = 0; ofn.nFileExtension = 0; ofn.lpstrDefExt = TEXT("txt"); ofn.lCustData = 0L; ofn.lpfnHook = NULL; ofn.lpTemplateName = NULL; }