Click here to Skip to main content
16,004,833 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
Thank You, Vikrant Kpr.

I know SendInput is sloppy, and dangerous when anything can pop up during my sendkeys
and steal input focus. I hadnt been able to make direct Send/PostMessage(s) work.
I presumed that it was because NT security was maybe blocking me.

I *DO* deeply appreciate you showing me how to cast target dialog bits into
my own object-type pointers. I cant wait to try this. This was a problem
I REALLY needed to solve, and it didnt appear anywhere in my many books. And
I didnt find a simple example to mimic from any CodeProject search outputs.

Thanks again.. 8-)

About sending std IDOK/IDCANCEL/IDwhateber messages... My problem (again), is that I
cant find their HWNDs. When I send to the parent window, Once the dialog has
initialized (via DoModal) perhaps, and any queued messages from the main window
get forwarded to the new child dialog, I dont know how to identify it's HWND, nor
its thread. So I cant send it anything.

All of my problem comes down to 'how do I find the main thread's topmost window?'
Can I find a way to enumerate all of ABF's threads, and then enumerate any child
windows of those threads, and then which of those is on top???

And if I can do that, can I send it directed messages (from my foreign application)
((Do I need to attach to the thread first?))

...this is highly tricksy stuff for me... And I dont grok a lot when it comes to
deep windows internals, etc.

Once I get past that last hurdle, I can try out the rest of your suggestions.

Thanks for the reply. Again, it gave me a valuable snippet I was really struggling with.

-Dave
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 
GeneralRe: problems about Template using Pin
Stuart Dootson3-Mar-09 4:24
professionalStuart Dootson3-Mar-09 4:24 
GeneralRe: problems about Template using Pin
jeansea3-Mar-09 5:08
jeansea3-Mar-09 5:08 
JokeRe: problems about Template using Pin
Stuart Dootson3-Mar-09 6:31
professionalStuart Dootson3-Mar-09 6:31 

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.