Click here to Skip to main content
16,010,544 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralVisual C++ debugging options Pin
Ivor S10-Jan-03 9:30
Ivor S10-Jan-03 9:30 
GeneralRe: Visual C++ debugging options Pin
AlexO10-Jan-03 11:38
AlexO10-Jan-03 11:38 
GeneralRe: Visual C++ debugging options Pin
Ivor S10-Jan-03 13:17
Ivor S10-Jan-03 13:17 
GeneralNeed an example Pin
BORICUA10-Jan-03 9:28
BORICUA10-Jan-03 9:28 
GeneralWarnings in VS.NET Pin
Navin10-Jan-03 9:05
Navin10-Jan-03 9:05 
GeneralRe: Warnings in VS.NET Pin
AlexO10-Jan-03 11:01
AlexO10-Jan-03 11:01 
GeneralRe: Warnings in VS.NET Pin
Navin10-Jan-03 14:53
Navin10-Jan-03 14:53 
Generalcompile error Pin
ns10-Jan-03 9:01
ns10-Jan-03 9:01 
I did:

RECT rect;

GetClientRect(this,&rect);

and got

C:\ATRAIN2\VcDemoResizerTHB\DialogDemo1.cpp(59) : error C2660: 'GetClientRect' : function does not take 2 parameters


though I found:

The GetClientRect function retrieves the coordinates of a window's client area. The client coordinates specify the upper-left and lower-right corners of the client area. Because client coordinates are relative to the upper-left corner of a window's client area, the coordinates of the upper-left corner are (0,0). 

Syntax

BOOL GetClientRect(          HWND hWnd,
    LPRECT lpRect
);


Appreciate your help,
ns
GeneralRe: compile error Pin
Tim Smith10-Jan-03 9:08
Tim Smith10-Jan-03 9:08 
GeneralThanks! Pin
ns10-Jan-03 9:12
ns10-Jan-03 9:12 
GeneralRe: compile error Pin
Carlos Antollini10-Jan-03 9:09
Carlos Antollini10-Jan-03 9:09 
GeneralRe: compile error Pin
ns10-Jan-03 9:15
ns10-Jan-03 9:15 
GeneralRe: compile error Pin
AlexO10-Jan-03 11:40
AlexO10-Jan-03 11:40 
GeneralRe: compile error Pin
Carlos Antollini10-Jan-03 15:45
Carlos Antollini10-Jan-03 15:45 
Questionhow to get size of dialog? Pin
ns10-Jan-03 8:51
ns10-Jan-03 8:51 
AnswerRe: how to get size of dialog? Pin
Carlos Antollini10-Jan-03 9:03
Carlos Antollini10-Jan-03 9:03 
AnswerRe: how to get size of dialog? Pin
Maximilien10-Jan-03 9:06
Maximilien10-Jan-03 9:06 
GeneralRe: how to get size of dialog? Pin
ns10-Jan-03 9:08
ns10-Jan-03 9:08 
AnswerRe: how to get size of dialog? Pin
Tim Smith10-Jan-03 9:04
Tim Smith10-Jan-03 9:04 
Generallex/yacc Pin
Jamie Hale10-Jan-03 8:48
Jamie Hale10-Jan-03 8:48 
GeneralRe: lex/yacc Pin
Jamie Hale10-Jan-03 8:53
Jamie Hale10-Jan-03 8:53 
GeneralRe: lex/yacc Pin
Mike Nordell11-Jan-03 1:14
Mike Nordell11-Jan-03 1:14 
GeneralRe: lex/yacc Pin
Jamie Hale14-Jan-03 4:47
Jamie Hale14-Jan-03 4:47 
GeneralRe: lex/yacc Pin
Mike Nordell16-Jan-03 8:53
Mike Nordell16-Jan-03 8:53 
GeneralRe: lex/yacc Pin
Jamie Hale16-Jan-03 9:45
Jamie Hale16-Jan-03 9: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.