Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29245 Discussions

Opening a text file as readonly within an MDI

chandrika
Beginner
361 Views
Dear Members,
I am learning about creating GUIs in CVF from the book by Lawerence. I am on the chapter which introduces MDIs and I would like to open a file as read only, such that the user cannot edit the text in the window at all. To accomplish this, I tried setting the OFN_READONLY flag in the openfilename structure and while this checked the read only check box in the open common dialog, i was still able to make changes to the document.
Also, I am unclear on the use of the logical variables 'lret', 'iret' and 'bret'. When should they be used and why?
Any assistance with this issues will be greatly appreciated
Regards
Chandrika
0 Kudos
0 Replies
Reply