Click here to Skip to main content
15,922,155 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalextract resouce dialogs to vb Pin
Andy Elmore13-Feb-05 10:54
Andy Elmore13-Feb-05 10:54 
GeneralRe: extract resouce dialogs to vb Pin
Michael P Butler13-Feb-05 10:59
Michael P Butler13-Feb-05 10:59 
GeneralRe: extract resouce dialogs to vb Pin
Andy Elmore13-Feb-05 13:12
Andy Elmore13-Feb-05 13:12 
GeneralRe: extract resouce dialogs to vb Pin
technomanceraus13-Feb-05 13:38
technomanceraus13-Feb-05 13:38 
GeneralSimple Question on Button and Sound Pin
Grahamfff13-Feb-05 10:21
Grahamfff13-Feb-05 10:21 
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 
I have a form with Chris Maunder's MFCGrid and some buttons. My problem is when the user is editing something on the grid he would be using an edit control that destroys itself in it's WM_KILLFOCUS handler
CInPlaceEdit::OnKillFocus(CWnd *pNewWnd)
{
    ...
    SendMessage(WM_CLOSE, 0, 0);
}
My problem is that when one of the buttons recieves the input focus it has to know the HWND of the control that lost the focus
COneClickButton::OnSetFocus(CWnd *pOldWnd)
{
    CButton::OnSetFocus(pOldWnd);
 
    HWND old = pOldWnd->GetSafeHwnd();
So far all my testing seems to indicate that the GetSafeHwnd() function is returning the correct HWND, but can I be sure that it always will or am I better off changing the SendMessage(WM_CLOSE) to a PostMessage(WM_CLOSE) in the CInPlaceEdit class?



"You're obviously a superstar." - Christian Graus about me - 12 Feb '03

"Obviously ???  You're definitely a superstar!!!" mYkel - 21 Jun '04

Within you lies the power for good - Use it!
Honoured as one of The Most Helpful Members of 2004

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

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.