Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GWL_EnumProc?
#1
Im not sure whats causing this any ideas anyone. thanks

error (RT) in GWL_EnumProc: window not found
#2
Probably the window was destroyed during the function. To avoid the error, replace GWL_EnumProc text to:

Function GWL_EnumProc
Code:
Copy      Help
;/
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
#3
Thanks.
will let you know if it fixed it


Forum Jump:


Users browsing this thread: 1 Guest(s)