Click here to Skip to main content
15,884,388 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionuse CListCtrl to list thumbnail, using GDI+ Pin
followait1-Dec-07 20:22
followait1-Dec-07 20:22 
AnswerRe: use CListCtrl to list thumbnail, using GDI+ Pin
Mark Salsbery1-Dec-07 20:31
Mark Salsbery1-Dec-07 20:31 
GeneralRe: use CListCtrl to list thumbnail, using GDI+ Pin
followait1-Dec-07 20:34
followait1-Dec-07 20:34 
GeneralRe: use CListCtrl to list thumbnail, using GDI+ Pin
Mark Salsbery1-Dec-07 20:37
Mark Salsbery1-Dec-07 20:37 
GeneralRe: use CListCtrl to list thumbnail, using GDI+ Pin
bob169721-Dec-07 21:17
bob169721-Dec-07 21:17 
GeneralRe: use CListCtrl to list thumbnail, using GDI+ Pin
followait1-Dec-07 23:46
followait1-Dec-07 23:46 
QuestionGDI+ Bitmap::GetHBITMAP error: Pin
followait1-Dec-07 19:45
followait1-Dec-07 19:45 
AnswerRe: GDI+ Bitmap::GetHBITMAP error: Pin
Mark Salsbery1-Dec-07 20:00
Mark Salsbery1-Dec-07 20:00 
Maybe something like this...
Bitmap bmp(LPCTSTR(FilePath));  <font color="Red"><-- what's this?  A WCHAR * is expected here, not a LPCTSTR</font>
HBITMAP hBmp;
bmp.GetHBITMAP(Color::Black, &hBmp);
CBitmap *pBmp=new CBitmap;
pBmp->Attach(hBmp);  <font color="Red">//<-- attaching more permanent than FromHandle()!  Check the docs!</font>

Mark




Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: GDI+ Bitmap::GetHBITMAP error: Pin
followait1-Dec-07 20:06
followait1-Dec-07 20:06 
GeneralRe: GDI+ Bitmap::GetHBITMAP error: Pin
Mark Salsbery1-Dec-07 20:09
Mark Salsbery1-Dec-07 20:09 
GeneralRe: GDI+ Bitmap::GetHBITMAP error: Pin
followait1-Dec-07 20:17
followait1-Dec-07 20:17 
GeneralRe: GDI+ Bitmap::GetHBITMAP error: Pin
Mark Salsbery1-Dec-07 20:23
Mark Salsbery1-Dec-07 20:23 
GeneralRe: GDI+ Bitmap::GetHBITMAP error: Pin
followait1-Dec-07 20:30
followait1-Dec-07 20:30 
GeneralRe: GDI+ Bitmap::GetHBITMAP error: Pin
Mark Salsbery1-Dec-07 20:33
Mark Salsbery1-Dec-07 20:33 
QuestionWhat pointer do I pass to my display function Pin
sclaxplayer1-Dec-07 19:37
sclaxplayer1-Dec-07 19:37 
GeneralRe: What pointer do I pass to my display function Pin
Nelek4-Dec-07 21:13
protectorNelek4-Dec-07 21:13 
Questioninput both text as well as image Pin
keyto1-Dec-07 18:23
keyto1-Dec-07 18:23 
AnswerRe: input both text as well as image Pin
bob169721-Dec-07 19:40
bob169721-Dec-07 19:40 
QuestionWhere to initialize the dialog in CDialogBar? Pin
followait1-Dec-07 15:50
followait1-Dec-07 15:50 
AnswerRe: Where to initialize the dialog in CDialogBar? Pin
Mark Salsbery1-Dec-07 16:27
Mark Salsbery1-Dec-07 16:27 
AnswerRe: Where to initialize the dialog in CDialogBar? Pin
bob169721-Dec-07 17:36
bob169721-Dec-07 17:36 
AnswerRe: Where to initialize the dialog in CDialogBar? Pin
Mark Salsbery1-Dec-07 18:25
Mark Salsbery1-Dec-07 18:25 
GeneralRe: Where to initialize the dialog in CDialogBar? Pin
followait1-Dec-07 19:42
followait1-Dec-07 19:42 
Questionparameters vs members Pin
bob169721-Dec-07 14:06
bob169721-Dec-07 14:06 
AnswerRe: parameters vs members Pin
Mark Salsbery1-Dec-07 15:56
Mark Salsbery1-Dec-07 15:56 

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.