[comp.windows.ms.programmer] Changing a Window name

Tim_Carter@f222.n142.z1.fidonet.org (Tim Carter) (06/02/91)

 * Original <30 May 91  22:08:01> was from Stephen Smith to All 

 > SS: I am relatively new to windows programming and so have a simple
 > SS: question.
 > SS: After a window is Created with Create window, how does one
 > SS: change the
 > SS: windows "Caption".

SetWindowText(hWnd, lpstrNewCaption);

C U on the bit stream, Tim

Chris_Graham@f344.n632.z3.fidonet.org (Chris Graham) (06/02/91)

 * Original <30 May 91 22:08:01> was from Stephen Smith to All 

 > SS: I am relatively new to windows programming and so have a simple
 > SS: question.
 > SS: After a window is Created with Create window, how does one
 > SS: change the
 > SS: windows "Caption".  I see programs that do it but can't find
 > SS: functions 
 > SS: that will allow me to repeat the process.

Try:
	SetWindowText( hWnd, szNewTitle ) ;

-Chris