my question might be really simple, but i have no clue where to start with my idea. basically, if my program is running, when the user double-clicks (or right-clicks, based on the user's selection in the config menu of the prog) any window's titlebar i want to be able to run a proceedure. really all i need is a function that would allow me (that is, the program) to know if the user double- or right-clicks in any window's titlebar. (or an idea of where to start) any help would be appreciated. thank you

--michael