Hi ~

I'm trying to use WM_GETTEXT to retrieve the contents of an edit box, "EditTitle".
The syntax for WM_GETTEXT is as follows:

Code:
WM_GETTEXT wParam = (WPARAM) cchTextMax; 
  lParam = (LPARAM) lpszText;
, where cchTextMax is the amount of characters to be copied, and lpszText is a 'Long pointer to the buffer that is to receive the text.' The problem is that I am not sure how to use this message inside a function call, i.e.

Code:
SaveTitle(WM_GETTEXT etc)
Please can someone who has a lot more programming experience than I help me out?

Thanks;

~ Chris Howarth