07-24-2008, 07:20 PM
Probably the window was destroyed during the function. To avoid the error, replace GWL_EnumProc text to:
Function GWL_EnumProc
How to edit System functions: QM Dialogs
Function GWL_EnumProc
;/
function# hWnd __GWL&g
if(g.flags&16)
,int style=GetWindowLong(hWnd GWL_STYLE)
,if(style&WS_CAPTION != WS_CAPTION)
,,if(style&WS_POPUP) ret 1
if(g.names or g.flags&2)
,err-
,g.ts.getwintext(hWnd)
,if(!g.ts.len)
,,if(g.flags&2) ret 1
,,if(g.names) g.cs.getwinclass(hWnd); g.ts.from("+" g.cs)
,err+ ret 1 ;;if the window destroyed
,if(g.names) g.names.addline(g.ts)
if(g.handles) ARRAY(int)& ha=g.handles; ha[]=hWnd
if(g.pCallbackFunction)
,ret call(g.pCallbackFunction hWnd g.lParam &g.ts &g.cs)
ret 1
How to edit System functions: QM Dialogs