Click here to Skip to main content
15,900,818 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Find All databases in a SQL Server Instance using VC++ 6.0 Pin
David Crow12-Jan-09 3:27
David Crow12-Jan-09 3:27 
AnswerRe: Find All databases in a SQL Server Instance using VC++ 6.0 Pin
Member 8157212-Jan-09 22:19
Member 8157212-Jan-09 22:19 
QuestionQuestion about Inject DLL Redirect wsock Pin
VB_Crazy10-Jan-09 16:42
VB_Crazy10-Jan-09 16:42 
AnswerRe: Question about Inject DLL Redirect wsock Pin
Code-o-mat11-Jan-09 8:48
Code-o-mat11-Jan-09 8:48 
GeneralRe: Question about Inject DLL Redirect wsock Pin
VB_Crazy12-Jan-09 0:26
VB_Crazy12-Jan-09 0:26 
GeneralRe: Question about Inject DLL Redirect wsock Pin
Code-o-mat12-Jan-09 0:38
Code-o-mat12-Jan-09 0:38 
AnswerRe: Question about Inject DLL Redirect wsock Pin
VB_Crazy12-Jan-09 22:42
VB_Crazy12-Jan-09 22:42 
QuestionList control ignores FindItem? Pin
nobaq10-Jan-09 10:12
nobaq10-Jan-09 10:12 
Hi,

I have an (owner drawn) list control and handle the LVN_ODFINDITEM message. For testing purposes:

void CIndexDlg::OnLvnOdfinditemData(NMHDR *pNMHDR, LRESULT *pResult)
{
	LPNMLVFINDITEM pFindInfo = reinterpret_cast<lpnmlvfinditem>(pNMHDR);
	*pResult = (rand() % 999) + 1;
}
</lpnmlvfinditem>


This works good when typing something inside the control.

But now I also want to have an external way to find an entry. So I places an edit control in the dialog and want to call FindItem manually:

LVFINDINFO fi;
ZeroMemory(&fi, sizeof(fi));
fi.flags = LVFI_PARTIAL | LVFI_STRING;
fi.psz = m_strWhat;

m_ctrlData.FindItem(&fi);
//m_ctrlData.SendMessage(LVM_FINDITEM, -1, (LPARAM)&fi);


But in this case, my OnLvnOdfinditemData handler never gets called! I also tried sending manually with SendMessage but it did not work either.

What could be the problem?
AnswerRe: List control ignores FindItem? Pin
Stuart Dootson10-Jan-09 13:52
professionalStuart Dootson10-Jan-09 13:52 
QuestionRe: List control ignores FindItem? Pin
nobaq11-Jan-09 4:41
nobaq11-Jan-09 4:41 
QuestionRe: List control ignores FindItem? Pin
nobaq11-Jan-09 4:50
nobaq11-Jan-09 4:50 
AnswerRe: List control ignores FindItem? Pin
Stuart Dootson11-Jan-09 5:11
professionalStuart Dootson11-Jan-09 5:11 
QuestionPNG on button Pin
kiranin10-Jan-09 6:29
kiranin10-Jan-09 6:29 
AnswerRe: PNG on button Pin
Richard Andrew x6410-Jan-09 6:42
professionalRichard Andrew x6410-Jan-09 6:42 
GeneralRe: PNG on button Pin
kiranin10-Jan-09 7:18
kiranin10-Jan-09 7:18 
AnswerRe: PNG on button Pin
Hamid_RT10-Jan-09 7:50
Hamid_RT10-Jan-09 7:50 
AnswerRe: PNG on button Pin
CPallini10-Jan-09 10:48
mveCPallini10-Jan-09 10:48 
AnswerRe: PNG on button Pin
Iain Clarke, Warrior Programmer11-Jan-09 23:12
Iain Clarke, Warrior Programmer11-Jan-09 23:12 
QuestionSimple Question: Where to store global object? Pin
nobaq10-Jan-09 5:47
nobaq10-Jan-09 5:47 
AnswerRe: Simple Question: Where to store global object? Pin
Richard Andrew x6410-Jan-09 6:08
professionalRichard Andrew x6410-Jan-09 6:08 
GeneralRe: Simple Question: Where to store global object? Pin
nobaq10-Jan-09 6:15
nobaq10-Jan-09 6:15 
GeneralRe: Simple Question: Where to store global object? Pin
nobaq10-Jan-09 6:18
nobaq10-Jan-09 6:18 
GeneralRe: Simple Question: Where to store global object? Pin
Richard Andrew x6410-Jan-09 6:27
professionalRichard Andrew x6410-Jan-09 6:27 
AnswerRe: Simple Question: Where to store global object? Pin
David Crow12-Jan-09 3:30
David Crow12-Jan-09 3:30 
Questioncompare c++/MFC to C#/.net Pin
Seraph_summer10-Jan-09 5:09
Seraph_summer10-Jan-09 5:09 

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.