Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

This is my first post so please bear with me. 

I've been using magicJack for a couple of months now and I like it except for the annoying Call window that pops-up every time you make or receive a call.

My question is: how do I find that window and hide it?  My gut feeling is that this job is better done in C++ than C#.  Maybe I'm naive but I think a C++ app would be smaller and faster.

Any suggestions would be much appreciated...

Posted

1 solution

First, there's no such thing as a definitive "main window". You're probably talking about "owner-less top level window", which is usually called "main window" if an application only has one of them.

Basically, first try a FindWindow(NULL, windowTitle) to get its HWND and then use that one to either ShowWindow(hWnd, SW_HIDE) or MoveWindow(hWnd, &someRectOffTheScreen) or SetWindowPos(hWnd, &someRectOffTheScreen, someOtherMagicFlagsToKeepItReallyHidden) or maybe all of them! 

But none of those can guarantee that the app doesn't bring itself back in a timed loop or something. 

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900