Click here to Skip to main content
15,920,896 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Query about MCI(Media Control Interface) Pin
Raja Bose C Leo14-Nov-06 18:35
Raja Bose C Leo14-Nov-06 18:35 
GeneralRe: Query about MCI(Media Control Interface) Pin
Hamid_RT14-Nov-06 20:15
Hamid_RT14-Nov-06 20:15 
Questione.Problem Pin
amaneet10-Nov-06 21:40
amaneet10-Nov-06 21:40 
AnswerRe: e.Problem Pin
Hamid_RT11-Nov-06 0:23
Hamid_RT11-Nov-06 0:23 
AnswerRe: e.Problem Pin
toxcct11-Nov-06 1:02
toxcct11-Nov-06 1:02 
QuestionHow I can add jpg images in list box? [modified] Pin
Sameer_Thakur10-Nov-06 21:11
Sameer_Thakur10-Nov-06 21:11 
AnswerRe: How I can add jpg images in list box? Pin
Hamid_RT11-Nov-06 0:24
Hamid_RT11-Nov-06 0:24 
GeneralRe: How I can add jpg images in list box? Pin
Sameer_Thakur11-Nov-06 1:54
Sameer_Thakur11-Nov-06 1:54 
Hi.

Yes I tried using CListCtrl but it is not showing an image in the List Control.

Here is the sequence how I proceed.
1. Add List Control on the Dialog box.
2. CMyDlg:: OnInitDialog()
{
Get List Control pointer in pListCtrl by using GetDlgItem(ID_OF_LIST_CTRL)
if( NULL == pListCtrl->GetSafeHwnd() )
return;
CImageList *pImgList = new CImageList;

pImgList->Create(IDB_IMAGE1,50,0,RGB(255,0,255));

pListCtrl->SetImageList(pImgList,LVSIL_NORMAL);

LVITEM lItem;
lItem.mask = LVIF_IMAGE;
lItem.iItem = 0;
lItem.pszText = "HI";
lItem.iImage = 0;

pListCtrl->InsertItem(&lItem);

}

Still I could not see an Image in the List control.
Am I missing something here?

Help Please.

Thanks


Rakesh Thakur

GeneralRe: How I can add jpg images in list box? Pin
Mark Salsbery11-Nov-06 5:04
Mark Salsbery11-Nov-06 5:04 
GeneralRe: How I can add jpg images in list box? Pin
Hamid_RT11-Nov-06 23:07
Hamid_RT11-Nov-06 23:07 
Questionprefix increment Pin
amaneet10-Nov-06 20:45
amaneet10-Nov-06 20:45 
AnswerRe: prefix increment Pin
Mohammad A Gdeisat10-Nov-06 23:36
Mohammad A Gdeisat10-Nov-06 23:36 
GeneralRe: prefix increment Pin
CPallini13-Nov-06 6:26
mveCPallini13-Nov-06 6:26 
GeneralRe: prefix increment Pin
Mohammad A Gdeisat13-Nov-06 7:34
Mohammad A Gdeisat13-Nov-06 7:34 
AnswerRe: prefix increment Pin
toxcct11-Nov-06 1:06
toxcct11-Nov-06 1:06 
QuestionLocking Winsock from sending windows message Pin
Toubou10-Nov-06 20:17
Toubou10-Nov-06 20:17 
AnswerRe: Locking Winsock from sending windows message Pin
Mark Salsbery11-Nov-06 5:12
Mark Salsbery11-Nov-06 5:12 
Question.NET guy wanting to learn C++ Pin
Richard Parsons10-Nov-06 18:10
Richard Parsons10-Nov-06 18:10 
AnswerRe: .NET guy wanting to learn C++ Pin
smithjunior11-Nov-06 1:12
smithjunior11-Nov-06 1:12 
QuestionList of Domains in the network Pin
Taruni10-Nov-06 18:08
Taruni10-Nov-06 18:08 
Questionprogressbar and a manifest Pin
locoone10-Nov-06 13:38
locoone10-Nov-06 13:38 
AnswerRe: progressbar and a manifest Pin
Michael Dunn10-Nov-06 14:17
sitebuilderMichael Dunn10-Nov-06 14:17 
Questiondouble click files to open with single app Pin
includeh1010-Nov-06 13:27
includeh1010-Nov-06 13:27 
AnswerRe: double click files to open with single app Pin
Monty210-Nov-06 18:45
Monty210-Nov-06 18:45 
QuestionMultiagent Systems (MAS) Pin
hahayk10-Nov-06 11:31
hahayk10-Nov-06 11:31 

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.