Click here to Skip to main content
16,006,605 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Still not work...also Pin
Sumit Kapoor7-Jun-04 0:34
Sumit Kapoor7-Jun-04 0:34 
GeneralRe: Still not work...also Pin
Johan Rosengren7-Jun-04 3:26
Johan Rosengren7-Jun-04 3:26 
GeneralRe: Forget ALSO... Pin
Sumit Kapoor7-Jun-04 0:36
Sumit Kapoor7-Jun-04 0:36 
GeneralRe: Forget ALSO... Pin
jmkhael7-Jun-04 4:50
jmkhael7-Jun-04 4:50 
GeneralNavigating through CForimView controls Pin
dart136-Jun-04 23:59
dart136-Jun-04 23:59 
GeneralRe: Navigating through CForimView controls Pin
Johan Rosengren7-Jun-04 6:10
Johan Rosengren7-Jun-04 6:10 
GeneralRe: Navigating through CForimView controls Pin
dart138-Jun-04 1:07
dart138-Jun-04 1:07 
GeneralRe: Navigating through CForimView controls Pin
Johan Rosengren8-Jun-04 1:24
Johan Rosengren8-Jun-04 1:24 
dart13 wrote:
What I want to accomplish is to move focus in one of four directions using arrow keys

I understood that much, and I really think that you should try with accelerators. In the view - where you handle the message - you might want to check what control currently has the focus, and change it according to the pattern you want.

It is a button having the focus when the key is pressed, and therefore the keypress will be sent to the button (actually, the key up message will be sent... to the button the focus was moved to!). Therefore, the most basic place to handle this would be in a CButton-derived class.

But it is not a good way to solve the problem!

If you try handling the focus setting itself, you'll get into all sorts of grief, as changing the focus in a focus-handler (that is, a handler to WM_SETFOCUS) will most probably get you in trouble.

Furthermore, if you handle this from the buttons themselves, you'll have to post messages to the owner anyway, as an individual button will have no knowledge of the other buttons on the view.

So, accelerators!
GeneralPrblm in video capturing Pin
Zeeshan Bilal6-Jun-04 23:32
Zeeshan Bilal6-Jun-04 23:32 
QuestionRetrieving control's original class by its ID? Pin
Daredevil6-Jun-04 23:13
Daredevil6-Jun-04 23:13 
AnswerRe: Retrieving control's original class by its ID? Pin
Andrew Quinn AUS6-Jun-04 23:33
Andrew Quinn AUS6-Jun-04 23:33 
AnswerRe: Retrieving control's original class by its ID? Pin
David Crow7-Jun-04 2:10
David Crow7-Jun-04 2:10 
GeneralCIndexes help required.. Pin
Chris Ulliott6-Jun-04 23:12
Chris Ulliott6-Jun-04 23:12 
Generalcommunication on serial port com Pin
jetournier6-Jun-04 21:57
jetournier6-Jun-04 21:57 
GeneralCreate menu !!! Icon Pin
Qdlaty6-Jun-04 21:48
Qdlaty6-Jun-04 21:48 
GeneralChange Header & Footer when use CHtmlView Pin
MachineMHK6-Jun-04 21:36
MachineMHK6-Jun-04 21:36 
QuestionA simple way to encrypt/decrypt a CString? Pin
anderslundsgard6-Jun-04 21:25
anderslundsgard6-Jun-04 21:25 
AnswerRe: A simple way to encrypt/decrypt a CString? Pin
Brian Delahunty6-Jun-04 21:39
Brian Delahunty6-Jun-04 21:39 
QuestionHow to Close the instance by if i have its HANDLE Pin
Zeeshan Bilal6-Jun-04 20:58
Zeeshan Bilal6-Jun-04 20:58 
GeneralRe: How to Close the instance by if i have its HANDLE Pin
Diddy7-Jun-04 0:46
Diddy7-Jun-04 0:46 
GeneralRe: How to Close the instance by if i have its HANDLE Pin
Anthony_Yio7-Jun-04 1:37
Anthony_Yio7-Jun-04 1:37 
GeneralAccessing folders of remote system Pin
aparajita6-Jun-04 20:58
aparajita6-Jun-04 20:58 
GeneralRe: Accessing folders of remote system Pin
Brian Delahunty6-Jun-04 21:47
Brian Delahunty6-Jun-04 21:47 
GeneralRe: Accessing folders of remote system Pin
aparajita13-Jun-04 21:34
aparajita13-Jun-04 21:34 
GeneralRe: Accessing folders of remote system Pin
David Crow7-Jun-04 2:19
David Crow7-Jun-04 2:19 

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.