Jump to content
  • Advertisement

Archived

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

Lalle

Change the propeties of windows

This topic is 6175 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

How do I change the properties(size, title, etc) of an already made window in Windows? I''m using C++ thanks Lalle

Share this post


Link to post
Share on other sites
Advertisement
SetWindowPos() will do some of the things you want. (like resize) Look it up on MSDN. It is either called that or SetWindowPosition().

Share this post


Link to post
Share on other sites
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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!