Minimizing, Maximizing, and Restoring windows

What Win32 API call should I use to minimize, maximize, and restore windows based on their window handle?
Who is Participating?
Answers2000Connect With a Mentor Commented:
// Maximize
ShowWindow( hWnd, SW_MAXIMIZE ) ;

// Minimize
ShowWindow( hWnd, SW_MINIMIZE ) ;

// Restore
ShowWindow( hWnd, SW_RESTORE ) ;

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.