Safai Ma
May 6th, 1999, 09:38 AM
Anyone know what value of this constant (OFN_DONTADDTORECENT) is?
Thx
-Safai
Thx
-Safai
|
Click to See Complete Forum and Search --> : OFN_DONTADDTORECENT Safai Ma May 6th, 1999, 09:38 AM Anyone know what value of this constant (OFN_DONTADDTORECENT) is? Thx -Safai May 6th, 1999, 10:17 AM Put the code below somewhere in your program CString msg; msg.Format("OFN_DONTADDTORECENT=%d",OFN_DONTADDTORECENT); AfxMessageBox(msg); Safai Ma May 6th, 1999, 03:46 PM If this constant is defined, I don't have to ask for, do I? sally May 6th, 1999, 10:03 PM I searched through the C++ source code and found many other OFN_.... but not the one you are after however, all values from 0x00000000 upto 0x00800000 are used, so there are only 8 more values available I suggest trial and error, Safai Sally Sally May 6th, 1999, 10:03 PM I searched through the C++ source code and found many other OFN_.... but not the one you are after however, all values from 0x00000000 upto 0x00800000 are used, so there are only 8 more values available I suggest trial and error, Safai Sally Safai Ma May 6th, 1999, 10:21 PM Hi Sally, Yeah...I searched through both VC5 and VC6 and couldn't find it. It is documented on MSDN. (although it said it is for Windows 2000) You see, I am having this problem. I use CFileDialog to prompt the user for a filename to a save file (a .bmp file). But it automatically adds it in the recent document list after I hit OK on the file dialog. I tried setting the remaining flags to "1" but it still put the file in the recent document list. It wouldn't be nice to have that file in the recent document list when my program fails to write the file for some reason. This might be Windows 98 specific problem. Maybe you know a way around this problem. Thanks again, Sally. -Safai sally May 9th, 1999, 06:29 AM How about managing the recent list yourself? Sally Sally May 9th, 1999, 06:29 AM How about managing the recent list yourself? Sally Safai Ma May 11th, 1999, 08:10 AM You mean deleting the 'lnk' file in the recent file directory when my program fails to create the file? (The file save dialog puts a filename in the recent file list automatically, well, at least on Win98) -Safai codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |