Click here to Skip to main content
16,019,983 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Generate IDOK message Pin
prasad_som21-Aug-06 23:08
prasad_som21-Aug-06 23:08 
GeneralRe: Generate IDOK message Pin
_AnsHUMAN_ 21-Aug-06 23:11
_AnsHUMAN_ 21-Aug-06 23:11 
QuestionCListCtrl :: FindItem() Pin
Anu_Bala21-Aug-06 21:35
Anu_Bala21-Aug-06 21:35 
QuestionRe: CListCtrl :: FindItem() Pin
prasad_som21-Aug-06 22:28
prasad_som21-Aug-06 22:28 
AnswerRe: CListCtrl :: FindItem() Pin
Anu_Bala21-Aug-06 22:42
Anu_Bala21-Aug-06 22:42 
AnswerRe: CListCtrl :: FindItem() Pin
prasad_som21-Aug-06 22:46
prasad_som21-Aug-06 22:46 
GeneralRe: CListCtrl :: FindItem() Pin
Anu_Bala22-Aug-06 0:16
Anu_Bala22-Aug-06 0:16 
AnswerRe: CListCtrl :: FindItem() Pin
Hamid Taebi21-Aug-06 22:53
professionalHamid Taebi21-Aug-06 22:53 
See if its good for you(without create editbox because you dont need to it, find in list)
<br />
USES_CONVERSION;<br />
CEdit m_Edit;<br />
CString str22;<br />
TCHAR buffer[100];<br />
LVFINDINFO find1={0};<br />
<br />
m_Ctrl1.InsertItem(0,"test");<br />
m_Ctrl1.InsertItem(1,"test1");<br />
m_Ctrl1.InsertItem(0,"a"); <br />
m_Ctrl1.InsertItem(0,"b"); <br />
m_Ctrl1.InsertItem(0,"test"); <br />
m_Ctrl1.InsertItem(0,"a1"); <br />
m_Ctrl1.InsertItem(0,"b1"); <br />
m_Ctrl1.InsertItem(0,"test"); <br />
<br />
m_Edit.Create(WS_CHILD|WS_VISIBLE,CRect(0,0,100,23),this,1);<br />
m_Edit.SetWindowText("test");<br />
m_Edit.GetWindowText(str22);<br />
int index=-1;<br />
<br />
<br />
find1.psz = str22;<br />
find1.flags = LVFI_STRING;<br />
do<br />
{<br />
index=m_Ctrl1.FindItem(&find1,index);<br />
MessageBox(itoa(index,buffer,10));<br />
<br />
//m_Edit2.SetWindowText(buffer);//location from item in listctrl<br />
}while(index!=-1);<br />

and see this thread[^]



WhiteSky


GeneralRe: CListCtrl :: FindItem() Pin
Anu_Bala22-Aug-06 0:18
Anu_Bala22-Aug-06 0:18 
GeneralRe: CListCtrl :: FindItem() Pin
Hamid Taebi22-Aug-06 1:08
professionalHamid Taebi22-Aug-06 1:08 
AnswerRe: CListCtrl :: FindItem() Pin
ftsOne22-Aug-06 17:25
ftsOne22-Aug-06 17:25 
Questionreading bitmap bytes from a font file Pin
Vissu8921-Aug-06 21:27
Vissu8921-Aug-06 21:27 
AnswerRe: reading bitmap bytes from a font file Pin
Steve S21-Aug-06 22:07
Steve S21-Aug-06 22:07 
GeneralRe: reading bitmap bytes from a font file Pin
Vissu8922-Aug-06 4:16
Vissu8922-Aug-06 4:16 
GeneralRe: reading bitmap bytes from a font file Pin
Steve S23-Aug-06 3:19
Steve S23-Aug-06 3:19 
GeneralRe: reading bitmap bytes from a font file Pin
Vissu8923-Aug-06 16:57
Vissu8923-Aug-06 16:57 
GeneralRe: reading bitmap bytes from a font file Pin
Steve S23-Aug-06 21:51
Steve S23-Aug-06 21:51 
Questionlow leve keyboard hook callback not called from service [modified] Pin
_tasleem21-Aug-06 21:12
_tasleem21-Aug-06 21:12 
AnswerRe: low leve keyboard hook callback not called from service Pin
Stephen Hewitt21-Aug-06 21:59
Stephen Hewitt21-Aug-06 21:59 
GeneralRe: low leve keyboard hook callback not called from service [modified] Pin
_tasleem21-Aug-06 22:31
_tasleem21-Aug-06 22:31 
GeneralRe: low leve keyboard hook callback not called from service Pin
Blake Miller22-Aug-06 9:00
Blake Miller22-Aug-06 9:00 
GeneralRe: low leve keyboard hook callback not called from service Pin
_tasleem22-Aug-06 19:44
_tasleem22-Aug-06 19:44 
AnswerRe: low leve keyboard hook callback not called from service Pin
Hamid Taebi21-Aug-06 22:42
professionalHamid Taebi21-Aug-06 22:42 
GeneralRe: low leve keyboard hook callback not called from service [modified] Pin
_tasleem22-Aug-06 0:53
_tasleem22-Aug-06 0:53 
QuestionObject matching algorithm in image processing using VC++ [modified] Pin
dinesh_IP21-Aug-06 20:40
dinesh_IP21-Aug-06 20:40 

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.