Click here to Skip to main content
15,887,083 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionFile Read / Write etc Pin
egerving15-Jun-09 13:18
egerving15-Jun-09 13:18 
AnswerRe: File Read / Write etc Pin
Green Fuze15-Jun-09 21:34
Green Fuze15-Jun-09 21:34 
QuestionDifference between OLE and COM ??? Pin
Green Fuze15-Jun-09 12:50
Green Fuze15-Jun-09 12:50 
AnswerRe: Difference between OLE and COM ??? Pin
Stuart Dootson15-Jun-09 14:57
professionalStuart Dootson15-Jun-09 14:57 
GeneralRe: Difference between OLE and COM ??? Pin
Green Fuze15-Jun-09 21:23
Green Fuze15-Jun-09 21:23 
GeneralRe: Difference between OLE and COM ??? Pin
Stuart Dootson15-Jun-09 22:02
professionalStuart Dootson15-Jun-09 22:02 
GeneralRe: Difference between OLE and COM ??? Pin
Green Fuze15-Jun-09 23:29
Green Fuze15-Jun-09 23:29 
Questionhow do i find who has focus? Pin
xchen199815-Jun-09 12:46
xchen199815-Jun-09 12:46 
I created 2 edit boxes using CreateWindow..
In callback function, how can i know which edit box gets/loses focus/caret when clicking in one of the boxes?
Somehow, GetFocus() returns screen handle instead of edit box.

public delegate IntPtr WndProcCallback(IntPtr hWnd, uint Msg, IntPtr wParam, IntPtr lParam);
public IntPtr WndProc(IntPtr hWnd, uint uMsg, IntPtr wParam, IntPtr lParam)
{
switch (uMsg)
{
case WM_SETFOCUS:
//??? who gets focus
break;
case WM_KILLFOCUS:
///??? who loses focus
break;
default:
return CallWindowProc(lpWndProc, hWnd, uMsg, wParam, lParam);
}
return IntPtr.Zero;
}
AnswerRe: how do i find who has focus? Pin
Stuart Dootson15-Jun-09 14:55
professionalStuart Dootson15-Jun-09 14:55 
QuestionDesktop wallpaper/background Pin
daavena15-Jun-09 12:27
daavena15-Jun-09 12:27 
AnswerRe: Desktop wallpaper/background Pin
«_Superman_»15-Jun-09 16:37
professional«_Superman_»15-Jun-09 16:37 
GeneralRe: Desktop wallpaper/background Pin
daavena16-Jun-09 6:30
daavena16-Jun-09 6:30 
QuestionHow can I access a document member variable from a dialog window? Pin
Darryl Bryk15-Jun-09 11:05
Darryl Bryk15-Jun-09 11:05 
AnswerRe: How can I access a document member variable from a dialog window? Pin
Stuart Dootson15-Jun-09 14:53
professionalStuart Dootson15-Jun-09 14:53 
GeneralRe: How can I access a document member variable from a dialog window? Pin
Darryl Bryk17-Jun-09 13:41
Darryl Bryk17-Jun-09 13:41 
QuestionStatic function variable problem Pin
alikalik15-Jun-09 8:18
alikalik15-Jun-09 8:18 
AnswerRe: Static function variable problem Pin
David Crow15-Jun-09 10:03
David Crow15-Jun-09 10:03 
AnswerRe: Static function variable problem Pin
Chris Losinger15-Jun-09 10:04
professionalChris Losinger15-Jun-09 10:04 
GeneralRe: Static function variable problem Pin
alikalik15-Jun-09 18:43
alikalik15-Jun-09 18:43 
AnswerRe: Static function variable problem Pin
led mike15-Jun-09 10:27
led mike15-Jun-09 10:27 
AnswerRe: Static function variable problem Pin
CPallini15-Jun-09 10:41
mveCPallini15-Jun-09 10:41 
Questionreturn value of a fun() [modified] Pin
Anand966915-Jun-09 7:21
Anand966915-Jun-09 7:21 
QuestionRe: return value of a fun() Pin
David Crow15-Jun-09 7:40
David Crow15-Jun-09 7:40 
AnswerRe: return value of a fun() Pin
Anand966915-Jun-09 7:43
Anand966915-Jun-09 7:43 
GeneralRe: return value of a fun() Pin
Luc Pattyn15-Jun-09 8:41
sitebuilderLuc Pattyn15-Jun-09 8:41 

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.