Click here to Skip to main content
15,922,015 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Tooltips can't be shown Pin
gaspher3-Aug-10 3:37
gaspher3-Aug-10 3:37 
GeneralRe: Tooltips can't be shown Pin
David Crow3-Aug-10 3:43
David Crow3-Aug-10 3:43 
QuestionHandling Abort for Long running operations in MFC Pin
MuraliKrishnaP3-Aug-10 0:54
MuraliKrishnaP3-Aug-10 0:54 
AnswerRe: Handling Abort for Long running operations in MFC Pin
Aescleal3-Aug-10 1:10
Aescleal3-Aug-10 1:10 
GeneralRe: Handling Abort for Long running operations in MFC Pin
MuraliKrishnaP3-Aug-10 2:32
MuraliKrishnaP3-Aug-10 2:32 
GeneralRe: Handling Abort for Long running operations in MFC Pin
MuraliKrishnaP3-Aug-10 2:43
MuraliKrishnaP3-Aug-10 2:43 
GeneralRe: Handling Abort for Long running operations in MFC Pin
Aescleal3-Aug-10 5:31
Aescleal3-Aug-10 5:31 
GeneralRe: Handling Abort for Long running operations in MFC Pin
MuraliKrishnaP6-Aug-10 10:03
MuraliKrishnaP6-Aug-10 10:03 
AnswerRe: Handling Abort for Long running operations in MFC Pin
«_Superman_»3-Aug-10 15:57
professional«_Superman_»3-Aug-10 15:57 
Questionproblem using ShellExecute to open folder Pin
Rahul Vaishnav2-Aug-10 23:51
Rahul Vaishnav2-Aug-10 23:51 
AnswerRe: problem using ShellExecute to open folder Pin
enhzflep3-Aug-10 0:10
enhzflep3-Aug-10 0:10 
GeneralRe: problem using ShellExecute to open folder Pin
Rahul Vaishnav3-Aug-10 0:14
Rahul Vaishnav3-Aug-10 0:14 
AnswerRe: problem using ShellExecute to open folder Pin
Shivanand Gupta5-Aug-10 1:09
Shivanand Gupta5-Aug-10 1:09 
QuestionThis application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. Pin
reza toorani2-Aug-10 22:52
reza toorani2-Aug-10 22:52 
AnswerRe: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. Pin
Cedric Moonen2-Aug-10 22:54
Cedric Moonen2-Aug-10 22:54 
GeneralRe: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. Pin
reza toorani2-Aug-10 23:48
reza toorani2-Aug-10 23:48 
AnswerRe: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. Pin
KarstenK3-Aug-10 0:09
mveKarstenK3-Aug-10 0:09 
GeneralRe: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. Pin
reza toorani3-Aug-10 0:28
reza toorani3-Aug-10 0:28 
GeneralRe: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. Pin
KarstenK3-Aug-10 0:36
mveKarstenK3-Aug-10 0:36 
GeneralRe: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. Pin
reza toorani3-Aug-10 1:08
reza toorani3-Aug-10 1:08 
GeneralRe: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. Pin
KarstenK3-Aug-10 1:15
mveKarstenK3-Aug-10 1:15 
GeneralRe: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. Pin
reza toorani3-Aug-10 1:18
reza toorani3-Aug-10 1:18 
GeneralRe: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. Pin
Sauro Viti3-Aug-10 3:55
professionalSauro Viti3-Aug-10 3:55 
QuestionEdit Bitmap File Pin
raju_shiva2-Aug-10 22:29
raju_shiva2-Aug-10 22:29 
Hi sir,
I am trying to write a text into Bitmap,i am able to write.
But i am not able to fill the colur into the region where i am writing.

i.e the colour of bitmap and the text which i am writing is not matching.

Here is my code:
OnPaint()	
{	
	CPaintDC dc(this);
	CDC dcImage;
	CRgn* rgn;
	BITMAP bm;
	if (!dcImage.CreateCompatibleDC(&dc))
		return;
	
	m_bitmap.GetBitmap(&bm);
	CBitmap* pOldBitmap = dcImage.SelectObject(&m_bitmap);


    	CBrush mybrush(RGB(255,0,0));
	dcImage.TextOut(521,95,"Testing");  // Here i am writing to Bitmap
	rgn=new CRgn;	
	rgn->CreateFromPath(&dcImage);
	dcImage.FillRgn(rgn,&mybrush);      // Here i am trying to fill the colur to the region where i am writing
	dc.BitBlt(0, 0, bm.bmWidth, bm.bmHeight, &dcImage, 0, 0, SRCCOPY);	
	dcImage.SelectObject(pOldBitmap);
}


Any idea will be helpful

Thanks
Raj
AnswerRe: Edit Bitmap File Pin
CPallini2-Aug-10 22:45
mveCPallini2-Aug-10 22:45 

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.