S
Steve Ricketts
I'd like to start a process and then change the window location and size at
various times during its life in a .Net (sans user32.dll). I can get the
window handle easy enough but I don't know what to do next to replace the
GetWindowRect and MoveWindow DllImports.
mediaPlayer.FileName = "mplayer";
mediaPlayer.Start();
mediaPlayer.WaitForInputIdle();
IntPtr hWin = mediaPlayer.MainWindowHandle;
GetWindowRect(hWin, out rect); // <- what is
..Net equivalent?
MoveWindow(hWin, left, top, width, height, true); // <- what is .Net
equivalent?
sr
various times during its life in a .Net (sans user32.dll). I can get the
window handle easy enough but I don't know what to do next to replace the
GetWindowRect and MoveWindow DllImports.
mediaPlayer.FileName = "mplayer";
mediaPlayer.Start();
mediaPlayer.WaitForInputIdle();
IntPtr hWin = mediaPlayer.MainWindowHandle;
GetWindowRect(hWin, out rect); // <- what is
..Net equivalent?
MoveWindow(hWin, left, top, width, height, true); // <- what is .Net
equivalent?
sr