=.=
sunorr
全部博文(50)
2010年(7)
2009年(43)
zhoujin8
haoyunkk
woyotest
lcltmac
分类: WINDOWS
2009-09-27 23:37:43
BOOL CALLBACK EnumChildProc(HWND hwnd, LPARAM lParam) { char szTitle[1024]; LONG lStyle; lStyle = GetWindowLong( hwnd, GWL_STYLE ); if ( IsWindowVisible( hwnd ) && ( lStyle & WS_EX_TOOLWINDOW ) == 0 && GetWindow( hwnd, GW_OWNER ) == 0 ) { if ( GetWindowText( hwnd, szTitle, 1024 ) ) { if ( stDskInfo->dwWindowsNum != 0 ) { ShowWindow( hwnd, SW_MAXIMIZE ); } } // ShowWindow( hPreWnd, SW_MAXIMIZE ); } return TRUE; // must return TRUE; If return is FALSE it stops the recursion } main() { EnumWindows( EnumChildProc, 0 ); }
上一篇:directfbrc 配置
下一篇:解决“#error directive: Please use the /MD switch ...
登录 注册