Controlling Window State ?
-
Hi All, My following code shows how I am starting a process, in this case it's NotePad. Process^ myProcess; myProcess = Process::Start("Notepad.exe"); How do I then control the Window State - for example, if I want to Minimize the window, how is this achieved ? Pete
-
Hi All, My following code shows how I am starting a process, in this case it's NotePad. Process^ myProcess; myProcess = Process::Start("Notepad.exe"); How do I then control the Window State - for example, if I want to Minimize the window, how is this achieved ? Pete
Use this overload :-
Process^ Start (ProcessStartInfo^ startInfo)
Set theWindowStyle
property of theProcessStartInfo
object toProcessWindowStyle::Minimized
Regards, Nish
Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
Currently working on C++/CLI in Action for Manning Publications. (*Sample chapter available online*) -
Use this overload :-
Process^ Start (ProcessStartInfo^ startInfo)
Set theWindowStyle
property of theProcessStartInfo
object toProcessWindowStyle::Minimized
Regards, Nish
Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
Currently working on C++/CLI in Action for Manning Publications. (*Sample chapter available online*)G'Day Nish, Thanks for that - all sorted out now. Pete