Solved

Output window in VC++6.0

Posted on 1999-01-14
3
187 Views
Last Modified: 2013-11-20
Does any one know the exact control used by MS for the output window in VC++6.0?  Is it a CEdit?  CRichEditCtrl?
CListCtrl?  I am concerned because I have created a message area similar to VC++6.0's but I used a CEdit.  This message area can get very very large (ie: many lines of messages).  The app can run for days sending messages to the message area.  I feel I may be running into PageFile problems because the message window is getting too full.  Any ideas?
Has anyone else created their own message window?  What control did you use?
0
Comment
Question by:EWaszkow
  • 2
3 Comments
 
LVL 11

Accepted Solution

by:
mikeblas earned 200 total points
ID: 1327702
The pane in question is drawn completely from scratch. It's not based on an existing MFC control.

Most people start with an edit control when they write their own log window. You can see an example of that approach if you look at the Test Container sample code that ships with the Visual C++ project.

If your output window is going to contain super-large text, you might want to investigate actually having the window show a section of a file, and actually store your log information in a file instead of in the control itself.

B ekiM
0
 

Author Comment

by:EWaszkow
ID: 1327703
Thanks much for the information Mike.  I suspected something 'custom' was going on when SPY could not tell me what MFC class the output window was derived from.

Just a quick followup... does VC++6.0 use the method of saving the output to a file and viewing parts of it at a time in the output window?  Just curious...  This is the method I will most likely use for my output window.  Thanks again!

Life at Microsoft still treating you well??
0
 
LVL 11

Expert Comment

by:mikeblas
ID: 1327704
SPY can never tell you about the MFC class. SPY doesn't know C++, and information about the C++ class used isn't reflected in the information given to Windows when creating the window.

B ekiM
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now