Link to home
Start Free TrialLog in
Avatar of tariq6000
tariq6000

asked on

minimise the application

Hi Experts,
I want to minimise the outlook application whenever i lauch my application.
Avatar of Jase-Coder
Jase-Coder

Try something lke

      HWND h =  FindWindow(NULL, L"Inbox - Microsoft Outlook");

      if(h != NULL)
            SendMessage(h, WM_SYSCOMMAND, SC_MINIMIZE, NULL);
      else
            std::cout << "Cannot Find the window." << std::endl;
ASKER CERTIFIED SOLUTION
Avatar of Jase-Coder
Jase-Coder

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
just add the code from the second comment to your applications startup code.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tariq6000

ASKER

Hi,
I have capture the handle of running application.How can i minimise the application through application handle.

I used EnumProcesses(),EnumProcessModules() function.
SOLUTION
Avatar of DanRollins
DanRollins
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Forced accept.

Computer101
EE Admin