I wanna draw the caption, dammit!
I'm trying to write my own versions of the WM_NCPAINT, WM_NCHITTEST and other associated nonclient area messages in order to create a custom title bar for my program. The thing is, it seems whenever I send WM_SETTEXT to my window it likes to use the DrawCaption function and undo all my lovely (Yes, really) work. :(
Obviously I would like to replace WM_SETTEXT so it can't attempt the unsightly drawing operation, but I don't know how to maintain its functionality (Where is a window's text stored?). Little help?