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

C / C++ / MFC

 
GeneralRe: confused about the syntax in the header file Pin
Stephen Hewitt16-May-06 20:32
Stephen Hewitt16-May-06 20:32 
GeneralRe: confused about the syntax in the header file Pin
Maxwell Chen16-May-06 20:34
Maxwell Chen16-May-06 20:34 
GeneralRe: confused about the syntax in the header file Pin
Maxwell Chen16-May-06 20:30
Maxwell Chen16-May-06 20:30 
AnswerRe: confused about the syntax in the header file Pin
ThatsAlok16-May-06 21:14
ThatsAlok16-May-06 21:14 
AnswerRe: confused about the syntax in the header file Pin
Russell'17-May-06 3:55
Russell'17-May-06 3:55 
QuestionIkon in list control Pin
vazhapillyjohn16-May-06 18:46
vazhapillyjohn16-May-06 18:46 
AnswerRe: Ikon in list control Pin
iLL eFFect16-May-06 19:44
iLL eFFect16-May-06 19:44 
QuestionKey stroke watching Pin
Nishad S16-May-06 18:36
Nishad S16-May-06 18:36 
In my application, I dynamically set the parent of my custom child control to Desktop Window. Now I don't get the keyboard messages in PreTranslateMessage of my control, because the keyboard focus is still in the main application...
BOOL CMyCtrl::PreTranslateMessage( MSG* pMsg_i )
{
    if(( pMsg_i->message >= WM_KEYFIRST ) && ( pMsg_i->message <= WM_KEYLAST ))
    {
        ProcessKeyStroke();
    }
    return CWnd::PreTranslateMessage( pMsg_i );
}

I cannot change the focus from application to the control because it's a must. Is there anyway to watch the key strokes in this condition?
( Please don't tell me about hook Wink | ;) )

Thank you.


- NS -
AnswerRe: Key stroke watching Pin
Nibu babu thomas16-May-06 18:49
Nibu babu thomas16-May-06 18:49 
GeneralRe: Key stroke watching Pin
Nishad S16-May-06 18:54
Nishad S16-May-06 18:54 
GeneralRe: Key stroke watching Pin
Nibu babu thomas16-May-06 18:59
Nibu babu thomas16-May-06 18:59 
GeneralRe: Key stroke watching Pin
Nishad S16-May-06 19:06
Nishad S16-May-06 19:06 
GeneralRe: Key stroke watching Pin
Nibu babu thomas16-May-06 19:17
Nibu babu thomas16-May-06 19:17 
GeneralRe: Key stroke watching Pin
Nishad S16-May-06 19:21
Nishad S16-May-06 19:21 
QuestionCArray memory issue Pin
mohanrajh16-May-06 18:15
mohanrajh16-May-06 18:15 
AnswerRe: CArray memory issue Pin
Christian Graus16-May-06 18:24
protectorChristian Graus16-May-06 18:24 
GeneralRe: CArray memory issue Pin
NiceNaidu16-May-06 18:36
NiceNaidu16-May-06 18:36 
AnswerRe: CArray memory issue Pin
Laxman Auti16-May-06 18:29
Laxman Auti16-May-06 18:29 
AnswerRe: CArray memory issue Pin
grigsoft16-May-06 19:08
grigsoft16-May-06 19:08 
QuestionRe: CArray memory issue Pin
mohanrajh17-May-06 15:08
mohanrajh17-May-06 15:08 
AnswerRe: CArray memory issue Pin
grigsoft17-May-06 20:55
grigsoft17-May-06 20:55 
Questionstring.. Pin
Prinz Ryoiji16-May-06 18:08
Prinz Ryoiji16-May-06 18:08 
QuestionRe: string.. Pin
Nibu babu thomas16-May-06 18:10
Nibu babu thomas16-May-06 18:10 
AnswerRe: string.. Pin
Prinz Ryoiji16-May-06 18:17
Prinz Ryoiji16-May-06 18:17 
GeneralRe: string.. Pin
Nibu babu thomas16-May-06 18:24
Nibu babu thomas16-May-06 18:24 

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.