Click here to Skip to main content
15,915,508 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Regular Expression in C++. How to? Pin
Stuart Dootson9-Jun-02 15:33
professionalStuart Dootson9-Jun-02 15:33 
Generalactiveskin4.1 Pin
sai5-Jun-02 19:43
sai5-Jun-02 19:43 
GeneralRendering a bitmap on a CView Pin
Nish Nishant5-Jun-02 19:35
sitebuilderNish Nishant5-Jun-02 19:35 
GeneralRe: Rendering a bitmap on a CView Pin
Michael Dunn5-Jun-02 19:41
sitebuilderMichael Dunn5-Jun-02 19:41 
GeneralRe: Rendering a bitmap on a CView Pin
Nish Nishant5-Jun-02 19:54
sitebuilderNish Nishant5-Jun-02 19:54 
GeneralRe: Rendering a bitmap on a CView [is this the right way?] Pin
Nish Nishant5-Jun-02 19:47
sitebuilderNish Nishant5-Jun-02 19:47 
GeneralRe: Rendering a bitmap on a CView [is this the right way?] Pin
Tomasz Sowinski6-Jun-02 0:38
Tomasz Sowinski6-Jun-02 0:38 
GeneralRe: Rendering a bitmap on a CView [is this the right way?] Pin
Nish Nishant6-Jun-02 0:56
sitebuilderNish Nishant6-Jun-02 0:56 
Hello Tomasz, I realized that. So I did this :-
CDC mdc;
mdc.CreateCompatibleDC(pDC);
CBitmap b;
b.LoadBitmap(IDB_BITMAP1);
BITMAP bmap;
b.GetBitmap(&bmap);
CSize s = CSize(bmap.bmWidth,bmap.bmHeight);
mdc.SelectObject(&b);
pDC->BitBlt(0,0,s.cx,s.cy,&mdc,0,0,SRCCOPY );
b.DeleteObject();

I have added b.DeleteObject() and I hope that'll avoid the situation you predict

Nish



Author of the romantic comedy

Summer Love and Some more Cricket [New Win]

Buy it, read it and admire me Smile | :)

GeneralRe: Rendering a bitmap on a CView [is this the right way?] Pin
Tomasz Sowinski6-Jun-02 0:59
Tomasz Sowinski6-Jun-02 0:59 
GeneralRe: Rendering a bitmap on a CView [is this the right way?] Pin
Nish Nishant6-Jun-02 1:09
sitebuilderNish Nishant6-Jun-02 1:09 
GeneralRe: Rendering a bitmap on a CView [is this the right way?] Pin
Tomasz Sowinski6-Jun-02 1:13
Tomasz Sowinski6-Jun-02 1:13 
GeneralRe: Rendering a bitmap on a CView [is this the right way?] Pin
Nish Nishant6-Jun-02 1:29
sitebuilderNish Nishant6-Jun-02 1:29 
GeneralRe: Rendering a bitmap on a CView [is this the right way?] Pin
Tomasz Sowinski6-Jun-02 1:32
Tomasz Sowinski6-Jun-02 1:32 
GeneralRe: Rendering a bitmap on a CView [is this the right way?] Pin
Nish Nishant6-Jun-02 1:47
sitebuilderNish Nishant6-Jun-02 1:47 
GeneralRe: Rendering a bitmap on a CView [is this the right way?] Pin
Thomas Freudenberg6-Jun-02 0:32
Thomas Freudenberg6-Jun-02 0:32 
GeneralRe: Rendering a bitmap on a CView [is this the right way?] Pin
PJ Arends6-Jun-02 6:08
professionalPJ Arends6-Jun-02 6:08 
GeneralRe: Rendering a bitmap on a CView [is this the right way?] Pin
Nish Nishant6-Jun-02 0:59
sitebuilderNish Nishant6-Jun-02 0:59 
GeneralRe: Rendering a bitmap on a CView [is this the right way?] Pin
Nish Nishant6-Jun-02 14:16
sitebuilderNish Nishant6-Jun-02 14:16 
GeneralRe: Rendering a bitmap on a CView [is this the right way?] Pin
Thomas Freudenberg6-Jun-02 1:04
Thomas Freudenberg6-Jun-02 1:04 
GeneralRe: Rendering a bitmap on a CView [is this the right way?] Pin
Nish Nishant6-Jun-02 1:06
sitebuilderNish Nishant6-Jun-02 1:06 
GeneralRe: Rendering a bitmap on a CView [is this the right way?] Pin
lucy6-Jun-02 8:37
lucy6-Jun-02 8:37 
GeneralCDocument::DoSave -> undocumented Pin
Nish Nishant5-Jun-02 19:14
sitebuilderNish Nishant5-Jun-02 19:14 
GeneralRe: CDocument::DoSave -> undocumented Pin
Tomasz Sowinski6-Jun-02 0:30
Tomasz Sowinski6-Jun-02 0:30 
GeneralRe: CDocument::DoSave -> undocumented Pin
Nish Nishant6-Jun-02 1:04
sitebuilderNish Nishant6-Jun-02 1:04 
Generalrefresh problem.. Pin
Neha5-Jun-02 18:32
Neha5-Jun-02 18:32 

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.