title: Default Filename in Save File Dialog with OPENFILENAMEA Class in C++
body: <p>I'm creating a Windows application in C++ (actually, C++ coding in Unreal Engine 4 being packaged for Windows) that allows the user to save a file to their desktop. I am using the <code>OPENFILENAMEA</code> structure to handle this (see <a href="https://docs.microsoft.com/en-us/windows/win32/api/commdlg/ns-commdlg-openfilenamea" rel="nofollow noreferrer">here</a>). I am wanting to set the default filename that appears in the dialog box, but nothing I have tried works.</p>
  <p>Specifically, I'm wanting there to be a default value set here, such as &quot;MySavedFile.txt&quot;:</p>
  <p><a href="https://i.stack.imgur.com/em0Gu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/em0Gu.png" alt="Example Picture" /></a></p>
  <p>Is it possible to set the default filename for the file to be saved as when using the <code>OPENFILENAMEA</code> structure? If so, can you provide an example? I've been unable to figure it out so far and an example would really help.</p>