Windows XP wont STOP processing ! ! !

new topic     » topic index » view thread      » older message » newer message

Hello all,

I have a pretty technical question to ask about Windows programming!

In the (below) traced, I issue this command junk  = c_func(DestroyWindow,
{hwnd})
which resides in WM_NOTIFY (Line#801) as you can see from the trace WM_DESTROY
is
immediatley called (Line# 933) after I issure a DestroyWindow

Look for ( comments )

Line#    Command
______________________________________________________________

  770    elsif iMsg = WM_PAINT then
  786    elsif iMsg = WM_COMMAND then
801    elsif iMsg = WM_NOTIFY then      ( here's where DestroyWindow gets
  called )
933    elsif iMsg = WM_DESTROY then   ( I Destroy ALL Windows and
  PostQuitMessage(0) here )

Code below this line should not be ran by the system but it does on Windows XP
______________________________________________________________

  939    return c_func(DefWindowProc, {hwnd, iMsg, wParam, lParam})
  867    item = SendMessage(id,TVM_GETNEXTITEM, TVGN_CHILD, hItem)
  356    result = c_func(xSendMessage,{hwnd, msg, wParam, lParam})
  357    return result 
  868    junk = SendMessage(id,TVM_DELETEITEM, 0,item) 
  356    result = c_func(xSendMessage,{hwnd, msg, wParam, lParam})
  357    return result 
  870    Dir95(id,path&'\\',hItem, 2)                                 
  536    dirs = dir2(FileSpec, 1)
  478    pdirs = {}
  480    FileSpec = verifyPath(FileSpec)
  459    if length(FileSpec) < 1 then
  461    if find('\\', {FileSpec[length(FileSpec)]}) then
  462    Path=FileSpec & '*' 
  466    return Path
  481    pFile = allocate_string2(FileSpec)
  313    mem = myalloc(length(s)+1)
  303    mem = c_func(xHeapAlloc,{pHeap,HEAP_ZERO_MEMORY,size})
  304    return mem
  314    if mem then
  315    poke(mem, s)


Here is whats confusing to me...Why, if I have this code

elsif iMsg = WM_QUIT then
      
   return wParam
   
elsif iMsg = WM_DESTROY then
 
       junk  = c_func(DestroyWindow, {TreeView1})
       junk  = c_func(DestroyWindow, {DirEdit})
       junk  = c_func(DestroyWindow, {Button1})  
           
      c_proc(PostQuitMessage, {0})
 
   return 0
end if

return c_func(DefWindowProc, {hwnd, iMsg, wParam, lParam})

Why does Windows XP think that it has to keep running code? ? ?
refer back to the Line#  Command List....

Any takers?

Euman
euman at bellsouth.net

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu