Click here to Skip to main content
15,925,444 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralAdo Pin
Anthony98873-Jul-03 16:36
Anthony98873-Jul-03 16:36 
GeneralADO Pin
Anonymous3-Jul-03 16:34
Anonymous3-Jul-03 16:34 
GeneralRun in release mode Pin
Gagnon Claude3-Jul-03 16:34
Gagnon Claude3-Jul-03 16:34 
GeneralRe: Run in release mode Pin
John M. Drescher3-Jul-03 16:58
John M. Drescher3-Jul-03 16:58 
GeneralVersion Number Pin
Gagnon Claude3-Jul-03 16:28
Gagnon Claude3-Jul-03 16:28 
GeneralRe: Version Number Pin
Ryan Binns3-Jul-03 17:12
Ryan Binns3-Jul-03 17:12 
GeneralMultiple Doc Templates Pin
flip3-Jul-03 15:30
flip3-Jul-03 15:30 
GeneralRe: Multiple Doc Templates Pin
Ryan Binns3-Jul-03 15:50
Ryan Binns3-Jul-03 15:50 
GeneralRe: Multiple Doc Templates Pin
flip3-Jul-03 16:36
flip3-Jul-03 16:36 
GeneralRe: Multiple Doc Templates Pin
Ryan Binns3-Jul-03 16:40
Ryan Binns3-Jul-03 16:40 
GeneralWindows shell programming - Systray Pin
haritadala3-Jul-03 14:09
haritadala3-Jul-03 14:09 
GeneralRe: Windows shell programming - Systray Pin
Michael Dunn3-Jul-03 15:18
sitebuilderMichael Dunn3-Jul-03 15:18 
GeneralRe: Windows shell programming - Systray Pin
Ryan Binns3-Jul-03 15:19
Ryan Binns3-Jul-03 15:19 
GeneralShare Error Pin
amleth3-Jul-03 13:42
amleth3-Jul-03 13:42 
GeneralRe: Share Error Pin
John M. Drescher3-Jul-03 17:34
John M. Drescher3-Jul-03 17:34 
GeneralRe: Share Error Pin
amleth3-Jul-03 18:55
amleth3-Jul-03 18:55 
GeneralRe: Share Error Pin
John M. Drescher4-Jul-03 3:02
John M. Drescher4-Jul-03 3:02 
QuestionIs there a way to get the screen coordinate of an IHTMLElement? Pin
touchzen3-Jul-03 13:23
touchzen3-Jul-03 13:23 
GeneralFocus rect Pin
Xakep3-Jul-03 12:01
Xakep3-Jul-03 12:01 
QuestionMainframe without a toolbar? Pin
clintsinger3-Jul-03 11:23
clintsinger3-Jul-03 11:23 
AnswerRe: Mainframe without a toolbar? Pin
Neville Franks3-Jul-03 12:23
Neville Franks3-Jul-03 12:23 
AnswerRe: Mainframe without a toolbar? Pin
Ryan Binns3-Jul-03 15:21
Ryan Binns3-Jul-03 15:21 
AnswerRe: Mainframe without a toolbar? Pin
Michael Dunn3-Jul-03 15:22
sitebuilderMichael Dunn3-Jul-03 15:22 
GeneralKeybord input Pin
Zedd3-Jul-03 11:00
Zedd3-Jul-03 11:00 
I' have a little problem with keyboard input. For control input (shift, crtl, arrow,...) Virtual keys are defined and is use them in th OnKeyPressed function (like you see in de code).
If i press the shift button, is see the right messageBox, if i press the up arrow nothing happens. But if i hold the up-arrow down, and press another key i get a messagebox saying "up key pressed", so the problem is not that the virtual key is wrong, but that no KeyPressed event is fired when the up arrow is pressed. Why? And even more important, what to do about it?

Here's the code

void CKeyboardDlg::OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags) 
{
	if(::GetKeyState(VK_SHIFT) <0)
		MessageBox("Shift pressed");
	if(::GetKeyState(VK_UP)<0)
		MessageBox("up arrow pressed");
	...
}

GeneralRe: Keybord input Pin
Neville Franks3-Jul-03 12:29
Neville Franks3-Jul-03 12:29 

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.