日期:2014-05-20  浏览次数:20969 次

请教如何获得隐藏窗体句柄?
有一个Form,首先
Form.Hide();
Form.Visiable=false;

请教     如何获得该窗口句柄?

另外,在C#中,
SW_FORCEMINIMIZE

SW_HIDE

SW_MAXIMIZE

SW_MINIMIZE

SW_RESTORE

SW_SHOW
 
SW_SHOWDEFAULT

SW_SHOWMAXIMIZED

SW_SHOWMINIMIZED

SW_SHOWMINNOACTIVE

SW_SHOWNA

SW_SHOWNOACTIVATE

SW_SHOWNORMAL
对应的数值分别是多少呢?



------解决方案--------------------
Form.Handle ?

SW_HIDE = 0;
SW_SHOWNORMAL = 1;
SW_NORMAL = 1;
SW_SHOWMINIMIZED = 2;
SW_SHOWMAXIMIZED = 3;
SW_MAXIMIZE = 3;
SW_SHOWNOACTIVATE = 4;
SW_SHOW = 5;
SW_MINIMIZE = 6;
SW_SHOWMINNOACTIVE = 7;
SW_SHOWNA = 8;
SW_RESTORE = 9;
SW_SHOWDEFAULT = 10;