Click here to Skip to main content
15,898,708 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionWhich is the latest version of VC++ ??? Pin
Neo Andreson3-Sep-07 21:28
Neo Andreson3-Sep-07 21:28 
AnswerRe: Which is the latest version of VC++ ??? Pin
Maxwell Chen3-Sep-07 21:57
Maxwell Chen3-Sep-07 21:57 
AnswerRe: Which is the latest version of VC++ ??? Pin
Naveen3-Sep-07 21:58
Naveen3-Sep-07 21:58 
GeneralRe: Which is the latest version of VC++ ??? Pin
Neo Andreson3-Sep-07 22:54
Neo Andreson3-Sep-07 22:54 
QuestionShrink graphics area (GDI+ Graphics) Pin
TheShihan3-Sep-07 21:25
TheShihan3-Sep-07 21:25 
AnswerRe: Shrink graphics area (GDI+ Graphics) Pin
Llasus3-Sep-07 21:31
Llasus3-Sep-07 21:31 
AnswerRe: Shrink graphics area (GDI+ Graphics) Pin
Naveen3-Sep-07 21:54
Naveen3-Sep-07 21:54 
GeneralRe: Shrink graphics area (GDI+ Graphics) Pin
TheShihan3-Sep-07 22:38
TheShihan3-Sep-07 22:38 
Hi, thanks for your answer.

I tried following (a Method that gives me back a Graphics object with whom I can work with for drawing the images into):

Graphics CmyDialog::GetGraphicsObj()
{

	CClientDC dc(&m_pictureControl);
	Graphics graphicObj(dc);

	CRect rc = GetImageArea(&m_pictureControl);
	
	CPoint topLeft;
	topLeft = rc.TopLeft();
	int rcWidth = rc.Width();
	int rcHeight = rc.Height();
	
	Rect gdiRect(topLeft.x, topLeft.y, rcWidth, rcHeight);

	graphicObj.SetClip(gdiRect, CombineModeUnion);

	return graphicObj;
}


It says it has an error at the return line:
error C2248: "Gdiplus::Graphics::Graphics": Kein Zugriff auf private Member, dessen Deklaration in der Gdiplus::Graphics-Klasse erfolgte.
( no access to private memember, see declaration in the Graphics-Class)

1) Is this a good way, how I try to clip the rectangle/graphics area?
2) why does this error pop up?

Thx for ur help, Shi
GeneralRe: Shrink graphics area (GDI+ Graphics) Pin
Naveen3-Sep-07 22:54
Naveen3-Sep-07 22:54 
GeneralRe: Shrink graphics area (GDI+ Graphics) Pin
TheShihan3-Sep-07 23:45
TheShihan3-Sep-07 23:45 
GeneralRe: Shrink graphics area (GDI+ Graphics) Pin
Naveen3-Sep-07 23:51
Naveen3-Sep-07 23:51 
Questionprinting problem on A4 size paper??? Pin
Neo Andreson3-Sep-07 21:25
Neo Andreson3-Sep-07 21:25 
AnswerRe: printing problem on A4 size paper??? Pin
Llasus3-Sep-07 21:33
Llasus3-Sep-07 21:33 
AnswerRe: printing problem on A4 size paper??? Pin
Nishad S3-Sep-07 22:08
Nishad S3-Sep-07 22:08 
AnswerRe: printing problem on A4 size paper??? Pin
Anurag Gandhi3-Sep-07 22:44
professionalAnurag Gandhi3-Sep-07 22:44 
QuestionCompression Pin
shakumar_223-Sep-07 20:46
shakumar_223-Sep-07 20:46 
AnswerRe: Compression Pin
Llasus3-Sep-07 20:55
Llasus3-Sep-07 20:55 
GeneralRe: Compression Pin
shakumar_223-Sep-07 21:04
shakumar_223-Sep-07 21:04 
GeneralRe: Compression Pin
Paresh Chitte3-Sep-07 21:49
Paresh Chitte3-Sep-07 21:49 
AnswerRe: Compression Pin
Paresh Chitte3-Sep-07 21:00
Paresh Chitte3-Sep-07 21:00 
AnswerRe: Compression Pin
Maxwell Chen3-Sep-07 22:02
Maxwell Chen3-Sep-07 22:02 
AnswerRe: Compression Pin
jhwurmbach3-Sep-07 22:14
jhwurmbach3-Sep-07 22:14 
AnswerRe: Compression Pin
El Corazon4-Sep-07 16:11
El Corazon4-Sep-07 16:11 
QuestionHow to Put Icon on Button. Pin
GauranG Shah3-Sep-07 20:11
GauranG Shah3-Sep-07 20:11 
AnswerRe: How to Put Icon on Button. Pin
Stephen Hewitt3-Sep-07 21:03
Stephen Hewitt3-Sep-07 21:03 

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.