Lines Matching defs:ofn
47 static OPENFILENAME ofn ;
56 ofn.lStructSize = sizeof (OPENFILENAME) ;
57 ofn.hwndOwner = hwnd ;
58 ofn.hInstance = NULL ;
59 ofn.lpstrFilter = szFilter [0] ;
60 ofn.lpstrCustomFilter = NULL ;
61 ofn.nMaxCustFilter = 0 ;
62 ofn.nFilterIndex = 0 ;
63 ofn.lpstrFile = NULL ; // Set in Open and Close functions
64 ofn.nMaxFile = _MAX_PATH ;
65 ofn.lpstrFileTitle = NULL ; // Set in Open and Close functions
66 ofn.nMaxFileTitle = _MAX_FNAME + _MAX_EXT ;
67 ofn.lpstrInitialDir = NULL ;
68 ofn.lpstrTitle = NULL ;
69 ofn.Flags = 0 ; // Set in Open and Close functions
70 ofn.nFileOffset = 0 ;
71 ofn.nFileExtension = 0 ;
72 ofn.lpstrDefExt = "txt" ;
73 ofn.lCustData = 0L ;
74 ofn.lpfnHook = NULL ;
75 ofn.lpTemplateName = NULL ;
80 ofn.hwndOwner = hwnd ;
81 ofn.lpstrFile = lpstrFileName ;
82 ofn.lpstrFileTitle = lpstrTitleName ;
83 ofn.Flags = OFN_CREATEPROMPT ;
85 return GetOpenFileName (&ofn) ;
90 ofn.hwndOwner = hwnd ;
91 ofn.lpstrFile = lpstrFileName ;
92 ofn.lpstrFileTitle = lpstrTitleName ;
93 ofn.Flags = OFN_OVERWRITEPROMPT ;
95 return GetSaveFileName (&ofn) ;