Click here to Skip to main content
15,902,299 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Executing .bat files programmatically, C++ Pin
Michael Dunn17-Mar-01 17:48
sitebuilderMichael Dunn17-Mar-01 17:48 
GeneralRe: Executing .bat files programmatically, C++ Pin
Colin J Davies17-Mar-01 23:17
Colin J Davies17-Mar-01 23:17 
QuestionHow can I programmatically change the screen area? Pin
17-Mar-01 14:01
suss17-Mar-01 14:01 
AnswerRe: How can I programmatically change the screen area? Pin
Tim Deveaux17-Mar-01 15:17
Tim Deveaux17-Mar-01 15:17 
GeneralRe: How can I programmatically change the screen area? Pin
David Cunningham17-Mar-01 15:27
cofounderDavid Cunningham17-Mar-01 15:27 
Questionredirect cout to CEdit ? Pin
17-Mar-01 11:24
suss17-Mar-01 11:24 
QuestionHow do you. . . Pin
17-Mar-01 6:00
suss17-Mar-01 6:00 
AnswerRe: How do you. . . Pin
Tim Deveaux17-Mar-01 14:56
Tim Deveaux17-Mar-01 14:56 
I don't know if this is good practise or not, but I found the keys being eaten on the way through some PreTranslateMsg code, so did this:

BOOL CSmc3View::PreTranslateMessage(MSG* pMsg) 
{
    // TODO: Add your specialized code here and/or call the base class
    if(pMsg->message != WM_KEYDOWN)
        return CFormView::PreTranslateMessage(pMsg);
    else 
        return WindowProc(pMsg->message, pMsg->lParam, pMsg->wParam);
    
}


Now, OnKeyDown gets hit in the form view class, and enter doesn't seem to be a problem. But I don't know if this is kosher - it bypasses a lot of MFC code... caveat emptor.

later...
er... and oh yeah... then you can call the OnButton code from OnKeyDown... geez, what a hack! Smile | :) oh well... I try...
GeneralSockets Pin
ernst.maurer17-Mar-01 3:40
ernst.maurer17-Mar-01 3:40 
GeneralRe: Sockets Pin
Scott!17-Mar-01 4:21
Scott!17-Mar-01 4:21 
GeneralRe: Sockets Pin
ernst.maurer17-Mar-01 4:38
ernst.maurer17-Mar-01 4:38 
GeneralRe: Sockets Pin
David Cunningham17-Mar-01 7:05
cofounderDavid Cunningham17-Mar-01 7:05 
GeneralRe: Sockets Pin
Peter Godec19-Mar-01 8:32
Peter Godec19-Mar-01 8:32 
QuestionHow I can do it !!! Pin
Ahmad16-Mar-01 21:44
Ahmad16-Mar-01 21:44 
AnswerRe: How I can do it !!! Pin
l a u r e n16-Mar-01 23:32
l a u r e n16-Mar-01 23:32 
GeneralRe: How I can do it !!! Pin
Ahmad17-Mar-01 21:25
Ahmad17-Mar-01 21:25 
GeneralRe: How I can do it !!! Pin
l a u r e n17-Mar-01 22:52
l a u r e n17-Mar-01 22:52 
GeneralRe: How I can do it !!! Pin
Ahmad19-Mar-01 21:49
Ahmad19-Mar-01 21:49 
GeneralC++ question .. Pin
Hadi Rezaee16-Mar-01 19:44
Hadi Rezaee16-Mar-01 19:44 
GeneralRe: C++ question .. Pin
l a u r e n16-Mar-01 23:08
l a u r e n16-Mar-01 23:08 
GeneralRe: C++ question .. Pin
Tim Deveaux17-Mar-01 4:22
Tim Deveaux17-Mar-01 4:22 
GeneralSetModifiedFlag() ... Pin
Hadi Rezaee16-Mar-01 19:43
Hadi Rezaee16-Mar-01 19:43 
GeneralRe: SetModifiedFlag() ... Pin
l a u r e n16-Mar-01 23:13
l a u r e n16-Mar-01 23:13 
GeneralRe: SetModifiedFlag() ... Pin
Masaaki Onishi17-Mar-01 3:37
Masaaki Onishi17-Mar-01 3:37 
GeneralCWnd ... Pin
Hadi Rezaee16-Mar-01 19:41
Hadi Rezaee16-Mar-01 19: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.