Wednesday, June 20, 2007

How to add text in CEditView

1. CEdit::ReplaceSel

ReplaceSel replaces only a portion of the text in an edit control.
To access CEdit control, use GetEditCtrl() function.

GetEditCtrl().SetSel(-1, -1); // end of edit text
GetEditCtrl().ReplaceSel(buf); // append string..
GetEditCtrl().SendMessage(EM_SCROLLCARET); // ..and show caret

2. CWnd::SetWindowText

SetWindowText will replace all of the text, therefore first is required get all widows text into local variable, append text to the end and show on screen by using SetWindowText

CString str;
GetWindowText(str);
str += " appended string ";
SetWindowText(str);

Sunday, June 17, 2007

Bug tracking system

Possible solutions:

1. Create one in-house system. As a advantage is flexible and required to support
2. Take service, available on Internet. Sometimes is very costly, sometimes not.
3. Use one of solutions existing for Microsoft Share Point. Problem if database groves more than 4 GB. In this case will be required to by SQL Server licence.