Thread: Simple MDI Aplication

  1. #1
    Registered User
    Join Date
    Aug 2001
    Posts
    47

    Question Simple MDI Aplication

    Sorry for sucha basic question but can anyone explane me how to open a simple .txt document thru a MDI project and how can I write into a MDI Child window and save what i've wrote..... unfortunetly i've spend more then one hour looking for tutorial for this issue and although I found out a bunch of other stuff I didn't needed (like changing the background color of the Child window), I can't still figure out how to write into one...... if someone could point me to some basic tutorial in the net, i would be very aprechiatted..... thanks......
    I'm a person with a simple taste...
    I only like the best.

  2. #2
    Software Developer jverkoey's Avatar
    Join Date
    Feb 2003
    Location
    New York
    Posts
    1,905
    where I used as a resource and a learning tool when designing my OST2 compiler was winprog.org. There are a series of tutorials that lead up to creating an MDI interface and they teach it pretty effectively. However, you'll have to tinker around with it a bit, because the tutorials don't explain EVERYTHING about the MDI.

  3. #3
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    If you're using mfc then the multipad example may be of some interest.

    If using winapi then, in addition to jverkoey's fine recommendations, Using the Multiple Document Interface may help answer some of your questions. There's obviously a winapi version of 'multiedit' but, unfortunately, I can't find a link to it.

    Generally, if you make an edit or richedit control a child of an mdi child window then you would just read/write to that control as you would normally, ie with GetWindowText, SetWindowText and various selection and replacement messages. Opening and saving files would be accomplished with your preferred file io functions - winapi (here), c (here) or c++.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Simple message encryption
    By Vicious in forum C++ Programming
    Replies: 10
    Last Post: 11-07-2004, 11:48 PM
  2. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  3. Simple simple program
    By Ryback in forum C++ Programming
    Replies: 10
    Last Post: 09-09-2004, 05:48 AM
  4. Need help with simple DAQ program
    By canada-paul in forum C++ Programming
    Replies: 12
    Last Post: 03-15-2002, 08:52 AM
  5. Simple Compile Time Problem - HELP!
    By kamikazeecows in forum Windows Programming
    Replies: 2
    Last Post: 12-02-2001, 01:30 PM