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

C / C++ / MFC

 
GeneralRe: Disable Events of HTMLElement Pin
vikrant kpr3-Mar-09 10:21
vikrant kpr3-Mar-09 10:21 
GeneralRe: Disable Events of HTMLElement Pin
Perisic, Aleksandar3-Mar-09 10:38
Perisic, Aleksandar3-Mar-09 10:38 
GeneralRe: Disable Events of HTMLElement Pin
vikrant kpr3-Mar-09 10:53
vikrant kpr3-Mar-09 10:53 
GeneralRe: Disable Events of HTMLElement Pin
vikrant kpr3-Mar-09 11:07
vikrant kpr3-Mar-09 11:07 
GeneralRe: Disable Events of HTMLElement Pin
Perisic, Aleksandar3-Mar-09 11:11
Perisic, Aleksandar3-Mar-09 11:11 
QuestionDriving a 3rd-party app from my app. Pin
davidjaybrown3-Mar-09 5:46
davidjaybrown3-Mar-09 5:46 
AnswerRe: Driving a 3rd-party app from my app. Pin
Stuart Dootson3-Mar-09 6:19
professionalStuart Dootson3-Mar-09 6:19 
GeneralRe: Driving a 3rd-party app from my app. Pin
davidjaybrown3-Mar-09 7:45
davidjaybrown3-Mar-09 7:45 
Yes, most of these dialogs ARE modal. But I can stuff my whole begin-to-end keysequence
into a single SendInput sequence, and the main loop will forward subsequent keystrokes to any newly created
modal child dialog. For example, If I stuff SendInput with "{ALT}FGMyFile.xyz{ENTER}", then:

a) the sequence {ALT}FG Executes the FILE --> Generate File modal dialog. (which *IS* Modal)
b) then, within that dialog, the keys "MyFile.xyz" get stuffed into the first (default)
output filename CEditbox
c) and the final {ENTER} closes that modal dialog (because the OK button has the WantReturn property), and thus
the dirty deed is accomplished.

So, I get success when I do SENDINPUT of "{ALT}FGMyFile.xyz{ENTER}"

But I get failure when I do SENDINPUT of "{ALT}FGMyFile.xyz"
followed by another SENDINPUT of "{ENTER}"

The second SENDINPUT still tries to send to the main ABF hwTARGET, but its fubar'd
by the Modal dialog, which now has input focus, but which isnt catching any further input from my app(???).
Evidently, the Generate-File modal dialog isnt a child-window of the main app window. (but of something else instead???).
It doesnt appear after all my EnumerateChildWindows callbacks.

My questions really are. Are these dialogs *really* still children of the main window, (but maybe they're
hidden somehow, and not subject to EnumerateChildWindows?) Maybe I can find them through more painfull digging...
-or- are the modal dialogs NOT child windows of the main window, but of the main application thread instead.
And is there a way to enumerate *all* child windows of the main thread(s)? And if I find them, can I
send them direct KEY messages. (like {ESCAPE}s, just to close em)

p.s. Yes, I know a SETFOCUS followed by a targetless SENDKEYS is very sloppy, especially if the user decides
to do some multitasking, or if there are other apps around which steal input focus. Id much rather send directed
WM_KEYDN/UP messages, but I havent been able to make that work, especially since there's no security relationship
between my app and the ABF app.

All I want to do is be able to detect if there are any active modal ABF child windows, and send them {ESCAPE}
messages to close em down before my app can try its own commands.

Thanks for the response though. I learn tons from every reply.

-Dave
GeneralRe: Driving a 3rd-party app from my app. Pin
Stuart Dootson3-Mar-09 8:05
professionalStuart Dootson3-Mar-09 8:05 
AnswerRe: Driving a 3rd-party app from my app. Pin
vikrant kpr3-Mar-09 6:30
vikrant kpr3-Mar-09 6:30 
GeneralRe: Driving a 3rd-party app from my app. Pin
davidjaybrown3-Mar-09 8:10
davidjaybrown3-Mar-09 8:10 
GeneralRe: Driving a 3rd-party app from my app. Pin
vikrant kpr3-Mar-09 8:24
vikrant kpr3-Mar-09 8:24 
QuestionHow can I get the VISIBLE part of the client area in a window? Pin
Joseph Marzbani3-Mar-09 4:52
Joseph Marzbani3-Mar-09 4:52 
AnswerRe: How can I get the VISIBLE part of the client area in a window? Pin
Code-o-mat3-Mar-09 5:13
Code-o-mat3-Mar-09 5:13 
GeneralRe: How can I get the VISIBLE part of the client area in a window? Pin
Joseph Marzbani3-Mar-09 8:21
Joseph Marzbani3-Mar-09 8:21 
AnswerRe: How can I get the VISIBLE part of the client area in a window? Pin
Stuart Dootson3-Mar-09 6:14
professionalStuart Dootson3-Mar-09 6:14 
GeneralRe: How can I get the VISIBLE part of the client area in a window? Pin
Joseph Marzbani3-Mar-09 8:25
Joseph Marzbani3-Mar-09 8:25 
GeneralRe: How can I get the VISIBLE part of the client area in a window? Pin
Stuart Dootson3-Mar-09 8:39
professionalStuart Dootson3-Mar-09 8:39 
GeneralRe: How can I get the VISIBLE part of the client area in a window? Pin
Iain Clarke, Warrior Programmer3-Mar-09 22:43
Iain Clarke, Warrior Programmer3-Mar-09 22:43 
GeneralRe: How can I get the VISIBLE part of the client area in a window? Pin
Stuart Dootson3-Mar-09 22:48
professionalStuart Dootson3-Mar-09 22:48 
Questionproblems about Template using Pin
jeansea3-Mar-09 4:02
jeansea3-Mar-09 4:02 
AnswerRe: problems about Template using Pin
Cedric Moonen3-Mar-09 4:08
Cedric Moonen3-Mar-09 4:08 
GeneralRe: problems about Template using Pin
jeansea3-Mar-09 4:15
jeansea3-Mar-09 4:15 
GeneralRe: problems about Template using Pin
Cedric Moonen3-Mar-09 4:21
Cedric Moonen3-Mar-09 4:21 
GeneralRe: problems about Template using Pin
jeansea3-Mar-09 5:02
jeansea3-Mar-09 5:02 

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.