-
EnumWindows Problem
Ok so i found a example on EnumWindows here and used it but it's getting a lot more stuff than the windows i have on the taskbar. I want to get only windows on the taskbar.
Here is the code:
EnumWndProc function:
Code:
BOOL CALLBACK EnumWinProc(HWND hWnd,LPARAM lParam)
{
HWND hList1= (HWND)lParam;
CHAR lpWinName[MAX_PATH];
GetWindowText(hWnd,lpWinName,MAX_PATH);
if(strlen(lpWinName))
SendMessage(hList1,LB_ADDSTRING,
0,(LPARAM)lpWinName);
return TRUE;
}
And the way i call it:
Code:
EnumWindows(EnumWinProc,(LPARAM)hList1);
Hope that someone can help.
~Cha0sBG
-
I'm not 100% sure of the criterias that make a window appear on the taskbar, but for one thing, it must be visible, so check if the window is visible.
I don't think that modal windows are visible either. But perhaps someone else can tell you more or you could try to find out the conditions yourself.
-
-
can u give the direct example cuz i'm a little drunk right now :D
-
Then sober up, stop drinking and come back tomorrow!
-
-
Yeah, thanks for making a useless reply.
Do yourself a favor and stay sober when programming.
-
oh just go f**** yourself if u can't help someone .... i bet you don't even have 1% knowage that i have.