Click here to Skip to main content
15,906,574 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Regarding thumb recognition Pin
Maximilien7-Aug-05 5:16
Maximilien7-Aug-05 5:16 
General2 vc7 problems..and 1 question Pin
YaronNir7-Aug-05 4:38
YaronNir7-Aug-05 4:38 
GeneralRe: 2 vc7 problems..and 1 question Pin
toxcct7-Aug-05 8:43
toxcct7-Aug-05 8:43 
GeneralRe: 2 vc7 problems..and 1 question Pin
YaronNir7-Aug-05 20:08
YaronNir7-Aug-05 20:08 
Generaldbf odbc Pin
_tasleem7-Aug-05 3:23
_tasleem7-Aug-05 3:23 
GeneralRe: dbf odbc Pin
David Crow8-Aug-05 8:37
David Crow8-Aug-05 8:37 
GeneralRe: dbf odbc Pin
_tasleem10-Aug-05 12:28
_tasleem10-Aug-05 12:28 
GeneralWS_TABSTOP and EDIT controls Pin
Luther Baker7-Aug-05 0:04
Luther Baker7-Aug-05 0:04 
I am building a window in code (not via RC or dialog templates) and attaching EDIT controls to it. Upon completion, there may be 10 windows with 25 EDIT controls each.

Within each window (one displayed at a given time) I'd like to TAB between the EDIT controls. Unfortunately, the only examples I can find on the net (http://blogs.msdn.com/oldnewthing/archive/2003/10/21/55384.aspx)
want me to change my message loop to something like this:

if (IsDialogMessage(hwnd, &msg)) {
/* Already handled by dialog manager */
} else {
TranslateMessage(&msg);
DispatchMessage(&msg);
}

My message loop is in a completely different C++ file/class. For this to work as described, I'd need to pass the application (or make it global) to every single EDIT control - or at least, find away to keep updating the "hwnd" used in the IsDialogMessage method above every time focus changed since that method works on a specific EDIT control at a time ...

Is that really necessary? I've built the EDIT controls with WS_TABSTOP style, and naturally, they are eating the TAB key. I can manually catch and GetNextDlgTabItem myself, but I wasn't sure if that was normal.

Is there a cleaner way I've overlooked?

Many thanks,

-Luther
GeneralRe: WS_TABSTOP and EDIT controls Pin
Anonymous7-Aug-05 2:55
Anonymous7-Aug-05 2:55 
GeneralRe: WS_TABSTOP and EDIT controls Pin
Luther Baker7-Aug-05 7:36
Luther Baker7-Aug-05 7:36 
GeneralRe: WS_TABSTOP and EDIT controls Pin
benft12-Oct-05 14:06
benft12-Oct-05 14:06 
GeneralError during compiler upgrade Pin
AnkurGupta_19816-Aug-05 22:16
AnkurGupta_19816-Aug-05 22:16 
GeneralRe: Error during compiler upgrade Pin
toxcct6-Aug-05 22:59
toxcct6-Aug-05 22:59 
Generalcalling int 21h from a __asm block of code Pin
CorvetteZ06066-Aug-05 21:54
CorvetteZ06066-Aug-05 21:54 
GeneralRe: calling int 21h from a __asm block of code Pin
John R. Shaw6-Aug-05 23:28
John R. Shaw6-Aug-05 23:28 
GeneralRe: calling int 21h from a __asm block of code Pin
CorvetteZ06067-Aug-05 3:37
CorvetteZ06067-Aug-05 3:37 
GeneralRe: calling int 21h from a __asm block of code Pin
John R. Shaw8-Aug-05 18:39
John R. Shaw8-Aug-05 18:39 
GeneralRe: calling int 21h from a __asm block of code Pin
Alexander M.,7-Aug-05 4:38
Alexander M.,7-Aug-05 4:38 
GeneralRe: calling int 21h from a __asm block of code Pin
Gary R. Wheeler7-Aug-05 4:52
Gary R. Wheeler7-Aug-05 4:52 
GeneralRe: calling int 21h from a __asm block of code Pin
CorvetteZ06067-Aug-05 6:08
CorvetteZ06067-Aug-05 6:08 
GeneralRe: calling int 21h from a __asm block of code Pin
David Crow8-Aug-05 8:42
David Crow8-Aug-05 8:42 
GeneralRe: calling int 21h from a __asm block of code Pin
Gary R. Wheeler8-Aug-05 12:56
Gary R. Wheeler8-Aug-05 12:56 
GeneralFailing Debug Assertion in DoModal() Pin
gremlinimp6-Aug-05 19:20
gremlinimp6-Aug-05 19:20 
GeneralRe: Failing Debug Assertion in DoModal() Pin
Jose Lamas Rios6-Aug-05 20:23
Jose Lamas Rios6-Aug-05 20:23 
GeneralRe: Failing Debug Assertion in DoModal() Pin
gremlinimp6-Aug-05 20:47
gremlinimp6-Aug-05 20:47 

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.