Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Oct 18th, 2005, 1:45 PM   #21
lectricpharaoh
Caffeinated Neural Net
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Dry west coast of Canada
Posts: 1,033
Rep Power: 5 lectricpharaoh will become famous soon enough
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]
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot.
- Vaarsuvius, Order of the Stick
lectricpharaoh is offline   Reply With Quote
Old Oct 18th, 2005, 2:02 PM   #22
badbasser98
Hobbyist Programmer
 
Join Date: Mar 2005
Location: United States
Posts: 124
Rep Power: 4 badbasser98 is on a distinguished road
Quote:
Originally Posted by lectricpharaoh
[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]
That, and for some reason I cannot edit any of my posts after i leave the forum. So I can't add [solved] to the thread name...

Thanks anyays
-BB98
badbasser98 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 4:15 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC