MCPcopy Create free account
hub / github.com/buggins/coolreader / SaveFileDialog

Function SaveFileDialog

crengine/Tools/Fb2Test/Fb2Test.cpp:118–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118lString8 SaveFileDialog( HWND hWndOwner )
119{
120 lString8 fn;
121 OPENFILENAMEA ofn;
122 char str[MAX_PATH] = "";
123 memset( &ofn, 0, sizeof(ofn) );
124 ofn.lStructSize = sizeof( ofn );
125 ofn.hwndOwner = hWndOwner;
126 ofn.lpstrFilter = "WOL files (*.wol)\0*.wol\0All Files (*.*)\0*.*\0\0";
127 ofn.nFilterIndex = 1;
128 ofn.lpstrFile = str;
129 ofn.nMaxFile = MAX_PATH;
130 ofn.lpstrTitle = "Please select book to open";
131 ofn.Flags = OFN_OVERWRITEPROMPT | OFN_PATHMUSTEXIST;
132 ofn.lpstrDefExt = "wol";
133// ofn.FlagsEx = OFN_EX_NOPLACESBAR;
134 if ( GetSaveFileNameA( &ofn ) )
135 {
136 fn = str;
137 }
138 return fn;
139}
140
141lString8 readFileToString( const char * fname )
142{

Callers 1

ExportFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected