Click here to Skip to main content
15,917,928 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCDaodatabase Pin
Anonymous18-Jul-04 18:17
Anonymous18-Jul-04 18:17 
GeneralRe: CDaodatabase Pin
vikram attiganal18-Jul-04 19:32
vikram attiganal18-Jul-04 19:32 
GeneralRe: CDaodatabase Pin
Anonymous18-Jul-04 21:07
Anonymous18-Jul-04 21:07 
GeneralRe: CDaodatabase Pin
Anonymous18-Jul-04 22:25
Anonymous18-Jul-04 22:25 
Questionhow to highlight a menu item when its position (x and y coordinate) is known Pin
5iveboy18-Jul-04 16:05
5iveboy18-Jul-04 16:05 
GeneralSetCursor outside client area Pin
5iveboy18-Jul-04 15:20
5iveboy18-Jul-04 15:20 
GeneralTabbing between child dialogs on a master form Pin
#realJSOP18-Jul-04 15:17
professional#realJSOP18-Jul-04 15:17 
GeneralRe: Tabbing between child dialogs on a master form Pin
Alexander Wiseman18-Jul-04 15:36
Alexander Wiseman18-Jul-04 15:36 
Hi,

I think the following procedure should work for what you are trying to do:

1) Override the WM_KEYUP message
2) In the message handler, check if the key pressed is the TAB key
3) If the key pressed is the TAB key, check which control currently has the focus (GetFocus should do the trick)
4) If the control which currently has the focus is the last control on a child dialog, set the focus to the first control on the next child dialog (SetFocus) and then return from the message handler without calling the default WM_KEYUP handler.
5) If the control which currently has the focus is not the last control on a child dialog, return after calling the default handler.

If you need me to provide sample code for this, just ask.

Hope that helps!

Sincerely,
Alexander Wiseman

Est melior esse quam videri
It is better to be than to seem
GeneralRe: Tabbing between child dialogs on a master form Pin
PJ Arends18-Jul-04 17:02
professionalPJ Arends18-Jul-04 17:02 
GeneralRe: Tabbing between child dialogs on a master form Pin
Alexander Wiseman19-Jul-04 3:24
Alexander Wiseman19-Jul-04 3:24 
GeneralRe: Tabbing between child dialogs on a master form Pin
Michael Dunn18-Jul-04 18:22
sitebuilderMichael Dunn18-Jul-04 18:22 
GeneralRe: Tabbing between child dialogs on a master form Pin
#realJSOP19-Jul-04 0:03
professional#realJSOP19-Jul-04 0:03 
Generalproblem with reading compound dataset without pre-defined data structure Pin
Fiona Chen18-Jul-04 13:55
Fiona Chen18-Jul-04 13:55 
GeneralRe: problem with reading compound dataset without pre-defined data structure Pin
Alexander Wiseman19-Jul-04 4:00
Alexander Wiseman19-Jul-04 4:00 
GeneralRe: problem with reading compound dataset without pre-defined data structure Pin
Fiona Chen19-Jul-04 13:32
Fiona Chen19-Jul-04 13:32 
GeneralRe: problem with reading compound dataset without pre-defined data structure Pin
Alexander Wiseman21-Jul-04 4:56
Alexander Wiseman21-Jul-04 4:56 
GeneralRe: problem with reading compound dataset without pre-defined data structure Pin
Fiona Chen21-Jul-04 14:33
Fiona Chen21-Jul-04 14:33 
GeneralSome basic C++ question... yes, I'm a newbie - sorry! Pin
drjake18-Jul-04 13:33
drjake18-Jul-04 13:33 
GeneralRe: Some basic C++ question... yes, I'm a newbie - sorry! Pin
valikac18-Jul-04 13:57
valikac18-Jul-04 13:57 
GeneralRe: Some basic C++ question... yes, I'm a newbie - sorry! Pin
Christian Graus18-Jul-04 14:48
protectorChristian Graus18-Jul-04 14:48 
GeneralRe: Some basic C++ question... yes, I'm a newbie - sorry! Pin
bikram singh19-Jul-04 12:52
bikram singh19-Jul-04 12:52 
GeneralRe: Some basic C++ question... yes, I'm a newbie - sorry! Pin
Christian Graus19-Jul-04 13:00
protectorChristian Graus19-Jul-04 13:00 
GeneralRe: Some basic C++ question... yes, I'm a newbie - sorry! Pin
V.18-Jul-04 21:28
professionalV.18-Jul-04 21:28 
GeneralMSFlexGrid Control Problem Pin
Naveed Shoaib18-Jul-04 12:56
Naveed Shoaib18-Jul-04 12:56 
GeneralRe: MSFlexGrid Control Problem Pin
Toni7818-Jul-04 16:23
Toni7818-Jul-04 16:23 

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.