HI SetFocus()
Regards Max ----- Original Message ----- From: "Stanimir Jordanov" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 05, 2004 5:59 PM Subject: Re: [msvc] How to grab user's input and focus > > >>I have a loader application which starts a perl script in a hidden > >>window (do db backup an temporary files clear), wait the script which > >>is a console app to finish, then start my main MFC app. I'm using > >>Windows XP. The script hidden window exec has a strange side effect, > >>my MFC app doesn't have the user focus and is not the active process > >>when loads. > >>How can I get them? Where to get them - inside the MFC app or add some > >>code to the loader? Here is the main part of my loader: > > > > > > Why *hide* the console app window? Try specifying CREATE_NO_WINDOW so that > > no console window is created in the first place, and see if it solves the > > focus problem. > > > No, it didn't solve the problem. It's really weird. On my computer it is > always ok. But on every other computer the effect is my main app > silently appears in the task bar without getting the control and focus. > How can I grab them from within my app? > > Stanimir Jordanov > > _______________________________________________ > msvc mailing list > [EMAIL PROTECTED] > See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for subscription changes, and list archive. > > _______________________________________________ msvc mailing list [EMAIL PROTECTED] See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for subscription changes, and list archive.
