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

C / C++ / MFC

 
QuestionRe: Tab key is not working inspite of set property ture Pin
Rajesh R Subramanian22-Mar-07 3:30
professionalRajesh R Subramanian22-Mar-07 3:30 
AnswerRe: Tab key is not working inspite of set property ture Pin
amitmistry_petlad 22-Mar-07 3:37
amitmistry_petlad 22-Mar-07 3:37 
AnswerRe: Tab key is not working inspite of set property ture Pin
prasad_som22-Mar-07 18:20
prasad_som22-Mar-07 18:20 
GeneralRe: Tab key is not working inspite of set property ture Pin
amitmistry_petlad 22-Mar-07 18:45
amitmistry_petlad 22-Mar-07 18:45 
QuestionRe: Tab key is not working inspite of set property ture Pin
prasad_som22-Mar-07 18:50
prasad_som22-Mar-07 18:50 
AnswerRe: Tab key is not working inspite of set property ture Pin
amitmistry_petlad 22-Mar-07 18:59
amitmistry_petlad 22-Mar-07 18:59 
QuestionRe: Tab key is not working inspite of set property ture Pin
prasad_som22-Mar-07 19:02
prasad_som22-Mar-07 19:02 
AnswerRe: Tab key is not working inspite of set property ture Pin
amitmistry_petlad 22-Mar-07 19:12
amitmistry_petlad 22-Mar-07 19:12 
GeneralRe: Tab key is not working inspite of set property ture Pin
prasad_som22-Mar-07 19:42
prasad_som22-Mar-07 19:42 
GeneralRe: Tab key is not working inspite of set property ture Pin
amitmistry_petlad 22-Mar-07 19:51
amitmistry_petlad 22-Mar-07 19:51 
QuestionRe: Tab key is not working inspite of set property ture Pin
prasad_som22-Mar-07 20:08
prasad_som22-Mar-07 20:08 
AnswerRe: Tab key is not working inspite of set property ture Pin
amitmistry_petlad 22-Mar-07 20:15
amitmistry_petlad 22-Mar-07 20:15 
QuestionMaking a file not accessible by other applications Pin
vasu_sri22-Mar-07 2:34
vasu_sri22-Mar-07 2:34 
AnswerRe: Making a file not accessible by other applications Pin
prasad_som22-Mar-07 2:44
prasad_som22-Mar-07 2:44 
GeneralRe: Making a file not accessible by other applications Pin
vasu_sri22-Mar-07 3:01
vasu_sri22-Mar-07 3:01 
AnswerRe: Making a file not accessible by other applications Pin
prasad_som22-Mar-07 3:07
prasad_som22-Mar-07 3:07 
AnswerRe: Making a file not accessible by other applications Pin
Roger Stoltz22-Mar-07 2:48
Roger Stoltz22-Mar-07 2:48 
AnswerRe: Making a file not accessible by other applications Pin
DLChambers23-Mar-07 16:47
DLChambers23-Mar-07 16:47 
Questiona problem about ListBox's item Pin
Chen-XuNuo22-Mar-07 2:32
Chen-XuNuo22-Mar-07 2:32 
AnswerRe: a problem about ListBox's item Pin
prasad_som22-Mar-07 2:45
prasad_som22-Mar-07 2:45 
GeneralRe: a problem about ListBox's item Pin
Chen-XuNuo22-Mar-07 3:41
Chen-XuNuo22-Mar-07 3:41 
I am refering to a example about ListBox,and it creates a function AddItem like this:
void CListBoxEx::AddItem(UINT IconID, LPCTSTR lpszText)
{
//Adds a string ans assigns nIndex the index of the current item
int nIndex=AddString(lpszText);
//If no error, associates the index with the bitmap ID
if (nIndex!=LB_ERR && nIndex!=LB_ERRSPACE)
SetItemData(nIndex, IconID);
}
It calls AddString and after it calls SetItemData,whether the data of string and the bitmap both are save in lpDrawItemStruct->itemData?I am puzzled~

And I call the AddString("1");
and get the string and in DrawItem like this:

CString* pt_str=(CString*)lpDrawItemStruct->itemData;
dc.TextOut(lpDrawItemStruct->rcItem.left+4,lpDrawItemStruct->rcItem.top+2,
*pt_str);
is it correct?
AnswerRe: a problem about ListBox's item Pin
CPallini22-Mar-07 2:46
mveCPallini22-Mar-07 2:46 
GeneralRe: a problem about ListBox's item Pin
Chen-XuNuo22-Mar-07 3:13
Chen-XuNuo22-Mar-07 3:13 
GeneralRe: a problem about ListBox's item Pin
CPallini22-Mar-07 3:38
mveCPallini22-Mar-07 3:38 
GeneralRe: a problem about ListBox's item Pin
Chen-XuNuo22-Mar-07 3:44
Chen-XuNuo22-Mar-07 3:44 

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.