Link to home
Create AccountLog in
Avatar of davinder101
davinder101

asked on

Minimize the windows explorer exe into system tray

Hi Experts

            I want to minimize the windows explorer exe in system tray when my system start up.Please tell me the way to do so.Source code will be helpful.


Thanks in Advance
Avatar of jdwheeler1981
jdwheeler1981

The solution to your problem may lie in the msconfig utility.  Go to run and type msconfig and delete all unwanted startup and services from running.  Should fix your problem.
Avatar of AndyAinscow
>>I want to minimize the windows explorer exe in system tray

Is that an option in explorer?  (It isn't in mine).  If not then you can't do it.
I don't think it is possible. At least not in the default Windows' configuration.
You may replace your shell with a different one, this is usually a thing like "TweakUI", or something similar.

Regards.
Avatar of davinder101

ASKER

Problem is If I have a dialog based MFC application I will able to Minimize it in the system tray by using the following code:

                NOTIFYICONDATA niData;
      niData.cbSize = sizeof(NOTIFYICONDATA);
      niData.hWnd = m_hWnd;
      niData.uID = 1;
      niData.uCallbackMessage = WM_TRAY_ICON_NOTIFY_MESSAGE;
      niData.hIcon = m_hIcon;
      niData.uFlags = NIF_MESSAGE | NIF_ICON | NIF_TIP;
      wcscpy_s(niData.szTip, 127, _T("Tray Me !"));

      Shell_NotifyIcon(NIM_ADD, &niData);

In the same way I want to open the windows explorer on startup through program and  when user closes it it  will minimize into system tray. Is it possible programatically.

Thanks In Advance
SOLUTION
Avatar of AndyAinscow
AndyAinscow
Flag of Switzerland image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
ASKER CERTIFIED SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account