Click here to Skip to main content
15,913,587 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Class Custom Control Pin
Iain Clarke, Warrior Programmer19-May-10 1:58
Iain Clarke, Warrior Programmer19-May-10 1:58 
QuestionVisual Studio Addin for source code editor tooltip [modified] Pin
lclarsen18-May-10 1:58
lclarsen18-May-10 1:58 
QuestionMemory leak In Excel range pointer Pin
trioum18-May-10 0:53
trioum18-May-10 0:53 
AnswerRe: Memory leak In Excel range pointer Pin
Stephen Hewitt18-May-10 14:06
Stephen Hewitt18-May-10 14:06 
GeneralRe: Memory leak In Excel range pointer Pin
trioum18-May-10 22:30
trioum18-May-10 22:30 
QuestionService access file on network folder Pin
baerten18-May-10 0:39
baerten18-May-10 0:39 
AnswerRe: Service access file on network folder Pin
Garth J Lancaster18-May-10 0:52
professionalGarth J Lancaster18-May-10 0:52 
AnswerRe: Service access file on network folder Pin
Covean18-May-10 0:52
Covean18-May-10 0:52 
AnswerRe: Service access file on network folder Pin
baerten18-May-10 2:39
baerten18-May-10 2:39 
GeneralRe: Service access file on network folder Pin
sashoalm18-May-10 7:45
sashoalm18-May-10 7:45 
Questionmake a timer Pin
hasani200717-May-10 23:05
hasani200717-May-10 23:05 
AnswerRe: make a timer Pin
Rajesh R Subramanian17-May-10 23:26
professionalRajesh R Subramanian17-May-10 23:26 
JokeRe: make a timer Pin
CPallini17-May-10 23:45
mveCPallini17-May-10 23:45 
AnswerRe: make a timer Pin
Maximilien18-May-10 0:30
Maximilien18-May-10 0:30 
GeneralRe: make a timer Pin
Stephen Hewitt18-May-10 0:35
Stephen Hewitt18-May-10 0:35 
AnswerRe: make a timer Pin
KarstenK18-May-10 1:26
mveKarstenK18-May-10 1:26 
AnswerRe: Here is your count down timer hasani2007 Pin
Software_Developer18-May-10 7:31
Software_Developer18-May-10 7:31 
GeneralRe: Here is your count down timer hasani2007 Pin
Stephen Hewitt18-May-10 14:04
Stephen Hewitt18-May-10 14:04 
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 
hi,

thank you for your answer, I've checked and found it in my code,

IMPLEMENT_DYNCREATE(CTest9View, CRecordView)

BEGIN_MESSAGE_MAP(CTest9View, CRecordView)
//{{AFX_MSG_MAP(CTest9View)
ON_WM_KEYDOWN()
//}}AFX_MSG_MAP
// Standard printing commands
ON_COMMAND(ID_FILE_PRINT, CRecordView::OnFilePrint)
ON_COMMAND(ID_FILE_PRINT_DIRECT, CRecordView::OnFilePrint)
ON_COMMAND(ID_FILE_PRINT_PREVIEW, CRecordView::OnFilePrintPreview)

END_MESSAGE_MAP()

However, it still not work. I met this problem when i studied with dialoge, and solved it with PretranslateMessage.

BOOL CTimerver2Dlg::PreTranslateMessage(MSG* pMsg)
{
// TODO: Add your specialized code here and/or call the base class
if (pMsg->message == WM_KEYDOWN)
{
SendMessage(WM_KEYDOWN, pMsg->wParam, pMsg->lParam);
}
if (pMsg->message == WM_KEYUP)
{
SendMessage(WM_KEYUP, pMsg->wParam, pMsg->lParam);
}
return CDialog::PreTranslateMessage(pMsg);
}

I've tried it in this SDI, but nothing happen.
I'm just a newbie in VSC, any way to do it?
Thanks for your links, i'll try to learn it.

best regards,
dnqhung
dnqhung

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.