is there a function in the win api that clears the whole screen
is there a function in the win api that clears the whole screen
I started out with nothing and I still have most of it left.
What do you mean? You don't want anything on your screen? No windows? Nothing?
InvalidateRect( ) if you want to clear a window
- "Problem Solving C++, The Object of Programming" -Walter Savitch
- "Data Structures and Other Objects using C++" -Walter Savitch
- "Assembly Language for Intel-Based Computers" -Kip Irvine
- "Programming Windows, 5th edition" -Charles Petzold
- "Visual C++ MFC Programming by Example" -John E. Swanke
- "Network Programming Windows" -Jones/Ohlund
- "Sams Teach Yourself Game Programming in 24 Hours" -Michael Morrison
- "Mathmatics for 3D Game Programming & Computer Graphics" -Eric Lengyel
i mean if a window has writing and maybe a button, make them go away
I started out with nothing and I still have most of it left.
If the writing is done with a function like TextOut, just draw over it.
For buttons, use DestroyWindow.
but what if i don't have enought text to write over it?
I started out with nothing and I still have most of it left.
Just draw over it will FillRect or some similar function.
thanks shameset, it works and it's easy
I started out with nothing and I still have most of it left.