Click here to Skip to main content
15,881,882 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How read XLSX file without office automation? Pin
Le@rner19-Nov-19 1:36
Le@rner19-Nov-19 1:36 
GeneralRe: How read XLSX file without office automation? Pin
Richard Deeming19-Nov-19 2:19
mveRichard Deeming19-Nov-19 2:19 
GeneralRe: How read XLSX file without office automation? Pin
Le@rner19-Nov-19 2:25
Le@rner19-Nov-19 2:25 
AnswerRe: How read XLSX file without office automation? Pin
leon de boer19-Nov-19 2:43
leon de boer19-Nov-19 2:43 
GeneralRe: How read XLSX file without office automation? Pin
Le@rner20-Nov-19 22:29
Le@rner20-Nov-19 22:29 
QuestionRe: How read XLSX file without office automation? Pin
David Crow19-Nov-19 2:52
David Crow19-Nov-19 2:52 
AnswerRe: How read XLSX file without office automation? Pin
leon de boer19-Nov-19 19:23
leon de boer19-Nov-19 19:23 
QuestionHelp with Resizing Bitmap loaded with LoadImage() and Attach to CImagelist object Pin
EternalWyrm18-Nov-19 13:02
EternalWyrm18-Nov-19 13:02 
I've been working on this for a few days and I can't seem to get it. I just want to load a bitmap from file, resize it, then attach it to a CImageList obj via the Add() Member function.

I'm using LoadImage() to load the bitmap into memory from disk.

HBITMAP hbmp = (HBITMAP) ::LoadImage(..) ;

I can display the bitmap just fine using pDC->DrawState(…, , hbmp);


I've tried creating a memoryDC and a Compatible Bitmap like this:

HDC hClientDC = GetDC()->m_hDC;
HDC hMemDC = NULL;
HBITMAP hMemBitmap = NULL;

//create compatible memory area
hMemDC = CreateCompatibleDC(hClientDC);
hMemBitmap = CreateCompatibleBitmap(hMemDC, cx, cy);

But, then I can't seem to copy anything into it. I'm a noob, so I'm just lost here.
Can anyone help?

EW.
AnswerRe: Help with Resizing Bitmap loaded with LoadImage() and Attach to CImagelist object Pin
Victor Nijegorodov18-Nov-19 20:59
Victor Nijegorodov18-Nov-19 20:59 
AnswerRe: Help with Resizing Bitmap loaded with LoadImage() and Attach to CImagelist object Pin
Richard MacCutchan18-Nov-19 21:26
mveRichard MacCutchan18-Nov-19 21:26 
AnswerRe: Help with Resizing Bitmap loaded with LoadImage() and Attach to CImagelist object Pin
leon de boer18-Nov-19 23:14
leon de boer18-Nov-19 23:14 
QuestionRe: Help with Resizing Bitmap loaded with LoadImage() and Attach to CImagelist object Pin
EternalWyrm20-Nov-19 6:58
EternalWyrm20-Nov-19 6:58 
AnswerRe: Help with Resizing Bitmap loaded with LoadImage() and Attach to CImagelist object Pin
leon de boer8-Dec-19 13:24
leon de boer8-Dec-19 13:24 
QuestionVS2008 Map files, this can't be this hard! Pin
charlieg18-Nov-19 12:48
charlieg18-Nov-19 12:48 
AnswerRe: VS2008 Map files, this can't be this hard! Pin
Randor 24-Nov-19 16:04
professional Randor 24-Nov-19 16:04 
GeneralRe: VS2008 Map files, this can't be this hard! Pin
charlieg25-Nov-19 5:45
charlieg25-Nov-19 5:45 
GeneralRe: VS2008 Map files, this can't be this hard! Pin
Randor 25-Nov-19 7:08
professional Randor 25-Nov-19 7:08 
Questionc++ string_view Pin
T Bones Jones14-Nov-19 11:38
T Bones Jones14-Nov-19 11:38 
AnswerRe: c++ string_view Pin
Graham Breach14-Nov-19 12:10
Graham Breach14-Nov-19 12:10 
GeneralRe: c++ string_view Pin
T Bones Jones15-Nov-19 3:44
T Bones Jones15-Nov-19 3:44 
QuestionPROGRAMMER'S MOM- Needs your help =) Pin
Member 1465597214-Nov-19 7:57
Member 1465597214-Nov-19 7:57 
AnswerRe: PROGRAMMER'S MOM- Needs your help =) Pin
OriginalGriff14-Nov-19 7:59
mveOriginalGriff14-Nov-19 7:59 
Questionpassword in star form Pin
Member 1461560311-Nov-19 23:34
Member 1461560311-Nov-19 23:34 
AnswerRe: password in star form Pin
CPallini12-Nov-19 0:33
mveCPallini12-Nov-19 0:33 
SuggestionRe: password in star form Pin
David Crow12-Nov-19 5:48
David Crow12-Nov-19 5:48 

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.