Click here to Skip to main content
15,890,995 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: debug assertion failed Pin
David Crow26-Jul-06 9:10
David Crow26-Jul-06 9:10 
GeneralRe: debug assertion failed Pin
identity_8526-Jul-06 9:39
identity_8526-Jul-06 9:39 
QuestionRe: debug assertion failed Pin
David Crow26-Jul-06 9:54
David Crow26-Jul-06 9:54 
AnswerRe: debug assertion failed Pin
Zac Howland26-Jul-06 10:26
Zac Howland26-Jul-06 10:26 
GeneralRe: debug assertion failed Pin
David Crow26-Jul-06 10:56
David Crow26-Jul-06 10:56 
QuestionDebugger problems with run-time information Pin
adamshuv26-Jul-06 5:13
adamshuv26-Jul-06 5:13 
AnswerRe: Debugger problems with run-time information Pin
Matt Godbolt26-Jul-06 6:08
Matt Godbolt26-Jul-06 6:08 
QuestionCreate a bitmap [modified] Pin
#realJSOP26-Jul-06 5:04
mve#realJSOP26-Jul-06 5:04 
I have two bitmaps (loaded from resources).

I want to combine thse two bitmaps side-by-side into a 3rd bitmap.

I want to put the 3rd (combined) bitmap into an image list.

I tried using the BitmapDC class from the GDI articles section, but I'm missing something (obviously, otherwise I wouldn't be here).

Here's the code I'm using now:

CBitmap bmp1;
CBitmap bmp2;
bmp1.LoadBitmap(nImgConsult);
bmp2.LoadBitmap(nImgLabs);
CBitmapDC bmpDC(34, 21, GetDC(), RGB(255,255,255));
DrawBitmap(&bmp1, &bmpDC, CPoint(0, 0));
DrawBitmap(&bmp2, &bmpDC, CPoint(17, 0));
CBitmap* pBMP = bmpDC.Close();
if (!m_ResultsImages.Replace(0, pBMP, NULL))
{
    TRACE("ImageList.Replace failed\n");
}
delete pBMP;


Any hints, clues, or alternative code?



-- modified at 11:36 Wednesday 26th July, 2006
AnswerRe: Create a bitmap Pin
Zac Howland26-Jul-06 5:40
Zac Howland26-Jul-06 5:40 
AnswerRe: Create a bitmap Pin
valikac26-Jul-06 6:47
valikac26-Jul-06 6:47 
QuestionTwo Documents in an Application Pin
narayanagvs26-Jul-06 4:55
narayanagvs26-Jul-06 4:55 
AnswerRe: Two Documents in an Application Pin
led mike26-Jul-06 5:46
led mike26-Jul-06 5:46 
AnswerRe: Two Documents in an Application Pin
BlitzPackage26-Jul-06 7:36
BlitzPackage26-Jul-06 7:36 
QuestionStrange error i cannot fathom Pin
eeyor66626-Jul-06 4:33
eeyor66626-Jul-06 4:33 
AnswerRe: Strange error i cannot fathom Pin
RChin26-Jul-06 4:46
RChin26-Jul-06 4:46 
AnswerRe: Strange error i cannot fathom Pin
David Crow26-Jul-06 4:48
David Crow26-Jul-06 4:48 
AnswerRe: Strange error i cannot fathom [modified] Pin
toxcct26-Jul-06 5:02
toxcct26-Jul-06 5:02 
GeneralRe: Strange error i cannot fathom Pin
Zac Howland26-Jul-06 5:06
Zac Howland26-Jul-06 5:06 
GeneralRe: Strange error i cannot fathom Pin
toxcct26-Jul-06 5:09
toxcct26-Jul-06 5:09 
AnswerRe: Strange error i cannot fathom Pin
Zac Howland26-Jul-06 5:03
Zac Howland26-Jul-06 5:03 
Questionconversion Pin
RockyJames26-Jul-06 4:32
RockyJames26-Jul-06 4:32 
AnswerRe: conversion Pin
David Crow26-Jul-06 4:45
David Crow26-Jul-06 4:45 
GeneralRe: conversion Pin
RockyJames26-Jul-06 4:53
RockyJames26-Jul-06 4:53 
QuestionRe: conversion Pin
David Crow26-Jul-06 5:03
David Crow26-Jul-06 5:03 
AnswerRe: conversion Pin
toxcct26-Jul-06 5:05
toxcct26-Jul-06 5: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.