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

C / C++ / MFC

 
GeneralRe: Creating shortcuts Pin
22491728-Mar-04 19:19
22491728-Mar-04 19:19 
GeneralRe: Creating shortcuts Pin
Milton Karimbekallil28-Mar-04 19:58
Milton Karimbekallil28-Mar-04 19:58 
GeneralRe: Creating shortcuts Pin
Vini Deep28-Mar-04 20:37
Vini Deep28-Mar-04 20:37 
QuestionRe[2]: Creating shortcuts Pin
sysop@HAL9K.com4-Feb-10 4:55
sysop@HAL9K.com4-Feb-10 4:55 
GeneralPrinting question Pin
Peter Mares28-Mar-04 18:26
Peter Mares28-Mar-04 18:26 
GeneralRe: Printing question Pin
Steve S29-Mar-04 0:34
Steve S29-Mar-04 0:34 
QuestionHow to draw a filled triangle Pin
vamsy krishna28-Mar-04 16:15
vamsy krishna28-Mar-04 16:15 
AnswerRe: How to draw a filled triangle Pin
Christian Graus28-Mar-04 16:27
protectorChristian Graus28-Mar-04 16:27 
GeneralRe: How to draw a filled triangle Pin
vamsy krishna28-Mar-04 16:49
vamsy krishna28-Mar-04 16:49 
GeneralRe: How to draw a filled triangle Pin
Christian Graus28-Mar-04 16:52
protectorChristian Graus28-Mar-04 16:52 
GeneralRe: How to draw a filled triangle Pin
Rick York28-Mar-04 20:06
mveRick York28-Mar-04 20:06 
GeneralRe: How to draw a filled triangle Pin
Steve S29-Mar-04 0:36
Steve S29-Mar-04 0:36 
GeneralRe: How to draw a filled triangle Pin
Antony M Kancidrowski29-Mar-04 2:26
Antony M Kancidrowski29-Mar-04 2:26 
GeneralRe: How to draw a filled triangle Pin
Christian Graus29-Mar-04 9:55
protectorChristian Graus29-Mar-04 9:55 
Generalending strings Pin
kfaday28-Mar-04 15:39
kfaday28-Mar-04 15:39 
GeneralRe: ending strings Pin
Christian Graus28-Mar-04 16:28
protectorChristian Graus28-Mar-04 16:28 
GeneralRecursion in Visual C++ Pin
Iceberg7628-Mar-04 15:34
Iceberg7628-Mar-04 15:34 
GeneralRe: Recursion in Visual C++ Pin
kfaday28-Mar-04 15:45
kfaday28-Mar-04 15:45 
GeneralRe: Recursion in Visual C++ Pin
Steve S29-Mar-04 0:38
Steve S29-Mar-04 0:38 
GeneralRe: Recursion in Visual C++ Pin
oOomen29-Mar-04 5:36
oOomen29-Mar-04 5:36 
GeneralRe: Recursion in Visual C++ Pin
David Crow29-Mar-04 3:27
David Crow29-Mar-04 3:27 
GeneralEnumerating dialog controls Pin
codecharmer28-Mar-04 14:38
codecharmer28-Mar-04 14:38 
Ok, after HOURS - I'm not going to tell you how many - of trying, I'm looking for help!!

I'm trying to write code to snoop at data in textboxes of an accounting application window for my application to automate some other processes.

From the master application window, I EnumChildWindows with my callback function and find the Dialog Window which contains the controls for the data I want. There are NO other child windows.

I can successfully talk to this window with WM_GetText and WM_GetTextLength and verify the window name.

Next I try to GetNextDlgTabItem ( found_window_handle, 0, 0) and it returns the same window handle I passed to it. If I attempt GetNextDlgTabItem ( found_window_handle, 0, 1) it always returns 0. (just changing previous / next)

I then tried to CHEAT and setup a procedure to use GetDlgItem ( found_window_handle, control_id ) - my cheat is to loop for every number between 0 and 99999999 for the control_id. Surprisingly every attempt returns ZERO.

I was reading about Windows Hooks and it stated sometimes messages can be missed because Windows passes them directly to the control rather than the parent dialog window.

If this is the case, Windows must have a table of controls! How do I access this table?!

IF I had not seen this done, I might have given up, but SnagIT -> Object -> Text capture can not only grab the present value of a dialog text object, but it also returns the programmers name for the object. I've also played with password discovery tools that reviel the value hidden behind a password character "*".

I think the solution is hidden somewhere in messaging the parent dialog window, or in discovering the control table or DLGTEMPLATE at runtime. But, the only starting point I have is the Handle of the Dialog Window itself.

Any suggestions, or better, anyone actually done this?!
GeneralRe: Enumerating dialog controls Pin
wb28-Mar-04 18:29
wb28-Mar-04 18:29 
GeneralRe: Enumerating dialog controls Pin
codecharmer29-Mar-04 3:43
codecharmer29-Mar-04 3:43 
GeneralHelp with to resize some frames Pin
Victor Nikol28-Mar-04 14:37
Victor Nikol28-Mar-04 14:37 

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.