Click here to Skip to main content
14,662,171 members
Home » Discussions » C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: about task manager Pin
chandu0043-Sep-07 2:25
Memberchandu0043-Sep-07 2:25 
GeneralRe: about task manager Pin
Jerry Hammond4-Sep-07 20:24
MemberJerry Hammond4-Sep-07 20:24 
AnswerRe: about task manager Pin
Russell'3-Sep-07 3:13
MemberRussell'3-Sep-07 3:13 
QuestionHow to get last window's hwnd Pin
josip cagalj3-Sep-07 1:45
Memberjosip cagalj3-Sep-07 1:45 
AnswerRe: How to get last window's hwnd Pin
Nishad S3-Sep-07 2:46
MemberNishad S3-Sep-07 2:46 
GeneralRe: How to get last window's hwnd [modified] Pin
josip cagalj3-Sep-07 21:52
Memberjosip cagalj3-Sep-07 21:52 
QuestionTDI Server Programme .... TdiBuildListen help Pin
barun_iit3-Sep-07 0:30
Memberbarun_iit3-Sep-07 0:30 
QuestionHow to use SetItem() and GetItem() for ListCtrl having JPEG images? Pin
Atul233-Sep-07 0:15
MemberAtul233-Sep-07 0:15 
Hi All,

I am using listctrl in which I add JPEG images loading from images saves on hard disk.

To Set item in ListCtrl control I use SetItem() function as follows

CString pstr = "C:\\JPEG_image";

BOOL blnCheck = mWebPagePrvListCtrl.SetItemData(iItemindex,(DWORD)pstr);

But the above statement not set the value of pstr in ListCtrl.


To identify which images is click by user I use following code to access data of image.
as

int itemIndex = mWebPagePrvListCtrl.GetHotItem();

CString* pStr = (CString*) mWebPagePrvListCtrl.GetItemData(itemIndex);


Plz send me what is the problem in above code.


Thanks in Advance



Atul
AnswerRe: How to use SetItem() and GetItem() for ListCtrl having JPEG images? Pin
Nishad S3-Sep-07 1:41
MemberNishad S3-Sep-07 1:41 
GeneralRe: How to use SetItem() and GetItem() for ListCtrl having JPEG images? Pin
Atul233-Sep-07 1:55
MemberAtul233-Sep-07 1:55 
GeneralRe: How to use SetItem() and GetItem() for ListCtrl having JPEG images? Pin
Nishad S3-Sep-07 2:44
MemberNishad S3-Sep-07 2:44 
QuestionImport dll to vc++ Pin
shakumar_222-Sep-07 23:56
Membershakumar_222-Sep-07 23:56 
AnswerRe: Import dll to vc++ Pin
chandu0043-Sep-07 0:01
Memberchandu0043-Sep-07 0:01 
GeneralRe: Import dll to vc++ Pin
shakumar_223-Sep-07 0:56
Membershakumar_223-Sep-07 0:56 
AnswerRe: Import dll to vc++ Pin
Hamid_RT3-Sep-07 0:05
MemberHamid_RT3-Sep-07 0:05 
Questionhi Pin
Lakshmi_p2-Sep-07 23:47
MemberLakshmi_p2-Sep-07 23:47 
AnswerRe: hi Pin
baerten2-Sep-07 23:53
Memberbaerten2-Sep-07 23:53 
GeneralRe: hi Pin
Rajesh R Subramanian2-Sep-07 23:59
professionalRajesh R Subramanian2-Sep-07 23:59 
GeneralRe: hi Pin
Lakshmi_p3-Sep-07 0:37
MemberLakshmi_p3-Sep-07 0:37 
AnswerRe: hi Pin
Rajesh R Subramanian3-Sep-07 0:08
professionalRajesh R Subramanian3-Sep-07 0:08 
Questionabout HKEY_CLASSES_ROOT TypeLib Pin
George_George2-Sep-07 23:27
MemberGeorge_George2-Sep-07 23:27 
QuestionStack overflow while reading bamp image Pin
Maynka2-Sep-07 23:26
MemberMaynka2-Sep-07 23:26 
AnswerRe: Stack overflow while reading bamp image Pin
chandu0042-Sep-07 23:48
Memberchandu0042-Sep-07 23:48 
AnswerRe: Stack overflow while reading bamp image Pin
Russell'2-Sep-07 23:55
MemberRussell'2-Sep-07 23:55 
AnswerRe: Stack overflow while reading bamp image Pin
Mark Salsbery3-Sep-07 9:05
MemberMark Salsbery3-Sep-07 9:05 

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.