A Google Csoportok már nem támogatja az új Usenet-bejegyzéseket és -feliratkozásokat. A korábbi tartalmak továbbra is megtekinthetők.

[WinApi] How to raise program from background?

6 megtekintés
Ugrás az első olvasatlan üzenetre

Szyk

olvasatlan,
2011. márc. 11. 15:11:502011. 03. 11.
Hi

I want to write text editor. So at the very begining I must send command
line parameters to running program in the case it is already running. I
do this by local socket. But I have problem with raising my app from
background to foreground and set focus on it. I write my app under
Windows 7 32bit and use Qt library. There are functions:
QWidget::raise() and QWidget::activateWindow() which should do what I
want, but they only cause blinking app icon on task bar. I asked about
this at Qt Centre, and they give me WinApi solution, but it does not
work in the case when program is NOT minimized.

How to raise my program from background to foreground with WinApi?


thanks
Szyk

0 új üzenet