Click here to Skip to main content
15,924,193 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Fix a path -- to match filesystem? Pin
David Crow1-May-07 10:39
David Crow1-May-07 10:39 
AnswerRe: Fix a path -- to match filesystem? Pin
Peter Weyzen1-May-07 12:09
Peter Weyzen1-May-07 12:09 
AnswerRe: Fix a path -- to match filesystem? [modified] Pin
Mark Salsbery1-May-07 10:48
Mark Salsbery1-May-07 10:48 
GeneralRe: Fix a path -- to match filesystem? Pin
Peter Weyzen1-May-07 12:10
Peter Weyzen1-May-07 12:10 
GeneralRe: Fix a path -- to match filesystem? Pin
Mark Salsbery1-May-07 12:19
Mark Salsbery1-May-07 12:19 
AnswerRe: Fix a path -- to match filesystem? Pin
toxcct1-May-07 22:45
toxcct1-May-07 22:45 
GeneralRe: Fix a path -- to match filesystem? Pin
Peter Weyzen2-May-07 8:21
Peter Weyzen2-May-07 8:21 
QuestionGetNextDlgTabItem? Do this fails sometimes or do I'm doing something wrong? Pin
Joan M1-May-07 9:54
professionalJoan M1-May-07 9:54 
Hello all,

I've subclassed a Cedit control just in order to be able to jump to the next control (with WS_TABSTOP) each time the user press the DOWN ARROW and to go to the previous control (with WS_TABSTOP) each time that the user press the UP ARROW.

well I'm using something like this in my subclassed control:
void CTAMEdit::OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags)
{
  switch (nChar)
  {
    case VK_UP:
    {
      GetParent()->GetNextDlgTabItem(this,TRUE)->SetFocus();
      return;
    }
    case VK_DOWN:
    {
      GetParent()->GetNextDlgTabItem(this)->SetFocus();
      return;
    }
    case VK_RETURN:
    {
      FinishEditing();
      return;
    }
  }
  CEdit::OnKeyDown(nChar, nRepCnt, nFlags);
}
As you can see this is a very easy thing... but when I'm going forward (VK_DOWN) everything goes perfect, but when I'm going backwards (VK_UP) the focus enters into a MSChart that I have as the last control in my taborder. (I mean that the focus should bypass that control as it does when I go forward, but it don't).

Any idea? this is not critical, so I'm not very worried on that, but I'm being curious...

PS: I'm not handling cursor keys in any other place of my application.

As always thank you in advance...
AnswerRe: GetNextDlgTabItem? Do this fails sometimes or do I'm doing something wrong? Pin
Mark Salsbery1-May-07 11:16
Mark Salsbery1-May-07 11:16 
GeneralRe: GetNextDlgTabItem? Do this fails sometimes or do I'm doing something wrong? Pin
Joan M1-May-07 20:55
professionalJoan M1-May-07 20:55 
QuestionEdit control MFC 2003 VC++ Pin
YUANGE1-May-07 9:30
YUANGE1-May-07 9:30 
AnswerRe: Edit control MFC 2003 VC++ Pin
Joan M1-May-07 9:46
professionalJoan M1-May-07 9:46 
Questiondetecting a window within another window Pin
zapper3331-May-07 9:07
zapper3331-May-07 9:07 
QuestionwaveInXXX - USB device returns MMSYSERR_BADDEVICEID Pin
Vaclav_1-May-07 8:13
Vaclav_1-May-07 8:13 
AnswerRe: waveInXXX - USB device returns MMSYSERR_BADDEVICEID Pin
Mark Salsbery1-May-07 11:19
Mark Salsbery1-May-07 11:19 
GeneralRe: waveInXXX - USB device returns MMSYSERR_BADDEVICEID Pin
Vaclav_1-May-07 11:33
Vaclav_1-May-07 11:33 
GeneralRe: waveInXXX - USB device returns MMSYSERR_BADDEVICEID Pin
Mark Salsbery1-May-07 12:16
Mark Salsbery1-May-07 12:16 
GeneralRe: waveInXXX - USB device returns MMSYSERR_BADDEVICEID Pin
Vaclav_1-May-07 16:22
Vaclav_1-May-07 16:22 
Questionhow to plot the values Pin
Chandrasekharan P1-May-07 7:40
Chandrasekharan P1-May-07 7:40 
AnswerRe: how to plot the values Pin
Vaclav_1-May-07 8:22
Vaclav_1-May-07 8:22 
AnswerRe: how to plot the values Pin
Moak1-May-07 15:14
Moak1-May-07 15:14 
Questionhow to plat the values Pin
Chandrasekharan P1-May-07 7:37
Chandrasekharan P1-May-07 7:37 
QuestionCapturing Network Pc`s desktop Pin
HassanKU1-May-07 5:56
HassanKU1-May-07 5:56 
AnswerRe: Capturing Network Pc`s desktop Pin
Mark Salsbery1-May-07 6:27
Mark Salsbery1-May-07 6:27 
GeneralRe: Capturing Network Pc`s desktop Pin
Eytukan1-May-07 6:43
Eytukan1-May-07 6:43 

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.