What would be the most efficient way to "transfer" a variable from one switch case to the next?
Ex.
I need to "retrieve" the data from the first ofn to the second.Code:case ID_FILE_SAVE: { OPENFILENAME ofn; //ofn stuff } case ID_VIEW_PREVIEW: { ShellExecute(hwnd, open, ofn...) }