Click here to Skip to main content
15,888,113 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Transparent lines in C Pin
KingsGambit17-Nov-09 4:39
KingsGambit17-Nov-09 4:39 
Questionget the window's rect Pin
itay1017-Nov-09 2:46
itay1017-Nov-09 2:46 
AnswerRe: get the window's rect Pin
Richard MacCutchan17-Nov-09 3:10
mveRichard MacCutchan17-Nov-09 3:10 
GeneralRe: get the window's rect Pin
itay1017-Nov-09 5:23
itay1017-Nov-09 5:23 
AnswerRe: get the window's rect [modified] Pin
Code-o-mat17-Nov-09 3:11
Code-o-mat17-Nov-09 3:11 
GeneralRe: get the window's rect Pin
Richard MacCutchan17-Nov-09 6:22
mveRichard MacCutchan17-Nov-09 6:22 
GeneralRe: get the window's rect Pin
Code-o-mat17-Nov-09 6:34
Code-o-mat17-Nov-09 6:34 
QuestionRe: get the window's rect Pin
CPallini17-Nov-09 3:15
mveCPallini17-Nov-09 3:15 
itay10 wrote:
LPRECT lprect=NULL;

itay10 wrote:
if(GetWindowRect(hwnd,lprect))

You cannot do this.
The pointer must hold the address of a valid struct.

change to:
RECT rect;
//..
if(GetWindowRect(hwnd ,&rect))
//..


BTW: why aren't you calling GetLastError?
Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

AnswerRe: get the window's rect Pin
itay1017-Nov-09 5:21
itay1017-Nov-09 5:21 
QuestionRe: get the window's rect Pin
David Crow17-Nov-09 5:55
David Crow17-Nov-09 5:55 
AnswerRe: get the window's rect Pin
itay1017-Nov-09 7:06
itay1017-Nov-09 7:06 
GeneralRe: get the window's rect Pin
David Crow17-Nov-09 7:08
David Crow17-Nov-09 7:08 
GeneralRe: get the window's rect Pin
CPallini17-Nov-09 6:03
mveCPallini17-Nov-09 6:03 
AnswerRe: get the window's rect Pin
Richard MacCutchan17-Nov-09 5:39
mveRichard MacCutchan17-Nov-09 5:39 
JokeRe: get the window's rect Pin
CPallini17-Nov-09 5:47
mveCPallini17-Nov-09 5:47 
QuestionExamples of SaveAs in winapi / c++ Pin
Nicola Curran17-Nov-09 2:07
Nicola Curran17-Nov-09 2:07 
QuestionRe: Examples of SaveAs in winapi / c++ Pin
CPallini17-Nov-09 2:21
mveCPallini17-Nov-09 2:21 
AnswerRe: Examples of SaveAs in winapi / c++ Pin
Nicola Curran17-Nov-09 2:38
Nicola Curran17-Nov-09 2:38 
AnswerRe: Examples of SaveAs in winapi / c++ Pin
CPallini17-Nov-09 2:46
mveCPallini17-Nov-09 2:46 
GeneralRe: Examples of SaveAs in winapi / c++ Pin
Nicola Curran17-Nov-09 3:10
Nicola Curran17-Nov-09 3:10 
GeneralRe: Examples of SaveAs in winapi / c++ Pin
Nicola Curran17-Nov-09 3:13
Nicola Curran17-Nov-09 3:13 
GeneralRe: Examples of SaveAs in winapi / c++ Pin
Nicola Curran17-Nov-09 3:13
Nicola Curran17-Nov-09 3:13 
QuestionDont send error message occured only once Pin
thippipriya17-Nov-09 2:02
thippipriya17-Nov-09 2:02 
QuestionRe: Dont send error message occured only once Pin
David Crow17-Nov-09 3:37
David Crow17-Nov-09 3:37 
AnswerRe: Dont send error message occured only once [modified] Pin
thippipriya17-Nov-09 16:25
thippipriya17-Nov-09 16:25 

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.