Click here to Skip to main content
16,014,759 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: 3d rotation Pin
Paul M Watt3-Feb-02 15:36
mentorPaul M Watt3-Feb-02 15:36 
Generalread a txt file Pin
magpierre3-Feb-02 12:03
magpierre3-Feb-02 12:03 
GeneralRe: read a txt file Pin
alex.barylski3-Feb-02 13:35
alex.barylski3-Feb-02 13:35 
GeneralRe: read a txt file Pin
Fredrik Skog4-Feb-02 0:07
Fredrik Skog4-Feb-02 0:07 
GeneralC2447 Pin
3-Feb-02 11:59
suss3-Feb-02 11:59 
GeneralRe: C2447 Pin
Derek Waters3-Feb-02 13:41
Derek Waters3-Feb-02 13:41 
GeneralRe: C2447 Pin
alex.barylski3-Feb-02 13:54
alex.barylski3-Feb-02 13:54 
QuestionHow to get the ClientRect?? Pin
Jay Beckert3-Feb-02 10:05
Jay Beckert3-Feb-02 10:05 
Graphics graphics(dc.m_hDC);
Rect rect(20, 20, 100, 50);
Rect closingRect;
GetClientRect(closingrect); <- problem here
GraphicsPath path;
path.AddRectangle(rect);

// a region based on the path.
Region region(&path);
//clipping region
graphics.SetClip(& region);
//colour it just to see it
Pen pen(Color(255, 255, 0, 0));
graphics.DrawPath(&pen, &path);
Image image(L".\\banner.gif");
graphics.DrawImage(&image, 50, 50);



How do I figure out the size of the client rect? Using GetClientRect(closingrect) produces this error:

cannot convert parameter 1 from 'class Gdiplus::Rect *' to 'struct tagRECT *'

How to get the ClientRect using GDI+?
AnswerRe: How to get the ClientRect?? Pin
Anders Molin3-Feb-02 10:11
professionalAnders Molin3-Feb-02 10:11 
GeneralRe: How to get the ClientRect?? Pin
Jay Beckert3-Feb-02 14:16
Jay Beckert3-Feb-02 14:16 
GeneralExport Data to Access Database Pin
Adam Clauss3-Feb-02 9:22
Adam Clauss3-Feb-02 9:22 
GeneralRe: Export Data to Access Database Pin
Mazdak3-Feb-02 10:13
Mazdak3-Feb-02 10:13 
Questioncan anyone give me a hint please? Pin
3-Feb-02 9:17
suss3-Feb-02 9:17 
AnswerRe: can anyone give me a hint please? Pin
Joaquín M López Muñoz3-Feb-02 9:23
Joaquín M López Muñoz3-Feb-02 9:23 
AnswerRe: can anyone give me a hint please? Pin
Simon Walton3-Feb-02 11:16
Simon Walton3-Feb-02 11:16 
General.net SDK Pin
Nnamdi Onyeyiri3-Feb-02 8:54
Nnamdi Onyeyiri3-Feb-02 8:54 
General#pragma once Pin
3-Feb-02 8:14
suss3-Feb-02 8:14 
GeneralRe: #pragma once Pin
Joaquín M López Muñoz3-Feb-02 8:48
Joaquín M López Muñoz3-Feb-02 8:48 
GeneralRe: #pragma once Pin
Michael Dunn3-Feb-02 11:31
sitebuilderMichael Dunn3-Feb-02 11:31 
GeneralClipboard CRLF & Control Fonts Pin
NullStream3-Feb-02 8:08
NullStream3-Feb-02 8:08 
GeneralRe: Clipboard CRLF & Control Fonts Pin
Joaquín M López Muñoz3-Feb-02 8:57
Joaquín M López Muñoz3-Feb-02 8:57 
GeneralRe: Clipboard CRLF & Control Fonts Pin
NullStream3-Feb-02 9:18
NullStream3-Feb-02 9:18 
GeneralRe: Clipboard CRLF & Control Fonts Pin
Joaquín M López Muñoz3-Feb-02 9:27
Joaquín M López Muñoz3-Feb-02 9:27 
GeneralRe: Clipboard CRLF & Control Fonts Pin
NullStream3-Feb-02 9:30
NullStream3-Feb-02 9:30 
Question4*4*4*4=? Pin
3-Feb-02 8:04
suss3-Feb-02 8:04 

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.