Quote:
|
Originally Posted by badbasser98
I still can't get the console window to stop coming to the front on top of the setup program. I would like to learn to create GUI's, maybe this would be a good starting project, any good places to look for tutorials? Or maybe some books?
Thanks in advance,
-BB98
|
An oldie but a goodie is
this one here. I'm sure many people here have used it; it was helpful in teaching me how to write Win32 GUI programs. When writing GUI programs, the key thing to understand is the concept of 'messages'. Windows will send a 'message' to your program whenever something happens that concerns it (such as mouse clicks, button presses, keystrokes, etc). You then simply handle the ones you're interested in from within your 'window procedure', and pass the others off to the 'default window procedure' to let it process them (which generally amounts to ignoring them).
You could also make a 'Windows Forms Application', if you're using something like Visual Studio .NET. This will hide many of the details from you, and I wouldn't recommend it as a starting place because it allows you to write code without really understanding how it works, which generally leads to confusion down the road, but it's still a possibility you might consider.
Quote:
|
Originally Posted by badbasser98
Anyone know about the text coloring?
|
The answer there is simple. Assuming you've already got a handle to the device context (which you need to paint the text anyways), just use SetTextColor(), like so:
SetTextColor(hDC, RGB(0, 0, 255));
You can use SetBkColor() in the same way, and SetBkMode() to control whether the text background is opaque or transparent.
[edit] Ack. Didn't see you solved it before I replied. That's what I get for replying to a post before reading the whole thread. :/ [/edit]