Click here to Skip to main content
15,850,359 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: good code to return const reference to function local object? Pin
George_George23-Jan-08 2:43
George_George23-Jan-08 2:43 
GeneralProblem with 'Delete' key. Pin
Sanjay K23-Jan-08 0:57
Sanjay K23-Jan-08 0:57 
GeneralRe: Problem with 'Delete' key. Pin
sheshidar23-Jan-08 2:26
sheshidar23-Jan-08 2:26 
GeneralRe: Problem with 'Delete' key. Pin
Sanjay K23-Jan-08 2:31
Sanjay K23-Jan-08 2:31 
QuestionRe: Problem with 'Delete' key. Pin
David Crow23-Jan-08 3:50
David Crow23-Jan-08 3:50 
GeneralRe: Problem with 'Delete' key. Pin
Sanjay K23-Jan-08 18:03
Sanjay K23-Jan-08 18:03 
GeneralRe: Problem with 'Delete' key. Pin
David Crow24-Jan-08 3:40
David Crow24-Jan-08 3:40 
GeneralRe: Problem with 'Delete' key. Pin
Nitheesh George23-Jan-08 18:24
Nitheesh George23-Jan-08 18:24 
I think u don't need to override the WM_KEYDOWN message. it will all happen automatically.

or if u need to override for some reason then call base implementation in overridden function

eg: If you are using the CEdit then you need to call the CEdit::OnKeyDown in ON_WM_KEYDOWN Message Handler function. Or if you are using a Win32 then u need call the Old Window procedure in your own window proc. i mean leave the deleting to the default message handler. that's it.

BEGIN_MESSAGE_MAP(CMyEdit, CEdit)
ON_WM_KEYDOWN(OnMyEditeyDown)
END_MESSAGE_MAP()

void CMyEdit::OnMyEditeyDown( UINT nChar,
UINT nRepCnt,
UINT nFlags )
{
CEdit::OnKeyDown(nChar,nRepCnt,nFlags);
// to Do

}

i think this will help you
GeneralRe: Problem with 'Delete' key. Pin
Sanjay K24-Jan-08 5:31
Sanjay K24-Jan-08 5:31 
GeneralTwo functions send arguments to a single function. Pin
CodingLover23-Jan-08 0:27
CodingLover23-Jan-08 0:27 
GeneralRe: Two functions send arguments to a single function. Pin
Rajesh R Subramanian23-Jan-08 0:38
professionalRajesh R Subramanian23-Jan-08 0:38 
QuestionRe: Two functions send arguments to a single function. Pin
CPallini23-Jan-08 0:43
mveCPallini23-Jan-08 0:43 
GeneralRe: Two functions send arguments to a single function. Pin
CodingLover23-Jan-08 1:24
CodingLover23-Jan-08 1:24 
QuestionRe: Two functions send arguments to a single function. Pin
CPallini23-Jan-08 1:43
mveCPallini23-Jan-08 1:43 
GeneralRe: Two functions send arguments to a single function. Pin
Rajesh R Subramanian23-Jan-08 1:50
professionalRajesh R Subramanian23-Jan-08 1:50 
GeneralRe: Two functions send arguments to a single function. Pin
CPallini23-Jan-08 1:57
mveCPallini23-Jan-08 1:57 
GeneralRe: Two functions send arguments to a single function. Pin
Rajesh R Subramanian23-Jan-08 2:05
professionalRajesh R Subramanian23-Jan-08 2:05 
GeneralRe: Two functions send arguments to a single function. Pin
David Crow23-Jan-08 3:48
David Crow23-Jan-08 3:48 
QuestionMenu bar problem Pin
trioum22-Jan-08 23:58
trioum22-Jan-08 23:58 
GeneralRe: Menu bar problem Pin
KarstenK23-Jan-08 2:16
mveKarstenK23-Jan-08 2:16 
GeneralRe: Menu bar problem Pin
Nitheesh George24-Jan-08 0:05
Nitheesh George24-Jan-08 0:05 
QuestionATL CImage class issue Pin
Antonyemac22-Jan-08 23:30
Antonyemac22-Jan-08 23:30 
GeneralRe: ATL CImage class issue Pin
Mark Salsbery23-Jan-08 7:42
Mark Salsbery23-Jan-08 7:42 
Questionhow to save a file? Pin
gentleguy22-Jan-08 23:27
gentleguy22-Jan-08 23:27 
AnswerRe: how to save a file? Pin
CPallini22-Jan-08 23:58
mveCPallini22-Jan-08 23:58 

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.