How can I set object on the bottom of window...

Hi,

I have to do a project for school, and I'm stuck...
I need to put some objects on the bottom of window...but it needs to be always on the bottom, when you resize a window etc. How can do this?

I'm preety bad at programing but I need to do this project so I could use some help. Sorry for my bad english but it's not my native language.

EDIT: I think i need coordinates (or something like that) of window...
Last edited on
This is very, very dependent on your operating system. C++ has no inherent understanding of what a window (or even a graphic) is.
Im using VIsual Studio 2008 and if you select a new project and widows programm or something like that you have window allredy written....

Any advise?
Use GetWindowRect() to get the size of the window when it is drawn or redrawn: http://msdn.microsoft.com/en-us/library/ms633519(VS.85).aspx

From here you need to find the bottom of the window and draw your image.

This question belongs in the Windows section btw, it's not a big deal you'll just get more responses from there.
I can't really change it for this project...I was thinking more about something like:
clientWidth
clientHeight
This is what i needed, I pulled it out of my frieds programm but I don't know whyit's not working in my program...if I use it i get an error:

error C2065: 'clientWidth' : undeclared identifier

Any ideas?

EDIT:
You're right I should write in Windows section. So see you there...
Last edited on
Topic archived. No new replies allowed.