Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 195
  • Last Modified:

Output window in VC++6.0

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
EWaszkow
Asked:
EWaszkow
  • 2
1 Solution
 
mikeblasCommented:
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
 
EWaszkowAuthor Commented:
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
 
mikeblasCommented:
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now