tags:

views:

38

answers:

1

Hi,

I am trying to get showstate of a window.

I know that I can maximize, minimize, or close a window by ShowWindow API in c# or c++. How do I get ShowState of a window?

+2  A: 

In C++:

WINDOWPLACEMENT wp;
GetWindowPlacement( hWnd, &wp );

UINT showCmd = wp.showCmd;
Goz