Hi,

I was wondering how I might get the mouse cursor position with respect to the upper left corner of the window client area (not the whole window). More specifically, I want the dimensions and position of the client area's device context. I was originally thinking of using GetWindowRect and GetCursorPosition, then subtracting the title bar height. Then I thought about those ridiculously large title bars, so that shoots a hole in my plan. Can anyone help me out?