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

C / C++ / MFC

 
GeneralRe: Transparent lines in C Pin
Code-o-mat17-Nov-09 4:34
Code-o-mat17-Nov-09 4:34 
GeneralRe: Transparent lines in C Pin
Rozis17-Nov-09 5:22
Rozis17-Nov-09 5:22 
GeneralRe: Transparent lines in C Pin
Code-o-mat17-Nov-09 5:35
Code-o-mat17-Nov-09 5:35 
GeneralRe: Transparent lines in C Pin
Rozis17-Nov-09 6:17
Rozis17-Nov-09 6:17 
GeneralRe: Transparent lines in C Pin
Tim Craig17-Nov-09 8:45
Tim Craig17-Nov-09 8:45 
GeneralRe: Transparent lines in C Pin
Rozis17-Nov-09 9:41
Rozis17-Nov-09 9:41 
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 
Hi
I'm trying to get some information about the windows that working in the background.
I'm using the GetWindowRect function and it's never show me information.
here is the relevant part of my code:

BOOL CALLBACK EnumChildProc(HWND hwnd, LPARAM lParam) {<br />
<br />
	LPRECT lprect=NULL;<br />
	cout << "hwnd_Child = " << hwnd << endl;<br />
	SetWindowText(hwnd,NULL);<br />
	if(GetWindowRect(hwnd,lprect))<br />
		cout<< lprect->bottom<< endl;<br />
	<br />
	<br />
	<br />
<br />
     return TRUE; // must return TRUE; If return is FALSE it stops the recursion<br />
}


it does change the window's text but doesn't go into the if. any idea why?

by the way how can i find the buttons inside the window?

thanks
Itay
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 
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 

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.