showwindow

Why do I have to call showWindow on my NSWindowController twice on 10.5?

I've got a subclass of an NSWindowController that I'm using to load a window from a nib and show it on the screen. Below is the code that is called when I want to show the window. On 10.6 when showCustomWindow is called the window is displayed, but on 10.5 this method has to be called twice to get the window to display. -(IBAction)sho...

Controlling other windows from C# app

I'm writing a C# app that will aggregate control of several applications (WMP, Google Earth, etc.). For apps that I am not writing myself, I am launching as a process, so I have their handles (handle = Process.Start("C:\whatever.exe"); is the code, I believe). For it to work smoothly, I need to be able to control the minimized/maximized...

How to restore an application from the SysTray? ShowWindow doesn't help since the Handle=0

Is it possible to restore a 3rd Party application which has been minimized to the SysTray? Calling ShowWindow is fine on apps minimized to the TaskBar but where the app has been minimized to the SysTray it appears its handle gets set to zero, and of course ShowWindow can't find it. ...

Win32 ShowWindow API and WPF

I am writing a desktop application that requires only one instance running, means if there is already running application instance, when another application instance runs, it check and shows actives the running application and exit itself quietly. I can get the running window's hwnd handle, but when I use ShowWindow API to show that wind...

.net Winform with Modal window when Minimized using user32dll.ShowWindow() loses its open modal windows on opening!!

we have a weird requirement where our apps executed in the Sandbox environment are manipulated by some other app. The outer app modifies the visual style of the windows using ShowWindow() of the user32 dll. When a .net app with MODAL windows opened is Minimized and maximized by the Outer app, it loses all the modal windows which were op...

Maximized Window Restores to Full Screen

Using CWnd::ShowWindow(SW_SHOWMAXIMIZED) maximizes my app window as expected. However, when clicking the restore button on the app (or double clicking the title-bar), the restored size is the same size as the maximized window, which is confusing for the user. Using this alternative code has the same problem: WINDOWPLACEMENT wndpl; Get...