Click here to Skip to main content
15,889,335 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: Help with to resize some frames Pin
Christian Graus28-Mar-04 16:53
protectorChristian Graus28-Mar-04 16:53 
QuestionThe difference between debug and release version? Pin
Indrawati28-Mar-04 14:33
Indrawati28-Mar-04 14:33 
AnswerRe: The difference between debug and release version? Pin
Tim Smith28-Mar-04 14:38
Tim Smith28-Mar-04 14:38 
GeneralBinary file processing Pin
LudaLuda28-Mar-04 13:37
LudaLuda28-Mar-04 13:37 
GeneralRe: Binary file processing Pin
Christian Graus28-Mar-04 14:17
protectorChristian Graus28-Mar-04 14:17 
GeneralRe: Binary file processing Pin
LudaLuda28-Mar-04 14:45
LudaLuda28-Mar-04 14:45 
GeneralRe: Binary file processing Pin
Christian Graus28-Mar-04 14:47
protectorChristian Graus28-Mar-04 14:47 
GeneralRe: Binary file processing Pin
LudaLuda28-Mar-04 14:57
LudaLuda28-Mar-04 14:57 
GeneralRe: Binary file processing Pin
Christian Graus28-Mar-04 15:13
protectorChristian Graus28-Mar-04 15:13 
GeneralRe: Binary file processing Pin
LudaLuda28-Mar-04 15:20
LudaLuda28-Mar-04 15:20 
GeneralMaking a macro Pin
MeterMan28-Mar-04 13:27
MeterMan28-Mar-04 13:27 
GeneralRe: Making a macro Pin
Christian Graus28-Mar-04 14:14
protectorChristian Graus28-Mar-04 14:14 
GeneralRe: Making a macro Pin
SiddharthAtw28-Mar-04 19:52
SiddharthAtw28-Mar-04 19:52 
GeneralRe: Making a macro Pin
MeterMan28-Mar-04 22:00
MeterMan28-Mar-04 22:00 

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.