So to make things clear, I’ll just state that there are three different ways to develop windows app through c++.
- Windows API. This is the fundamental interface and most laborious.
- MFC
- Windows Form with CLR
So yes, I want to do this the hard way, the windows API way. I already understand the basics and have a working program.
My problem is this:
case WM_KEYDOWN:
rect2.top += 10;
rect2.bottom += 10;
InvalidateRect(hWnd, NULL, TRUE);
return 0;
I only know that a key is down and have no idea how to be a little specific, perhaps the down key. Also how do you manually establish an event which only takes a double click in MFC or CLR. I hope you guys will answer and thank you.
You have an overview and some examples in “Using Keyboard Input“. As stated in a comment, processing keyboard events might not be obvious, depending on what you want exactly. A list of virtual key code is available here.