Click here to Skip to main content
15,901,666 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: why no virtual constructor? Pin
jschell20-Jul-12 6:52
jschell20-Jul-12 6:52 
GeneralRe: why no virtual constructor? Pin
Mattias Högström20-Jul-12 7:33
Mattias Högström20-Jul-12 7:33 
GeneralRe: why no virtual constructor? Pin
jschell21-Jul-12 11:33
jschell21-Jul-12 11:33 
GeneralRe: why no virtual constructor? Pin
Mattias Högström21-Jul-12 13:54
Mattias Högström21-Jul-12 13:54 
GeneralRe: why no virtual constructor? Pin
Eugen Podsypalnikov16-Jul-12 23:59
Eugen Podsypalnikov16-Jul-12 23:59 
QuestionHow to add app icon in full color? Pin
includeh1014-Jul-12 15:22
includeh1014-Jul-12 15:22 
AnswerRe: How to add app icon in full color? Pin
«_Superman_»14-Jul-12 17:58
professional«_Superman_»14-Jul-12 17:58 
QuestionMFC CListCtrl FindItem is not working Pin
D.Manivelan13-Jul-12 23:45
D.Manivelan13-Jul-12 23:45 
I am developing Dialog based application. It has "CListCtrl" list control and one "Editbox". My requirement is when user type in editbox, automatically the entered text should get selected in the list control.

For this,when i used "FindItem" , it always return -1 even the entered text available in list control.
Here my code
C++
int nPointIndex = 0;
LVFINDINFO info;
int nIndex;
LPCTSTR lpszmyString;

info.flags = LVFI_PARTIAL|LVFI_STRING;
info.psz = _T("DFC102");

nPointIndex = m_cListCtrl.FindItem(&info,-1); //It is not working Always return -1

if( nPointIndex != LB_ERR )
{
    m_cListCtrl.EnsureVisible(nPointIndex, FALSE);
    m_cListCtrl.SetSelectionMark(nPointIndex);
    m_cListCtrl.SetItemState(nPointIndex, LVIS_SELECTED | LVIS_FOCUSED, IDC_TAGBROWSER_LIST);
    m_cListCtrl.RedrawItems(nPointIndex, nPointIndex);
    m_cListCtrl.UpdateWindow();
}

AnswerRe: MFC CListCtrl FindItem is not working Pin
_Flaviu14-Jul-12 0:06
_Flaviu14-Jul-12 0:06 
GeneralRe: MFC CListCtrl FindItem is not working Pin
D.Manivelan14-Jul-12 1:14
D.Manivelan14-Jul-12 1:14 
GeneralRe: MFC CListCtrl FindItem is not working Pin
_Flaviu14-Jul-12 1:20
_Flaviu14-Jul-12 1:20 
GeneralRe: MFC CListCtrl FindItem is not working Pin
Rolf Kristensen14-Jul-12 21:41
Rolf Kristensen14-Jul-12 21:41 
AnswerRe: MFC CListCtrl FindItem is not working Pin
Richard MacCutchan14-Jul-12 0:17
mveRichard MacCutchan14-Jul-12 0:17 
Question'fopen_s' and 'fscanf_s' Pin
mrby12313-Jul-12 10:38
mrby12313-Jul-12 10:38 
AnswerRe: 'fopen_s' and 'fscanf_s' Pin
Wes Aday13-Jul-12 10:45
professionalWes Aday13-Jul-12 10:45 
AnswerRe: 'fopen_s' and 'fscanf_s' Pin
jeron113-Jul-12 10:45
jeron113-Jul-12 10:45 
Questionsrand(time(NULL)); in MSDN 2010 Pin
mrby12313-Jul-12 7:04
mrby12313-Jul-12 7:04 
AnswerRe: srand(time(NULL)); in MSDN 2010 Pin
David Crow13-Jul-12 7:52
David Crow13-Jul-12 7:52 
AnswerRe: srand(time(NULL)); in MSDN 2010 Pin
Albert Holguin13-Jul-12 8:37
professionalAlbert Holguin13-Jul-12 8:37 
QuestionHow to undo drawing images in MFC.? Pin
mbatra3111-Jul-12 22:51
mbatra3111-Jul-12 22:51 
GeneralRe: How to undo drawing images in MFC.? Pin
Richard MacCutchan11-Jul-12 23:23
mveRichard MacCutchan11-Jul-12 23:23 
AnswerRe: How to undo drawing images in MFC.? Pin
Maximilien12-Jul-12 1:15
Maximilien12-Jul-12 1:15 
GeneralRe: How to undo drawing images in MFC.? Pin
mbatra3112-Jul-12 3:09
mbatra3112-Jul-12 3:09 
AnswerRe: How to undo drawing images in MFC.? Pin
Sunil P V14-Jul-12 22:09
Sunil P V14-Jul-12 22:09 
QuestionQuerying on existing recordsets Pin
SelvaKr11-Jul-12 21:20
SelvaKr11-Jul-12 21:20 

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.