I've read through a lot of information about custom events in wxWindows, but I still have no idea on how to get the WM_NOTIFY message from windows. I'm using CodeSense, by using CreateWindowEx(...,hMyFrame(),...) where hMyFrame is the handle of the wxFrame (... being other code). I have managed to get CodeSense to work, but now I need a way to be notified by certain events from it, like when the cursor position changes in window (I'm trying to get the line number and position in the line of the cursor). Please help! is there any way I can process the WM_NOTIFY message?