well id like a point in the right direction on making one, ive been looking and i think i need to find some way of finding out WS_CHILDWINDOW and then i need to be able to mak sure its not a dialog window as well... if i get any luck in it ill let u know. i need it to be able to process my treeview switchbar listings. be cause ON close isnt working properly on dcc windows. it fires my command at the termination of the session and not actually when i close the window. i am workin on a start to a dll but im still only learning it slowly thru the tutorials.