Click here to Skip to main content
15,884,472 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: make a timer Pin
Aescleal19-May-10 5:49
Aescleal19-May-10 5:49 
Questionrecursive function Pin
hasani200717-May-10 22:26
hasani200717-May-10 22:26 
AnswerRe: recursive function Pin
CPallini17-May-10 22:45
mveCPallini17-May-10 22:45 
QuestionRe: recursive function Pin
David Crow19-May-10 3:52
David Crow19-May-10 3:52 
Questionsingel document app cannot recieve WM_KEYDOWN event Pin
dnqhung17-May-10 21:00
dnqhung17-May-10 21:00 
AnswerRe: singel document app cannot recieve WM_KEYDOWN event Pin
Aescleal18-May-10 5:12
Aescleal18-May-10 5:12 
GeneralRe: singel document app cannot recieve WM_KEYDOWN event Pin
dnqhung18-May-10 15:33
dnqhung18-May-10 15:33 
GeneralRe: singel document app cannot recieve WM_KEYDOWN event Pin
Aescleal18-May-10 22:38
Aescleal18-May-10 22:38 
Hi again,

I've never used CRecordView so I'm probably not going to be a lot of help, however if you try deriving your class from CView instead does it start working? Or rather does the handler function get called, it won't do exactly what you want as it won't be derived from CRecordView. If it does then something in CRecordView is probably eating the message.

If you're feeling masochistic you could try stepping through the MFC source code to see where the message gets sent. One thing you could try is overiding PreTranslate message and use it as somewhere to stick a breakpoint in, e.g:

BOOL "your view class name"::PreTranslateMessage(MSG* pMsg)
{
    if (pMsg->message == WM_KEYDOWN)
    {
        __asm int 0x03;
    } 

    return CDialog::PreTranslateMessage(pMsg);
}


This hardcodes a breakpoint whenever a WM_KEYDOWN comes flying past PreTranslateMessage. You can then follow where the message goes and see if there's another control or window that eats the message.

Cheers,

Ash

PS: __asm int 0x03; is not the official Microsoft way of breaking into the debugger - being lazy and a recovering assembly language programmer it's the method I use. I think the official way is to call (from memory) DebugBreak();
GeneralRe: singel document app cannot recieve WM_KEYDOWN event Pin
dnqhung21-May-10 15:57
dnqhung21-May-10 15:57 
QuestionObtaining the version info of external app [solved] Pin
PaulowniaK17-May-10 19:43
PaulowniaK17-May-10 19:43 
AnswerRe: Obtaining the version info of external app Pin
Stephen Hewitt17-May-10 20:42
Stephen Hewitt17-May-10 20:42 
GeneralRe: Obtaining the version info of external app Pin
PaulowniaK17-May-10 20:50
PaulowniaK17-May-10 20:50 
QuestionProblem with CreateFileMapping() window7/Vista. Pin
janaswamy uday17-May-10 19:41
janaswamy uday17-May-10 19:41 
AnswerRe: Problem with CreateFileMapping() window7/Vista. Pin
hanq_3891013017-May-10 20:59
hanq_3891013017-May-10 20:59 
AnswerRe: Problem with CreateFileMapping() window7/Vista. Pin
Richard MacCutchan17-May-10 21:37
mveRichard MacCutchan17-May-10 21:37 
Questionaudio chat Pin
69917-May-10 17:24
69917-May-10 17:24 
AnswerRe: audio chat Pin
Stephen Hewitt17-May-10 17:33
Stephen Hewitt17-May-10 17:33 
AnswerRe: audio chat Pin
Cedric Moonen17-May-10 20:20
Cedric Moonen17-May-10 20:20 
AnswerRe: audio chat Pin
CPallini17-May-10 23:23
mveCPallini17-May-10 23:23 
QuestionVisual Studio C++ Object Oriented Pin
RobNO17-May-10 12:26
professionalRobNO17-May-10 12:26 
AnswerRe: Visual Studio C++ Object Oriented Pin
chaau17-May-10 13:42
chaau17-May-10 13:42 
GeneralRe: Visual Studio C++ Object Oriented Pin
RobNO18-May-10 11:01
professionalRobNO18-May-10 11:01 
GeneralRe: Visual Studio C++ Object Oriented Pin
RobNO18-May-10 11:25
professionalRobNO18-May-10 11:25 
Questiondefine arrow keys in c Pin
hasani200717-May-10 10:23
hasani200717-May-10 10:23 
AnswerRe: define arrow keys in c Pin
Richard MacCutchan17-May-10 10:25
mveRichard MacCutchan17-May-10 10:25 

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.