Click here to Skip to main content
15,899,679 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Overwrite message box while using SHFileOperation to copy a file Pin
Nibu babu thomas24-May-06 20:14
Nibu babu thomas24-May-06 20:14 
QuestionBase64String Pin
satsumatable24-May-06 19:24
satsumatable24-May-06 19:24 
Questionhow to get the return value when we select a checkbox Pin
keerthikaaa24-May-06 19:21
keerthikaaa24-May-06 19:21 
AnswerRe: how to get the return value when we select a checkbox Pin
_anil_24-May-06 19:40
_anil_24-May-06 19:40 
AnswerRe: how to get the return value when we select a checkbox Pin
NiceNaidu24-May-06 19:57
NiceNaidu24-May-06 19:57 
QuestionSafeArray Pin
satsumatable24-May-06 17:51
satsumatable24-May-06 17:51 
QuestionMpeg Decoder Pin
jayashri200624-May-06 16:26
jayashri200624-May-06 16:26 
QuestionGetWindowText [modified] Pin
Sam 200624-May-06 15:13
Sam 200624-May-06 15:13 
hi,

i've got a problem with getwindowtext. i've spent at least an hour trying to figure out why this won't work. (sad, huh?) i have this code:
BOOL CALLBACK EnumWindowsProc(HWND hwnd, LPARAM lParam)
{
    LPSTR title = "";
	CString thetitle = "";

	GetWindowText(hwnd, title, 100);
	thetitle = (CString) title;
AfxMessageBox(thetitle); //just to see its value
    if(thetitle == "...") {
       ...
	}

    return TRUE;
}

onSomeButtonClick...() {
	if(!EnumWindows((WNDENUMPROC) EnumWindowsProc, 0)) {
		...
	}
}
for some reason, thetitle is always blank. can someone tell me why this is happening? any tips for fixing this would help.

thanks.

-- modified at 21:14 Wednesday 24th May, 2006
AnswerRe: GetWindowText [modified] Pin
_anil_24-May-06 15:48
_anil_24-May-06 15:48 
GeneralRe: GetWindowText [modified] Pin
Sam 200624-May-06 16:09
Sam 200624-May-06 16:09 
GeneralRe: GetWindowText [modified] Pin
_anil_24-May-06 16:26
_anil_24-May-06 16:26 
GeneralRe: GetWindowText [modified] Pin
Sam 200624-May-06 17:29
Sam 200624-May-06 17:29 
GeneralRe: GetWindowText [modified] Pin
Nibu babu thomas24-May-06 17:58
Nibu babu thomas24-May-06 17:58 
GeneralRe: GetWindowText [modified] Pin
Sam 200625-May-06 9:12
Sam 200625-May-06 9:12 
QuestionDefinitive singleton implementation Pin
Louis Clayton24-May-06 12:17
Louis Clayton24-May-06 12:17 
AnswerRe: Definitive singleton implementation Pin
Ryan Binns24-May-06 14:02
Ryan Binns24-May-06 14:02 
QuestionUI Thread to control CAsyncSocket [modified] Pin
SPowers24-May-06 8:56
SPowers24-May-06 8:56 
AnswerRe: UI Thread to control CAsyncSocket [modified] Pin
David Crow24-May-06 10:30
David Crow24-May-06 10:30 
GeneralRe: UI Thread to control CAsyncSocket [modified] Pin
SPowers24-May-06 10:35
SPowers24-May-06 10:35 
GeneralRe: UI Thread to control CAsyncSocket [modified] Pin
David Crow24-May-06 10:52
David Crow24-May-06 10:52 
GeneralRe: UI Thread to control CAsyncSocket [modified] Pin
SPowers24-May-06 10:56
SPowers24-May-06 10:56 
GeneralRe: UI Thread to control CAsyncSocket [modified] Pin
David Crow24-May-06 10:58
David Crow24-May-06 10:58 
GeneralRe: UI Thread to control CAsyncSocket [modified] Pin
SPowers24-May-06 11:11
SPowers24-May-06 11:11 
GeneralRe: UI Thread to control CAsyncSocket [modified] Pin
SPowers24-May-06 11:17
SPowers24-May-06 11:17 
GeneralRe: UI Thread to control CAsyncSocket [modified] Pin
Ryan Binns24-May-06 14:03
Ryan Binns24-May-06 14: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.