Click here to Skip to main content
16,007,760 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Control Toolbars with Owner Drawn Combo Boxes Pin
John Clump27-Mar-02 21:13
John Clump27-Mar-02 21:13 
GeneralRe: Control Toolbars with Owner Drawn Combo Boxes Pin
wangyiming28-Mar-02 17:17
wangyiming28-Mar-02 17:17 
GeneralMultible tables in one dialog Pin
26-Mar-02 23:32
suss26-Mar-02 23:32 
Generalusing DLL error Pin
26-Mar-02 23:05
suss26-Mar-02 23:05 
GeneralRe: using DLL error Pin
Tomasz Sowinski26-Mar-02 23:05
Tomasz Sowinski26-Mar-02 23:05 
GeneralRe: using DLL error Pin
Jack Hui27-Mar-02 5:21
Jack Hui27-Mar-02 5:21 
GeneralPressing key stuff problems... Pin
Rickard Andersson2026-Mar-02 22:59
Rickard Andersson2026-Mar-02 22:59 
GeneralRe: Pressing key stuff problems... Pin
Paul M Watt27-Mar-02 4:09
mentorPaul M Watt27-Mar-02 4:09 
You could create a sub-message handler specifically for your arrow keys when you handle the WM_CHAR message.

Then what this handler would do is call GetKeyboardState, or GetKeyState in order to test the values
of all of the arrow keys. Then you can logically decide which way to move the image based on which arrow keys are set.

If you wanted to get more complicated with the way that the keys control the movement you will have to store the last known state of the keys. For instance, say that you are holding the left arrow key, then you hit the right arrow key. The simple solution in this case would be not to move the items because both keys cancel themselves out. However, if you record the state of the keys in the WM_KEYUP and WM_KEYDOWN messages, you would be able to tell that the right arrow key was clicked second, and the movement of the picture should change to the right.
GeneralData Grid with ADO Pin
Forlegend26-Mar-02 22:58
Forlegend26-Mar-02 22:58 
GeneralRe: Data Grid with ADO Pin
Mazdak26-Mar-02 23:09
Mazdak26-Mar-02 23:09 
GeneralRe:Re: Data Grid with ADO Pin
Forlegend26-Mar-02 23:27
Forlegend26-Mar-02 23:27 
GeneralRe:Re: Data Grid with ADO Pin
Mazdak26-Mar-02 23:47
Mazdak26-Mar-02 23:47 
GeneralRe:Re: Data Grid with ADO Pin
Forlegend27-Mar-02 0:31
Forlegend27-Mar-02 0:31 
GeneralDialog based application Pin
XAlien26-Mar-02 22:22
XAlien26-Mar-02 22:22 
GeneralRe: Dialog based application Pin
Rickard Andersson2026-Mar-02 23:15
Rickard Andersson2026-Mar-02 23:15 
GeneralRe: Dialog based application Pin
Nish Nishant27-Mar-02 2:11
sitebuilderNish Nishant27-Mar-02 2:11 
GeneralRe: Dialog based application Pin
lucy27-Mar-02 6:42
lucy27-Mar-02 6:42 
GeneralClient Server problem!!! Pin
hkl26-Mar-02 22:15
hkl26-Mar-02 22:15 
GeneralRe: Client Server problem!!! Pin
wangyiming27-Mar-02 19:53
wangyiming27-Mar-02 19:53 
QuestionHow the check the thread ID??? (or identity) Pin
ChiYung26-Mar-02 22:04
ChiYung26-Mar-02 22:04 
AnswerRe: How the check the thread ID??? (or identity) Pin
Rickard Andersson2026-Mar-02 23:08
Rickard Andersson2026-Mar-02 23:08 
AnswerRe: How the check the thread ID??? (or identity) Pin
Tomasz Sowinski26-Mar-02 23:10
Tomasz Sowinski26-Mar-02 23:10 
Generalbitmap on static control Pin
26-Mar-02 22:07
suss26-Mar-02 22:07 
GeneralRe: bitmap on static control Pin
Rickard Andersson2026-Mar-02 23:12
Rickard Andersson2026-Mar-02 23:12 
QuestionBitmap pixel? Pin
26-Mar-02 21:38
suss26-Mar-02 21:38 

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.