MFC Feature Pack – CMFCEditBrowseCtrl

CMFCEditBrowseCtrl? It’s a specialized edit control (MFC Feature Pack VS2008) with a browse button attached to it’s right side, when we click on this button we get an open file dialog or an open folder dialog. See this sample screenshot. Also this control allows us to implement our own event handling by overriding OnBrowse function […]
Continue reading…

 

How to limit the text entered into an edit/richedit control?

Call CEdit::SetLimitText or send EM_LIMITTEXT windows message to an edit control. There are some caveats associated with this functionality… This limitation does not affect the amount of text entered via a call to SetWindowText, or WM_SETTEXT. This limitation does not hold true for paste operation. This limitation does not affect text already entered into an […]
Continue reading…