how to let a gui program run in background?
-
hello, i want you help, how can i let a windows gui program run in background, don't tell me use ShowWindow(SW_HIDE), i have tried that one, it's not a good method. There's such a function, SetForegroundWindow(), can i use SetBackgourndWindow... And several monthes ago, when i telnet to another pc, and run Notepad.exe in that computer, i found Notepad.exe is really in that computer's background, i want that effect also, can anybody help me. Thanks very much.
-
hello, i want you help, how can i let a windows gui program run in background, don't tell me use ShowWindow(SW_HIDE), i have tried that one, it's not a good method. There's such a function, SetForegroundWindow(), can i use SetBackgourndWindow... And several monthes ago, when i telnet to another pc, and run Notepad.exe in that computer, i found Notepad.exe is really in that computer's background, i want that effect also, can anybody help me. Thanks very much.
-
hello, i want you help, how can i let a windows gui program run in background, don't tell me use ShowWindow(SW_HIDE), i have tried that one, it's not a good method. There's such a function, SetForegroundWindow(), can i use SetBackgourndWindow... And several monthes ago, when i telnet to another pc, and run Notepad.exe in that computer, i found Notepad.exe is really in that computer's background, i want that effect also, can anybody help me. Thanks very much.
You could launch a GUI app from a windows service application using CreateProcess(). I suppose the telnet session did that with notepad. Edit: Also you could use ShowWindow(SW_HIDE) :-D
-
hello, i want you help, how can i let a windows gui program run in background, don't tell me use ShowWindow(SW_HIDE), i have tried that one, it's not a good method. There's such a function, SetForegroundWindow(), can i use SetBackgourndWindow... And several monthes ago, when i telnet to another pc, and run Notepad.exe in that computer, i found Notepad.exe is really in that computer's background, i want that effect also, can anybody help me. Thanks very much.
ikohl wrote:
...how can i let a windows gui program run in background...
What exactly do you mean by this? Unlike Unix, Windows does not have the capability to run processes in the background. They are either running or they are not. A window's Z-order has no bearing on whether its process is running or not.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb