Click here to Skip to main content
15,891,976 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Getting Mouse Co-ords ?? Pin
Alexander M.,29-Oct-04 4:28
Alexander M.,29-Oct-04 4:28 
AnswerRe: Getting Mouse Co-ords ?? Pin
Blake Miller29-Oct-04 4:42
Blake Miller29-Oct-04 4:42 
AnswerRe: Getting Mouse Co-ords ?? Pin
GKarRacer29-Oct-04 7:08
GKarRacer29-Oct-04 7:08 
GeneralRe: Getting Mouse Co-ords ?? Pin
AbinThomas29-Oct-04 19:00
AbinThomas29-Oct-04 19:00 
Generalprevent window closing Pin
Arrun29-Oct-04 1:37
Arrun29-Oct-04 1:37 
GeneralRe: prevent window closing Pin
Monty229-Oct-04 1:49
Monty229-Oct-04 1:49 
GeneralRe: prevent window closing Pin
Cedric Moonen29-Oct-04 1:59
Cedric Moonen29-Oct-04 1:59 
GeneralRe: prevent window closing Pin
Antony M Kancidrowski29-Oct-04 2:04
Antony M Kancidrowski29-Oct-04 2:04 
I prefer to override PreTranslateMessage and handle the CR myself

BOOL CMyDialog::PreTranslateMessage(MSG* pMsg)
{
  if ((pMsg->message == WM_KEYUP) || (pMsg->message == WM_KEYDOWN))
  {
    if (pMsg->wParam == VK_RETURN)
    {
      // TODO: Process all we want from the RETURN key
<p></p>
      // Ignore further processing 
      return TRUE;
    }
  }
  return CDialog::PreTranslateMessage(pMsg);
}


Ant.

I'm hard, yet soft.
I'm coloured, yet clear.
I'm fruity and sweet.
I'm jelly, what am I? Muse on it further, I shall return!
- David Walliams (Little Britain)

GeneralUser previleges to create files in &quot;C:\ProgramFiles&quot; Pin
tgprakash29-Oct-04 0:50
tgprakash29-Oct-04 0:50 
GeneralRe: User previleges to create files in &quot;C:\ProgramFiles&quot; Pin
ThatsAlok29-Oct-04 1:52
ThatsAlok29-Oct-04 1:52 
GeneralRe: User previleges to create files in &quot;C:\ProgramFiles&quot; Pin
Andrew Peace31-Oct-04 3:32
Andrew Peace31-Oct-04 3:32 
GeneralRe: User previleges to create files in &quot;C:\ProgramFiles&quot; Pin
Michael Dunn29-Oct-04 7:02
sitebuilderMichael Dunn29-Oct-04 7:02 
GeneralRe: User previleges to create files in &quot;C:\ProgramFiles&quot; Pin
tgprakash29-Oct-04 19:48
tgprakash29-Oct-04 19:48 
GeneralHebrew Localisation Pin
Sitaram Sukumar29-Oct-04 0:03
Sitaram Sukumar29-Oct-04 0:03 
Generalreturning a function pointer from a function Pin
_psh_28-Oct-04 23:57
_psh_28-Oct-04 23:57 
GeneralRe: returning a function pointer from a function Pin
jan larsen29-Oct-04 0:19
jan larsen29-Oct-04 0:19 
GeneralSNTP server Pin
Anonymous28-Oct-04 23:36
Anonymous28-Oct-04 23:36 
GeneralRe: SNTP server Pin
Antony M Kancidrowski29-Oct-04 5:39
Antony M Kancidrowski29-Oct-04 5:39 
Questionhow to read data (serial communication) Pin
vc-programmer-28-Oct-04 23:35
vc-programmer-28-Oct-04 23:35 
AnswerRe: how to read data (serial communication) Pin
jan larsen29-Oct-04 0:10
jan larsen29-Oct-04 0:10 
GeneralMultiway Tree Pin
vikramlinux28-Oct-04 23:30
vikramlinux28-Oct-04 23:30 
GeneralRe: Multiway Tree Pin
Blake Miller29-Oct-04 4:46
Blake Miller29-Oct-04 4:46 
GeneralRe: Multiway Tree Pin
David Crow29-Oct-04 5:39
David Crow29-Oct-04 5:39 
GeneralRe: Multiway Tree Pin
vikramlinux1-Nov-04 17:22
vikramlinux1-Nov-04 17:22 
GeneralRe: Multiway Tree Pin
David Crow2-Nov-04 2:52
David Crow2-Nov-04 2:52 

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.