Click here to Skip to main content
15,922,155 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralHelp! need to modify this "switchview" function Pin
ns15-Jul-02 2:53
ns15-Jul-02 2:53 
GeneralRe: Help! need to modify this "switchview" function Pin
567890123415-Jul-02 4:48
567890123415-Jul-02 4:48 
GeneralRe: Thanks a million Pin
ns15-Jul-02 8:00
ns15-Jul-02 8:00 
GeneralProperty page and caption Pin
yolf15-Jul-02 2:23
yolf15-Jul-02 2:23 
GeneralRe: Property page and caption Pin
Martin Ziacek15-Jul-02 2:26
Martin Ziacek15-Jul-02 2:26 
GeneralRe: Property page and caption Pin
yolf15-Jul-02 3:20
yolf15-Jul-02 3:20 
GeneralRe: Property page and caption Pin
Martin Ziacek15-Jul-02 3:46
Martin Ziacek15-Jul-02 3:46 
QuestionHow to create a consol window like the output window of VC++ 6.0 ??? Pin
Raphael Kindt15-Jul-02 2:11
Raphael Kindt15-Jul-02 2:11 
Hi...

How to create a consol window like the output window of VC++ 6.0 ???

For the moment I use a view derived from CEditView :
class CMyView : public CEditView {...}

And for insert text (read-only), I use this method that I've created in the view:
void CMyView::DisplayText(CString text) const
{
	CEdit& theEdit = GetEditCtrl();
	theEdit.SetSel(-2, -1);      // to insert text in the end
	theEdit.ReplaceSel(text);    // like this scrollbar move with text
}

Moreover, this method is only call from CMyDocument like this:
void CMyDoc::OnMyProgram() 
{
	CMyView* pView = (CMyView*)m_viewList.GetHead();
	pView->DisplayText("\r\nMy Programming\r\n");
}


My question: Is that clean ???
In fact, I want that the scrollbar move with text insert...

Thanks in advance...

Hello World!!! Smile | :)
from Raphaël
AnswerRe: How to create a consol window like the output window of VC++ 6.0 ??? Pin
567890123415-Jul-02 2:43
567890123415-Jul-02 2:43 
Generalhow to add text in the end of the CEdit control ??? Pin
Raphael Kindt15-Jul-02 3:32
Raphael Kindt15-Jul-02 3:32 
QuestionWhere to put my Code? Pin
Shibu.V.Nair15-Jul-02 1:05
Shibu.V.Nair15-Jul-02 1:05 
AnswerRe: Where to put my Code? Pin
Nish Nishant15-Jul-02 1:18
sitebuilderNish Nishant15-Jul-02 1:18 
AnswerRe: Where to put my Code? Pin
Raphael Kindt15-Jul-02 1:20
Raphael Kindt15-Jul-02 1:20 
AnswerRe: Where to put my Code? Pin
Ernest Laurentin15-Jul-02 1:24
Ernest Laurentin15-Jul-02 1:24 
QuestionCatching NM_CUSTOMDRAW ? Pin
Brian van der Beek15-Jul-02 0:55
Brian van der Beek15-Jul-02 0:55 
GeneralCSocket basic question Pin
zecodela14-Jul-02 23:10
zecodela14-Jul-02 23:10 
GeneralRe: CSocket basic question Pin
SAWilde14-Jul-02 23:16
SAWilde14-Jul-02 23:16 
GeneralRe: CSocket basic question Pin
Anonymous15-Jul-02 0:29
Anonymous15-Jul-02 0:29 
GeneralRe: CSocket basic question Pin
Anonymous14-Jul-02 23:17
Anonymous14-Jul-02 23:17 
GeneralRe: CSocket basic question Pin
Anonymous14-Jul-02 23:18
Anonymous14-Jul-02 23:18 
GeneralInstallation process for service Pin
s_k14-Jul-02 22:59
s_k14-Jul-02 22:59 
GeneralRe: Installation process for service Pin
Martin Ziacek14-Jul-02 23:17
Martin Ziacek14-Jul-02 23:17 
GeneralRe: Installation process for service Pin
Nish Nishant14-Jul-02 23:44
sitebuilderNish Nishant14-Jul-02 23:44 
GeneralUrgent!!!, Please, Application into a activex Pin
powerrajesh14-Jul-02 22:59
powerrajesh14-Jul-02 22:59 
GeneralRe: Urgent!!!, Please, Application into a activex Pin
SAWilde14-Jul-02 23:24
SAWilde14-Jul-02 23:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.