Open
CloseCode:::ShellExecute(NULL, "open", "Calc.exe", "", "", SW_SHOWNORMAL);
Code:CWnd *window = CWnd::FindWindow(NULL, LPCTSTR("Calculator")); if (window != NULL) { window->PostMessage(WM_CLOSE); }
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 15 of 43
Threaded View
|
Click Here to Expand Forum to Full Width |