Click here to Skip to main content
15,902,832 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: What does "^" do? Pin
Mark Salsbery29-Aug-07 7:49
Mark Salsbery29-Aug-07 7:49 
AnswerRe: What does "^" do? Pin
Programm3r28-Aug-07 22:51
Programm3r28-Aug-07 22:51 
AnswerRe: What does "^" do? Pin
Hamid_RT29-Aug-07 1:50
Hamid_RT29-Aug-07 1:50 
QuestionSetting System Volume Pin
Programm3r28-Aug-07 22:07
Programm3r28-Aug-07 22:07 
AnswerRe: Setting System Volume Pin
Bhavesh Bagadiya28-Aug-07 23:06
Bhavesh Bagadiya28-Aug-07 23:06 
AnswerRe: Setting System Volume Pin
Hamid_RT29-Aug-07 2:02
Hamid_RT29-Aug-07 2:02 
QuestionC++ MFC Problem Pin
Bhavesh Bagadiya28-Aug-07 21:25
Bhavesh Bagadiya28-Aug-07 21:25 
AnswerRe: C++ MFC Problem Pin
Jason Teagle28-Aug-07 22:44
Jason Teagle28-Aug-07 22:44 
If you make your text boxes of a class you have derived from CEdit, then you can handle the WM_SETFOCUS message to know when a new edit box has gained focus after the user pressed tab.

Since you now know which edit got the focus, you can use GetWindowRect() (followed by ScreenToClient() on the window that holds the edit boxes), and compare this to your window's client rect - *after* the current scroll position has been used to offset the top and bottom of the window's rect. This will tell you if the new edit control is visible; if it is not, you can determine which way to scroll to bring it visible. This can be achieved by calling SetScrollPos() on the scroll bar.

I'm assuming you are comfortable with moving the edit controls to simulate being scrolled?


GeneralRe: C++ MFC Problem Pin
Bhavesh Bagadiya28-Aug-07 22:53
Bhavesh Bagadiya28-Aug-07 22:53 
QuestionIID_ITextStoreAnchor? Pin
josip cagalj28-Aug-07 21:23
josip cagalj28-Aug-07 21:23 
AnswerRe: IID_ITextStoreAnchor? Pin
Roger Broomfield28-Aug-07 21:35
Roger Broomfield28-Aug-07 21:35 
AnswerRe: IID_ITextStoreAnchor? Pin
josip cagalj28-Aug-07 22:43
josip cagalj28-Aug-07 22:43 
QuestionHow to catch select item event in ListCtrl Pin
Atul2328-Aug-07 20:58
Atul2328-Aug-07 20:58 
AnswerRe: How to catch select item event in ListCtrl Pin
Nibu babu thomas28-Aug-07 21:15
Nibu babu thomas28-Aug-07 21:15 
GeneralRe: How to catch select item event in ListCtrl Pin
Atul2328-Aug-07 23:38
Atul2328-Aug-07 23:38 
GeneralRe: How to catch select item event in ListCtrl Pin
Nibu babu thomas28-Aug-07 23:50
Nibu babu thomas28-Aug-07 23:50 
GeneralRe: How to catch select item event in ListCtrl Pin
Atul2329-Aug-07 0:56
Atul2329-Aug-07 0:56 
GeneralRe: How to catch select item event in ListCtrl Pin
Nibu babu thomas29-Aug-07 1:04
Nibu babu thomas29-Aug-07 1:04 
GeneralRe: How to catch select item event in ListCtrl Pin
Atul2329-Aug-07 1:46
Atul2329-Aug-07 1:46 
GeneralRe: How to catch select item event in ListCtrl Pin
Nibu babu thomas29-Aug-07 2:26
Nibu babu thomas29-Aug-07 2:26 
GeneralRe: How to catch select item event in ListCtrl Pin
Atul2330-Aug-07 23:35
Atul2330-Aug-07 23:35 
QuestionSource Control VS2005 Pin
Anilkumar K V28-Aug-07 20:46
Anilkumar K V28-Aug-07 20:46 
AnswerRe: Source Control VS2005 Pin
Cedric Moonen28-Aug-07 21:05
Cedric Moonen28-Aug-07 21:05 
GeneralRe: Source Control VS2005 Pin
Anilkumar K V29-Aug-07 1:48
Anilkumar K V29-Aug-07 1:48 
QuestionCFile used together with Lined List Pin
Manoj Srivastava28-Aug-07 17:28
Manoj Srivastava28-Aug-07 17:28 

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.