Click here to Skip to main content
15,914,642 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionAre you just mocking me? Pin
CPallini3-Jun-08 22:39
mveCPallini3-Jun-08 22:39 
JokeRe: I am not mocking you? Pin
traelektro3-Jun-08 23:09
traelektro3-Jun-08 23:09 
GeneralRe: I am not mocking you? Pin
CPallini3-Jun-08 23:17
mveCPallini3-Jun-08 23:17 
GeneralRe: I am not mocking you? Pin
traelektro3-Jun-08 23:55
traelektro3-Jun-08 23:55 
AnswerRe: how to calculate hessian matrix Pin
Saurabh.Garg29-May-08 16:30
Saurabh.Garg29-May-08 16:30 
GeneralRe: how to calculate hessian matrix Pin
traelektro3-Jun-08 22:39
traelektro3-Jun-08 22:39 
QuestionSuppressing accelerator keys temporarily Pin
Graham Shanks29-May-08 6:09
Graham Shanks29-May-08 6:09 
AnswerRe: Suppressing accelerator keys temporarily Pin
Graham Shanks30-May-08 0:45
Graham Shanks30-May-08 0:45 
Solved it thanks to a colleague.

I need to override the PreTranslateMessage message in my tree control class (it was already subclassed so that it wasn't a problem) as follows:

BOOL MyTreeCtrl::PreTranslateMessage(MSG* pMsg)
{
  if( pMsg->message == WM_KEYDOWN )
  {
    // When an item is being edited make sure the edit control
    // receives certain important key strokes
    if( GetEditControl() &&
        (pMsg->wParam == VK_RETURN
        || pMsg->wParam == VK_DELETE
        || pMsg->wParam == VK_ESCAPE
        || GetKeyState(VK_CONTROL)))
    {
      ::TranslateMessage(pMsg);
      ::DispatchMessage(pMsg);
      return TRUE;    // DO NOT process further
    }
  }

  return CTreeCtrl::PreTranslateMessage(pMsg);
}


Graham

Librarians rule, Ook!

QuestionPbm with focus when showing interfaces created inside an extension DLL Pin
Ahmed Charfeddine29-May-08 5:25
Ahmed Charfeddine29-May-08 5:25 
Questionthere is something seriously wrong with this... Pin
Pathetic29-May-08 5:24
Pathetic29-May-08 5:24 
QuestionRe: there is something seriously wrong with this... Pin
David Crow29-May-08 5:25
David Crow29-May-08 5:25 
AnswerRe: there is something seriously wrong with this... Pin
Pathetic29-May-08 12:38
Pathetic29-May-08 12:38 
AnswerRe: there is something seriously wrong with this... Pin
jeron129-May-08 5:31
jeron129-May-08 5:31 
AnswerRe: there is something seriously wrong with this... Pin
Rajesh R Subramanian29-May-08 6:00
professionalRajesh R Subramanian29-May-08 6:00 
GeneralRe: there is something seriously wrong with this... Pin
Pathetic29-May-08 12:37
Pathetic29-May-08 12:37 
Questionkeep item selected when list control loses focus Pin
SWDevil29-May-08 4:15
SWDevil29-May-08 4:15 
QuestionRe: keep item selected when list control loses focus Pin
David Crow29-May-08 4:32
David Crow29-May-08 4:32 
News[Message Deleted] Pin
Apu Nahasapeemapetilon29-May-08 3:02
Apu Nahasapeemapetilon29-May-08 3:02 
QuestionRe: !! Pin
Michael Schubert29-May-08 3:11
Michael Schubert29-May-08 3:11 
RantThat's even worse than your last performance. Pin
CPallini29-May-08 3:15
mveCPallini29-May-08 3:15 
GeneralRe: [Message Deleted] Pin
ThatsAlok20-Jul-09 0:25
ThatsAlok20-Jul-09 0:25 
QuestionReading a bluetooth Pin
Alex Cutovoi29-May-08 2:30
Alex Cutovoi29-May-08 2:30 
AnswerRe: Reading a bluetooth Pin
KarstenK29-May-08 3:03
mveKarstenK29-May-08 3:03 
GeneralRe: Reading a bluetooth Pin
Alex Cutovoi29-May-08 3:51
Alex Cutovoi29-May-08 3:51 
AnswerRe: Reading a bluetooth Pin
Rajesh R Subramanian29-May-08 3:04
professionalRajesh R Subramanian29-May-08 3:04 

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.