This topic is now archived and is closed to further replies.


Change the propeties of windows

Recommended Posts

MoveWindow() to change position and size:

BOOL MoveWindow(
HWND hWnd, // handle to window
int X, // horizontal position
int Y, // vertical position
int nWidth, // width
int nHeight, // height
BOOL bRepaint // repaint flag

SetWindowText() to set the title of a window or to set the text of a control:

BOOL SetWindowText(
HWND hWnd, // handle to window or control
LPCTSTR lpString // address of string

GetWindowText() can be used if you need to get the window title. Try looking stuff on MSDN, you will be surprised at all the stuff in the API that you never knew about.

Edited by - Midnight Coder on July 25, 2001 3:42:26 PM

Share this post

Link to post
Share on other sites