Click here to Skip to main content
15,885,625 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
AnswerRe: Edit Bitmap File Pin
KingsGambit2-Aug-10 22:47
KingsGambit2-Aug-10 22:47 
QuestionRectangle Pin
john56322-Aug-10 21:45
john56322-Aug-10 21:45 
AnswerRe: Rectangle Pin
Richard MacCutchan2-Aug-10 21:58
mveRichard MacCutchan2-Aug-10 21:58 
AnswerRe: Rectangle Pin
«_Superman_»2-Aug-10 22:35
professional«_Superman_»2-Aug-10 22:35 
JokeRe: Rectangle Pin
Maximilien3-Aug-10 3:03
Maximilien3-Aug-10 3:03 
GeneralRe: Rectangle Pin
bleedingfingers3-Aug-10 9:26
bleedingfingers3-Aug-10 9:26 
AnswerRe: Rectangle Pin
bleedingfingers3-Aug-10 9:30
bleedingfingers3-Aug-10 9:30 
QuestionItem Selection not change at first time in CListCtrl. Pin
Le@rner2-Aug-10 21:09
Le@rner2-Aug-10 21:09 
QuestionHow to set Version Information to my Console Application EXE developed using VC6.0 Pin
manoharbalu2-Aug-10 19:27
manoharbalu2-Aug-10 19:27 
AnswerRe: How to set Version Information to my Console Application EXE developed using VC6.0 Pin
Cool_Dev2-Aug-10 20:00
Cool_Dev2-Aug-10 20:00 
AnswerRe: How to set Version Information to my Console Application EXE developed using VC6.0 Pin
«_Superman_»2-Aug-10 20:11
professional«_Superman_»2-Aug-10 20:11 
QuestionHow to Remove TitleIcon for CDialog if border is Resized VC++ Pin
janaswamy uday2-Aug-10 19:15
janaswamy uday2-Aug-10 19:15 
AnswerRe: How to Remove TitleIcon for CDialog if border is Resized VC++ Pin
Cool_Dev2-Aug-10 19:45
Cool_Dev2-Aug-10 19:45 
GeneralRe: How to Remove TitleIcon for CDialog if border is Resized VC++ Pin
janaswamy uday2-Aug-10 19:56
janaswamy uday2-Aug-10 19:56 
GeneralRe: How to Remove TitleIcon for CDialog if border is Resized VC++ Pin
Cool_Dev2-Aug-10 20:14
Cool_Dev2-Aug-10 20:14 
AnswerRe: How to Remove TitleIcon for CDialog if border is Resized VC++ Pin
KingsGambit2-Aug-10 20:35
KingsGambit2-Aug-10 20:35 

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.