Click here to Skip to main content
15,913,055 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralWin 9x SetWindow Rgn Problem Pin
nemo26-Apr-03 6:36
nemo26-Apr-03 6:36 
Generaltelephone-conversation Recorder Pin
ZarrinPour26-Apr-03 5:37
ZarrinPour26-Apr-03 5:37 
GeneralGDI question Pin
pankajdaga26-Apr-03 5:32
pankajdaga26-Apr-03 5:32 
GeneralSwitch static Splitter Windows Pin
schoni26-Apr-03 4:17
schoni26-Apr-03 4:17 
GeneralStyle question - low priority. Pin
73Zeppelin26-Apr-03 4:14
73Zeppelin26-Apr-03 4:14 
GeneralRe: Style question - low priority. Pin
Ravi Bhavnani26-Apr-03 4:44
professionalRavi Bhavnani26-Apr-03 4:44 
GeneralRe: Style question - low priority. Pin
Hans Dietrich27-Apr-03 0:00
mentorHans Dietrich27-Apr-03 0:00 
GeneralDisplaying Jpg in Listview Pin
Mortis26-Apr-03 3:10
Mortis26-Apr-03 3:10 
I'm trying to make a list of thumbnails in a listview window. So far I can only make it work with resource bitmaps, when i try a hard coded jpg, i get get a blank image, with "hiya" under it
Its probally something really dumb, but i just cant find it. If anyone could point it out i'd be very grateful
(I'm almost positive its not the Bmp variable, the function does return a BITMAP)

//Here's the code

//Opens a thumbnail struc and sets its x and y
thumb = openThumb(&x ,&y);
_bstr_t txt("Hiya");

//Gets Handle to the listControl
hThumbList = GetDlgItem(g_hWnd ,IDC_LIST_THUMB);

//x = 160, y = 120
hImageList = ImageList_Create(x,y,ILC_MASK | ILC_COLOR32,0,0);

Bmp = getThumbBmp(g_hWnd,hPicDC); //Returns a HBITMAP

//Adds bitmap to the list as position 0
ImageList_Add(hImageList, Bmp, NULL);


SendDlgItemMessage(g_hWnd,IDC_LIST_THUMB,LVM_SETIMAGELIST,0,(LPARAM)hImageList);

lvi.mask = TVIF_TEXT | TVIF_IMAGE;
lvi.pszText = txt;
lvi.iImage = 0; //First Image added
// Insert info to the Listview
SendMessage(hThumbList ,LVM_INSERTITEM,0,(LPARAM)&lvi);

GeneralRe: Displaying Jpg in Listview Pin
Lior Shoval26-Apr-03 5:33
Lior Shoval26-Apr-03 5:33 
Generalglobal variables issue Pin
Anonymous26-Apr-03 3:00
Anonymous26-Apr-03 3:00 
GeneralRe: global variables issue Pin
Gary R. Wheeler26-Apr-03 5:22
Gary R. Wheeler26-Apr-03 5:22 
GeneralOLE DB problem in VC++ COM when used with ASP Pin
Mahesh Perumal26-Apr-03 2:17
Mahesh Perumal26-Apr-03 2:17 
GeneralRe: OLE DB problem in VC++ COM when used with ASP Pin
Stephane Rodriguez.26-Apr-03 5:36
Stephane Rodriguez.26-Apr-03 5:36 
GeneralRe: OLE DB problem in VC++ COM when used with ASP Pin
Mahesh Perumal26-Apr-03 21:31
Mahesh Perumal26-Apr-03 21:31 
GeneralProblem with Listview Pin
Mortis26-Apr-03 0:23
Mortis26-Apr-03 0:23 
GeneralRe: Problem with Listview Pin
Mortis26-Apr-03 0:47
Mortis26-Apr-03 0:47 
GeneralRe: Problem with Listview Pin
MAAK27-Apr-03 2:05
MAAK27-Apr-03 2:05 
GeneralRe: Problem with Listview Pin
Mortis27-Apr-03 2:43
Mortis27-Apr-03 2:43 
Generalsyntax question Pin
Lior Shoval26-Apr-03 0:09
Lior Shoval26-Apr-03 0:09 
GeneralRe: syntax question Pin
Christian Graus26-Apr-03 0:14
protectorChristian Graus26-Apr-03 0:14 
GeneralRe: syntax question Pin
Johann Gerell26-Apr-03 2:42
Johann Gerell26-Apr-03 2:42 
GeneralRe: syntax question Pin
Lior Shoval26-Apr-03 4:47
Lior Shoval26-Apr-03 4:47 
GeneralRe: syntax question Pin
Johann Gerell26-Apr-03 10:23
Johann Gerell26-Apr-03 10:23 
GeneralRe: syntax question Pin
Lior Shoval26-Apr-03 4:49
Lior Shoval26-Apr-03 4:49 
GeneralRe: syntax question Pin
Gary R. Wheeler26-Apr-03 5:27
Gary R. Wheeler26-Apr-03 5:27 

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.