Click here to Skip to main content
16,014,677 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CreateWindow from DLL Pin
User 66584-Apr-02 10:16
User 66584-Apr-02 10:16 
GeneralRe: CreateWindow from DLL Pin
Tomasz Sowinski4-Apr-02 10:21
Tomasz Sowinski4-Apr-02 10:21 
GeneralRe: CreateWindow from DLL Pin
User 66584-Apr-02 10:26
User 66584-Apr-02 10:26 
GeneralRe: CreateWindow from DLL Pin
Joaquín M López Muñoz4-Apr-02 10:23
Joaquín M López Muñoz4-Apr-02 10:23 
GeneralRe: CreateWindow from DLL Pin
Jeremy Falcon4-Apr-02 10:23
professionalJeremy Falcon4-Apr-02 10:23 
GeneralRe: CreateWindow from DLL Pin
Tim Smith4-Apr-02 11:53
Tim Smith4-Apr-02 11:53 
GeneralCImageList + BitBlt Pin
4-Apr-02 8:15
suss4-Apr-02 8:15 
GeneralRe: CImageList + BitBlt Pin
Shog94-Apr-02 9:15
sitebuilderShog94-Apr-02 9:15 
At the time you are trying to add the bitmap to the image list, it is still selected into your memory device context. You should restore the previous bitmap before continuing:
dc.CreateCompatibleDC(pDC);
cBmp.CreateCompatibleBitmap(pDC, 16*8, 16);
CBitmap* pBmpOld = dc.SelectObject(&cBmp);
m_Skin.BitBlt(&dc, 0, 0, 16*8, 16, 195, 250);
dc.SelectObject(pBmpOld);

Note also that you want to pass a pointer to the bitmap into dc.SelectObject() (as i've shown).

Sometimes i only remember, The days when i was young
Nowadays no one remembers when they were young and stupid...

ADEMA, The Way You Like It


GeneralRe: CImageList + BitBlt Pin
4-Apr-02 9:39
suss4-Apr-02 9:39 
GeneralCPrintDialog Pin
Rick Crone4-Apr-02 8:14
Rick Crone4-Apr-02 8:14 
GeneralRe: CPrintDialog Pin
Shog94-Apr-02 9:42
sitebuilderShog94-Apr-02 9:42 
GeneralRe: CPrintDialog Pin
Rick Crone4-Apr-02 11:28
Rick Crone4-Apr-02 11:28 
GeneralRe: CPrintDialog Pin
Shog94-Apr-02 12:26
sitebuilderShog94-Apr-02 12:26 
GeneralRe: CPrintDialog Pin
Rick Crone9-Apr-02 4:13
Rick Crone9-Apr-02 4:13 
GeneralRe: CPrintDialog Pin
Shog99-Apr-02 5:18
sitebuilderShog99-Apr-02 5:18 
GeneralRe: CPrintDialog Pin
Rick Crone9-Apr-02 6:21
Rick Crone9-Apr-02 6:21 
GeneralRe: CPrintDialog Pin
Shog99-Apr-02 7:27
sitebuilderShog99-Apr-02 7:27 
GeneralRe: CPrintDialog Pin
Rick Crone9-Apr-02 7:43
Rick Crone9-Apr-02 7:43 
Generalpointer to a function Pin
moredip4-Apr-02 8:07
moredip4-Apr-02 8:07 
GeneralRe: pointer to a function Pin
Tim Smith4-Apr-02 8:08
Tim Smith4-Apr-02 8:08 
GeneralRe: pointer to a function Pin
moredip4-Apr-02 8:24
moredip4-Apr-02 8:24 
GeneralRe: pointer to a member function Pin
Paul M Watt4-Apr-02 8:22
mentorPaul M Watt4-Apr-02 8:22 
GeneralRe: pointer to a function Pin
moredip4-Apr-02 8:31
moredip4-Apr-02 8:31 
GeneralXor function Pin
Mazdak4-Apr-02 5:56
Mazdak4-Apr-02 5:56 
GeneralRe: Xor function Pin
Tomasz Sowinski4-Apr-02 6:01
Tomasz Sowinski4-Apr-02 6:01 

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.