Re: Maximise from another applications
- From: "David Ching" <dc@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 7 Dec 2007 11:36:32 -0800
"jmarc" <jmarc@xxxxxxxxxxxxxxxxxxxxx> wrote in message
news:x4g6j.41421$Zn.32932@xxxxxxxxxxx
Maybe ShellExecuteEx() might not the right
tool I need.
I would just find a process 'already' running
for a long time, then, on an appropriate cue,
just getting em not minimized. The user
will put back minimized at will.
Assume the process who will do this job,
is surely not the one who start the target
process.
Yes, from what you wrote in the first place, I don't think you are
interested in starting the process. But are you interested in restoring
(un-minimizing) ALL the windows of a given process? If so, you can use the
ToolHelp library to iterate running processes and get the .exe name
associated with the process id. Then follow Joe's idea of using EnumWindows
and calling GetWindowThreadProcessId() for each one, then looking up the
process name for the process id using Toolhelp.
It would certainly be easier to just go by the window classname or title
text, but that is not as accurate.
-- David
.
- References:
- Maximise from another applications
- From: jmarc
- Re: Maximise from another applications
- From: Tom Serface
- Re: Maximise from another applications
- From: Joseph M . Newcomer
- Re: Maximise from another applications
- From: Tom Serface
- Re: Maximise from another applications
- From: jmarc
- Re: Maximise from another applications
- From: Tom Serface
- Re: Maximise from another applications
- From: jmarc
- Maximise from another applications
- Prev by Date: Re: Wizard in MFC !! (How do I design one?)
- Next by Date: Re: is this MFC? + Book recommendations?
- Previous by thread: Re: Maximise from another applications
- Next by thread: Re: Maximise from another applications
- Index(es):