Advertisement
2_2002-2004 Files/ File Controls/ Input/ Output #114886

MDI File Muncher - Opens multiple files into one instance (New version - no hook)

Hi. This is an MDI app work in progress. Many have asked after a way to open files into a single (previous) instance of a program. This demo can open multiple files at startup into one instance, you can drag-and-drop onto the running program to open files, and it can receive files to open when already running from explorer or the command line. It also includes working file handling code (open, edit and save files) and some generic menu items. It cannot yet receive commands like [print], this is yet to be added. I have eliminated the need for the MsgLink module which subclass's the window. By raising the LinkExecute event (I looked at doing this programatically but it also needed a hook) using DDE and a label on an invisible form. My idea was to use this form as a progress meter but I made it invisible, using an existing form would load the new instance when the DDE properties are accessed. I have used a RTB control on the child form which is likely to give you trouble. If so you can add your own RTB ref from Components and place it on the child form and name it rtfText. You do not need to size it as it will auto-size at runtime. Please don't complain too much about the lack of comments in the code (there aren't many I admit). I am working on it. Let me know if you have any issues with this working correctly. I've uploaded already to get comments and suggestions, so please DO.

AI

Riepilogo AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Codice sorgente
original-source
Upload
Commenti originali (3)
Recuperato da Wayback Machine