window?
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
i want to set at the frount (that window area should not be covered by any other window ) all thoes windows that are apperaing on the desktop one by one.but i could not successed. i am using this code but could not get success. is there any mistake or any other logic to do that plz help.
///////////////////////////////////////////////////
EnumDesktopWindows(NULL,cbEnumWindows1,(LPARAM)( &EnumParam ) );
/////////////////////////////////////////////////////////
EnumWindows( cbEnumWindows1, (LPARAM)( &EnumParam ) );///////////////////////////////////////////////////////// BringWindowToTop(ch_Hwnd); ShowWindowAsync (ch_Hwnd,SW_SHOWNORMAL); //ShowWindowAsync (ch_Hwnd,SW_FORCEMINIMIZE); //ShowWindowAsync(desk_ch_Hwnd,SW_MINIMIZE); //ShowWindowAsync(ch_Hwnd,SW_MAXIMIZE); ShowWindowAsync(ch_Hwnd,SW_SHOWNORMAL); ShowWindowAsync(ch_Hwnd,SW_RESTORE); ShowWindowAsync(ch_Hwnd,SW_SHOWNORMAL); ShowWindowAsync(ch_Hwnd,SW_SHOW); SetForegroundWindow(ch_Hwnd); ::SendMessage(ch_Hwnd,WM_PAINT,(WPARAM )0,(LPARAM)0); ::SendMessage(ch_Hwnd,SW_OTHERUNZOOM,(WPARAM )true,(LPARAM)SW_OTHERUNZOOM);r00d0034@yahoo.com