Click here to Skip to main content
15,921,793 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Simple Question on Button and Sound Pin
PJ Arends13-Feb-05 10:26
professionalPJ Arends13-Feb-05 10:26 
GeneralRe: Simple Question on Button and Sound Pin
normanS13-Feb-05 23:10
normanS13-Feb-05 23:10 
GeneralWM_KILLFOCUS / WM_SETFOCUS Pin
PJ Arends13-Feb-05 10:17
professionalPJ Arends13-Feb-05 10:17 
GeneralRe: WM_KILLFOCUS / WM_SETFOCUS Pin
Ryan Binns13-Feb-05 17:14
Ryan Binns13-Feb-05 17:14 
GeneralRe: WM_KILLFOCUS / WM_SETFOCUS Pin
PJ Arends14-Feb-05 9:30
professionalPJ Arends14-Feb-05 9:30 
GeneralRe: WM_KILLFOCUS / WM_SETFOCUS Pin
Ryan Binns14-Feb-05 12:15
Ryan Binns14-Feb-05 12:15 
GeneralRe: WM_KILLFOCUS / WM_SETFOCUS Pin
PJ Arends14-Feb-05 20:56
professionalPJ Arends14-Feb-05 20:56 
GeneralRe: WM_KILLFOCUS / WM_SETFOCUS Pin
Ryan Binns14-Feb-05 22:57
Ryan Binns14-Feb-05 22:57 
PJ Arends wrote:
What I am now thinking is that the CWnd passed to OnSetFocus is a CTempWnd class, so that would mean that it is just a copy of the CWnd of the CInPlaceEdit class that was destroyed. Being a copy it contains the same m_hWnd value as the original even though the original has already been destroyed and deleted.

AFAIK, That's not quite how CTempWnd works. If the window was an MFC window, and has not been deleted, then you will always get a pointer to the actual window class. If the window has been destroyed (or is not an MFC window), then you'll get a pointer to a CTempWnd. I think what's happening is that Windows is passing the HWND of the destroyed window to the WM_SETFOCUS handler, intending it purely for information, and MFC is creating a CTempWnd object to map it to, because the window has already been destroyed.

PJ Arends wrote:
Thanks for the push in the right direction so that I could figure out what was going on

Glad to be of help Smile | :) At least it's enlightened me as well Smile | :)

Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

GeneralAnimateWindow & OnPaint problem Pin
Anonymous13-Feb-05 8:49
Anonymous13-Feb-05 8:49 
Generalrun-time dll linking - getting a variable Pin
Kuniva13-Feb-05 8:18
Kuniva13-Feb-05 8:18 
GeneralRe: run-time dll linking - getting a variable Pin
Neville Franks13-Feb-05 9:43
Neville Franks13-Feb-05 9:43 
GeneralRe: run-time dll linking - getting a variable Pin
Kuniva13-Feb-05 12:40
Kuniva13-Feb-05 12:40 
GeneralUDP sockets -> select() not working .. Please HELP! Pin
Member 172877313-Feb-05 7:51
Member 172877313-Feb-05 7:51 
QuestionGetting size of file? Pin
Moochie513-Feb-05 7:48
Moochie513-Feb-05 7:48 
AnswerRe: Getting size of file? Pin
Ravi Bhavnani13-Feb-05 8:29
professionalRavi Bhavnani13-Feb-05 8:29 
GeneralRe: Getting size of file? Pin
Neville Franks13-Feb-05 9:38
Neville Franks13-Feb-05 9:38 
AnswerRe: Getting size of file? Pin
David Crow14-Feb-05 3:51
David Crow14-Feb-05 3:51 
GeneralRe: Getting size of file? Pin
Moochie514-Feb-05 16:24
Moochie514-Feb-05 16:24 
GeneralRebar problems! Pin
Temuri13-Feb-05 6:38
Temuri13-Feb-05 6:38 
GeneralRe: Rebar problems! Pin
Neville Franks13-Feb-05 9:57
Neville Franks13-Feb-05 9:57 
GeneralRe: Rebar problems! Pin
Temuri13-Feb-05 20:19
Temuri13-Feb-05 20:19 
GeneralRe: Rebar problems! Pin
Neville Franks13-Feb-05 20:29
Neville Franks13-Feb-05 20:29 
GeneralRe: Rebar problems! Pin
Temuri13-Feb-05 21:40
Temuri13-Feb-05 21:40 
GeneralRe: Rebar problems! Pin
Neville Franks14-Feb-05 9:29
Neville Franks14-Feb-05 9:29 
GeneralSQLConnect With Custom ODBC Driver Pin
KalliMan13-Feb-05 6:06
KalliMan13-Feb-05 6:06 

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.