Click here to Skip to main content
16,005,038 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: TAPI. Is it possible Pin
David Crow21-Aug-03 4:17
David Crow21-Aug-03 4:17 
QuestionHow to develop Search Engine like google. Pin
Ahmad9921-Aug-03 3:15
Ahmad9921-Aug-03 3:15 
AnswerRe: How to develop Search Engine like google. Pin
David Crow21-Aug-03 4:34
David Crow21-Aug-03 4:34 
GeneralListBox derived class Problem Pin
matrix66621-Aug-03 3:12
matrix66621-Aug-03 3:12 
GeneralRe: ListBox derived class Problem Pin
YaronNir21-Aug-03 3:16
YaronNir21-Aug-03 3:16 
GeneralRe: ListBox derived class Problem Pin
matrix66621-Aug-03 3:24
matrix66621-Aug-03 3:24 
GeneralRe: ListBox derived class Problem Pin
David Crow21-Aug-03 7:19
David Crow21-Aug-03 7:19 
GeneralRe: ListBox derived class Problem Pin
matrix66621-Aug-03 15:29
matrix66621-Aug-03 15:29 
ok .. I'll try to explane better ...

I have 2 Classes ...

class MCIconListBoxDesc : public CListBox // new ListBox class
class MCIconListBoxDescItem : public CObject // items for the list box

in MCIconListBoxDesc.h I have these function

virtual void DrawItem(LPDRAWITEMSTRUCT /*lpDrawItemStruct*/);
virtual void MeasureItem(LPMEASUREITEMSTRUCT /*lpMeasureItemStruct*/);

then .. in the oninitdialog function of the project i write these lines to create new component
//m_lb is a MCIconListBoxDesc object
CRect lbRC(10,10,300,400);
m_lb.Create(WS_BORDER | WS_CHILD | WS_VISIBLE | WS_VSCROLL | LBS_DISABLENOSCROLL | LBS_OWNERDRAWVARIABLE, lbRC , this , IDC_MCLB);

then in MCIconListBoxDesc.h i write a function called
void AddNewMessage(MCIconListBoxDescItem *p_item);
//definition
void MCIconListBoxDesc::AddNewMessage(MCIconListBoxDescItem *p_item)
{
m_obArray.Add(p_item); // nothing important for my problem
this->AddString(p_item->GetDateTime());
this->SetTopIndex(this->GetCount()-1);
}

then ... when I try to execute and debug application, I put a breack point at the begin of the MeasureItem function but this not stop the process .. and it goes directly at DrawItem function.

how can I do ?
I tryed also to set MeasureItem as WM_MEASUREITEM

please someone help me Smile | :)
GeneralRe: ListBox derived class Problem Pin
Joey Bloggs21-Aug-03 21:52
Joey Bloggs21-Aug-03 21:52 
GeneralRe: ListBox derived class Problem Pin
matrix66622-Aug-03 1:52
matrix66622-Aug-03 1:52 
QuestionHow to get the ID of a CTreeCtrl HTREEITEM? Pin
User-37793621-Aug-03 3:10
User-37793621-Aug-03 3:10 
AnswerRe: How to get the ID of a CTreeCtrl HTREEITEM? Pin
PJ Arends21-Aug-03 9:40
professionalPJ Arends21-Aug-03 9:40 
GeneralRe: How to get the ID of a CTreeCtrl HTREEITEM? Pin
Anonymous22-Aug-03 4:03
Anonymous22-Aug-03 4:03 
Generalnewbie MFC Dialog Memory problem Pin
alexissss21-Aug-03 1:27
alexissss21-Aug-03 1:27 
GeneralRe: newbie MFC Dialog Memory problem Pin
David Crow21-Aug-03 2:34
David Crow21-Aug-03 2:34 
GeneralRe: newbie MFC Dialog Memory problem Pin
alexissss21-Aug-03 3:30
alexissss21-Aug-03 3:30 
GeneralRe: newbie MFC Dialog Memory problem Pin
David Crow21-Aug-03 7:27
David Crow21-Aug-03 7:27 
GeneralCStrings in a class sharing one address Pin
Michael Delvos21-Aug-03 1:22
Michael Delvos21-Aug-03 1:22 
GeneralRe: CStrings in a class sharing one address Pin
Ryan Binns21-Aug-03 1:45
Ryan Binns21-Aug-03 1:45 
GeneralRe: CStrings in a class sharing one address Pin
Michael Delvos21-Aug-03 1:56
Michael Delvos21-Aug-03 1:56 
GeneralRe: CStrings in a class sharing one address Pin
Ryan Binns21-Aug-03 2:16
Ryan Binns21-Aug-03 2:16 
GeneralRe: CStrings in a class sharing one address Pin
Dangleberry21-Aug-03 2:24
sussDangleberry21-Aug-03 2:24 
GeneralRe: CStrings in a class sharing one address Pin
David Crow21-Aug-03 2:38
David Crow21-Aug-03 2:38 
GeneralRe: CStrings in a class sharing one address Pin
Michael Delvos21-Aug-03 2:45
Michael Delvos21-Aug-03 2:45 
GeneralXModem Pin
SLiDeR21-Aug-03 1:19
SLiDeR21-Aug-03 1:19 

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.