Click here to Skip to main content
15,914,160 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Which message window receives after all when it open? Pin
vgrigor1-Apr-04 19:33
vgrigor1-Apr-04 19:33 
AnswerRe: Which message window receives after all when it open? Pin
gUrM33T1-Apr-04 16:44
gUrM33T1-Apr-04 16:44 
GeneralDatabases and threads Pin
islheg1-Apr-04 3:09
islheg1-Apr-04 3:09 
GeneralRe: Databases and threads Pin
Prakash Nadar1-Apr-04 4:45
Prakash Nadar1-Apr-04 4:45 
GeneralEntering new lines in edit box Pin
satcat1-Apr-04 3:02
satcat1-Apr-04 3:02 
GeneralRe: Entering new lines in edit box Pin
David Crow1-Apr-04 3:24
David Crow1-Apr-04 3:24 
GeneralRe: Entering new lines in edit box Pin
basementman1-Apr-04 5:02
basementman1-Apr-04 5:02 
GeneralMemory Device context+Createcompatible Bitmap related query Pin
JHAKAS1-Apr-04 1:59
JHAKAS1-Apr-04 1:59 
In a function i am doing following things

Function starts
	<br />
	// m_Analyser is object of class CAnalyser and having a member <br />
        // CBitmap i.e. CBitmap  m_WFRBitmap;<br />
	// GetWFRBitmap() returns that Bitmap i.e.<br />
        // CBitmap *GetWFRBitmap() { return &m_WFRBitmap; }<br />
	CBitmap *pWFRBitmap = pDoc->m_Analyzer.GetWFRBitmap();<br />
	pWFRBitmap->CreateCompatibleBitmap(&ClientDC, 860, 1100);<br />
	ClientDC.SetMapMode(MM_LOENGLISH);<br />
<br />
	CDC MemDC;<br />
	MemDC.CreateCompatibleDC(&ClientDC);<br />
	MemDC.SelectObject(pWFRBitmap);<br />
	MemDC.SetMapMode(MM_TEXT);<br />
	//**********<br />
	//	Draw to the Memory device context<br />
	//*************<br />
	MemDC.SetMapMode(MM_LOENGLISH);<br />

Function ENds

1.0 What exactly will happen. To the bitmap in CAnalyser and MemDC. Will the content of MemDC will be written to CBitmap which is attached to MemDC.


2.0 What will happen if every thing remains same and i make CDC MemDC global?

3.0 I want to make another function in CAnalyser like SetBitmap and want to assign the content of the CDC MemDC (global) to assigned to that CBitmap member of CAnalyser m_WFRBitmap so that i can draw the bitmap again whenever my screen get redrawn instead of carrying out complete drawing process again and again.
How to do this?


Rose | [Rose]


Leave your mark wherever you go
GeneralRe: Memory Device context+Createcompatible Bitmap related query Pin
John R. Shaw1-Apr-04 9:36
John R. Shaw1-Apr-04 9:36 
QuestionHow to detect that background under child window is changed? Pin
vgrigor1-Apr-04 0:48
vgrigor1-Apr-04 0:48 
QuestionHow to obtain interface ip from destination ip ? Pin
VF1-Apr-04 0:04
VF1-Apr-04 0:04 
AnswerRe: How to obtain interface ip from destination ip ? Pin
Antony M Kancidrowski1-Apr-04 1:17
Antony M Kancidrowski1-Apr-04 1:17 
AnswerRe: How to obtain interface ip from destination ip ? Pin
Mike Dimmick1-Apr-04 1:49
Mike Dimmick1-Apr-04 1:49 
Generalset cursor of SDI Pin
MeWithNoName1-Apr-04 0:04
MeWithNoName1-Apr-04 0:04 
GeneralRe: set cursor of SDI Pin
Milton Karimbekallil1-Apr-04 0:39
Milton Karimbekallil1-Apr-04 0:39 
Generalvector math on different pc processors (amd, intel) Pin
Mediate31-Mar-04 23:33
Mediate31-Mar-04 23:33 
GeneralRe: vector math on different pc processors (amd, intel) Pin
Antony M Kancidrowski1-Apr-04 1:31
Antony M Kancidrowski1-Apr-04 1:31 
GeneralRe: vector math on different pc processors (amd, intel) Pin
Alexander M.,1-Apr-04 3:37
Alexander M.,1-Apr-04 3:37 
GeneralRe: vector math on different pc processors (amd, intel) Pin
Mediate1-Apr-04 23:18
Mediate1-Apr-04 23:18 
Generalsubst programatically Pin
bruno leclerc31-Mar-04 22:30
bruno leclerc31-Mar-04 22:30 
GeneralRe: subst programatically Pin
David Crow1-Apr-04 3:27
David Crow1-Apr-04 3:27 
GeneralRe: subst programatically Pin
bruno leclerc1-Apr-04 21:08
bruno leclerc1-Apr-04 21:08 
Generalinternet explorer address bar Pin
Anonymous31-Mar-04 20:47
Anonymous31-Mar-04 20:47 
GeneralRe: internet explorer address bar Pin
22491731-Mar-04 23:12
22491731-Mar-04 23:12 
GeneralRe: internet explorer address bar Pin
Anonymous1-Apr-04 20:27
Anonymous1-Apr-04 20:27 

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.