Click here to Skip to main content
15,911,531 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Using WS_HSCROLL in a dialog Pin
cje11-Sep-03 8:59
cje11-Sep-03 8:59 
GeneralRe: Using WS_HSCROLL in a dialog Pin
Marty1020304011-Sep-03 9:35
Marty1020304011-Sep-03 9:35 
GeneralQuestion about sockets… Pin
RobJones10-Sep-03 12:03
RobJones10-Sep-03 12:03 
GeneralRe: Question about sockets… Pin
Larry Antram10-Sep-03 12:27
Larry Antram10-Sep-03 12:27 
GeneralRe: Question about sockets… Pin
RobJones10-Sep-03 12:32
RobJones10-Sep-03 12:32 
GeneralRe: Question about sockets… Pin
Larry Antram10-Sep-03 12:55
Larry Antram10-Sep-03 12:55 
GeneralRe: Question about sockets… Pin
Ted Ferenc10-Sep-03 12:37
Ted Ferenc10-Sep-03 12:37 
Generalarrow keys PLEASE HELP!! Pin
Marissa18210-Sep-03 10:59
Marissa18210-Sep-03 10:59 
Why doesnt my program recive them the messages seem to go straigh to the toolbar i have tried to map OnKeyUp OnKeyDown OnChar all at once and non work
here is the code im using for all 3 of them

void DlgMapEdit::OnChar(UINT nChar, UINT nRepCnt, UINT nFlags)
{
switch(nChar)
{
case VK_UP:
curr_room.y -= 1;
MessageBox("Key Up OnChar");
break;
case VK_DOWN:
curr_room.y += 1;
break;
case VK_LEFT:
curr_room.x -= 1;
break;
case VK_RIGHT:
curr_room.x += 1;
break;
}

UpdateDisplay();

CDialog::OnChar(nChar, nRepCnt, nFlags);
}

the code for all 3 is relitivly the same but it doesnt even get to the message box
so whats the deal is there something special i have to do?

when i hit the arrow keys it moves around the selected button on the toolbar and i dont want that :P

i also tried to use OnSysKeyUp OnSysKeyDown and OnSysKeyChar but none of them work it all goes to the toolbar

SOMEONE PLEASE HELP!!!!!

thanks
GeneralRe: arrow keys PLEASE HELP!! Pin
Neville Franks10-Sep-03 11:33
Neville Franks10-Sep-03 11:33 
GeneralQuick Question Regarding Visual C++ .net Pin
Anonymous10-Sep-03 10:24
Anonymous10-Sep-03 10:24 
GeneralRe: Quick Question Regarding Visual C++ .net Pin
Michael Dunn10-Sep-03 10:29
sitebuilderMichael Dunn10-Sep-03 10:29 
GeneralRe: Quick Question Regarding Visual C++ .net Pin
ZoogieZork10-Sep-03 13:15
ZoogieZork10-Sep-03 13:15 
GeneralRe: Quick Question Regarding Visual C++ .net Pin
Anonymous11-Sep-03 5:22
Anonymous11-Sep-03 5:22 
Questionhow to do a dos-like thing in MFC prog Pin
ns10-Sep-03 9:39
ns10-Sep-03 9:39 
AnswerRe: how to do a dos-like thing in MFC prog Pin
David Crow10-Sep-03 9:46
David Crow10-Sep-03 9:46 
AnswerRe: how to do a dos-like thing in MFC prog Pin
Jagadeesh VN10-Sep-03 9:48
Jagadeesh VN10-Sep-03 9:48 
GeneralThanks to you both!!! Pin
ns10-Sep-03 9:55
ns10-Sep-03 9:55 
GeneralRe: Thanks to you both!!! Pin
Ravi Bhavnani10-Sep-03 10:57
professionalRavi Bhavnani10-Sep-03 10:57 
GeneralA simple question from a beginner Pin
xatanu10-Sep-03 9:25
xatanu10-Sep-03 9:25 
GeneralRe: A simple question from a beginner Pin
David Crow10-Sep-03 9:48
David Crow10-Sep-03 9:48 
GeneralRe: A simple question from a beginner Pin
xatanu11-Sep-03 7:36
xatanu11-Sep-03 7:36 
GeneralGDI Portability Pin
Larry J. Siddens10-Sep-03 8:55
Larry J. Siddens10-Sep-03 8:55 
GeneralRe: GDI Portability Pin
Larry J. Siddens10-Sep-03 10:56
Larry J. Siddens10-Sep-03 10:56 
GeneralPrint Screen Buttton Pin
Mazdak10-Sep-03 8:24
Mazdak10-Sep-03 8:24 
GeneralRe: Print Screen Buttton Pin
David Crow10-Sep-03 9:51
David Crow10-Sep-03 9:51 

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.