Fog Creek Software
Discussion Board




Close option at wrong location??

Hi,

Being Windows user for years now, I am so much used to right clicking a program's task bar window and selecting the last option i.e.'Close' _BLINDLY_ to close the application.

But lately some apps doesn't follow it. Mainly MMC and CHM files.

So whenever I go to Computer Management and try to close it, I almost always end up opening Help Topics. Sames goes with the any documentation CHM files.

I wonder why they needed to added that help topics as the last option? WHYYYYYYYYYYYYYYYY?

Regards,
JD

JD
Friday, June 06, 2003

That question is something I ask myself any time I deal with MMC. ;-)

Chris Tavares
Friday, June 06, 2003

me three....

Jason
Friday, June 06, 2003

It is damned annoying! Applications that add an "Always on Top" menu item disrupt it too.

John Topley (www.johntopley.com
Friday, June 06, 2003

Not to mention IE, the worst focus stealer ever.

Thomas Eyde
Friday, June 06, 2003

I just worked out how to fix this (it's a PITA for me, too). The following code will unbollix the menus of all running windows:

static BOOL CALLBACK EnumWindowProc(HWND hWnd,
    LPARAM lParam)
{
    GetSystemMenu(hWnd,TRUE);
    return TRUE;
}

int WINAPI WinMain(HINSTANCE hInstance,
    HINSTANCE hPrevInstance,LPSTR lpCmdLine,
    int nShowCmd)
{
    EnumWindows(&EnumWindowProc,0);
    return 0;
}

And I was worried this was going to be, like, SOOO hard...

I'm going to tart it up with a system hook or a timer (so it'll do all windows always) and an INI file so it won't mess about with windows that you don't want it to. I will post again when I am done. Thank you to all who posted for inspiring me to write this :)

Tom
Saturday, June 07, 2003

See here:

http://www.tomseddon.plus.com/uniformenu/

Tom
Saturday, June 07, 2003

*  Recent Topics

*  Fog Creek Home