Programming Forums
User Name Password Register
 

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

Reply
 
Thread Tools Display Modes
Old Mar 31st, 2006, 1:15 AM   #1
Code_Monkey
Newbie
 
Join Date: Mar 2006
Posts: 6
Rep Power: 0 Code_Monkey is on a distinguished road
Window help

I im just now learing windows programming, So im not to good at it yet, Im trying to build a calculater, but im getting confused. If I have a "calcuate" button with ID: "ID_Calculate" , Do i use

case ID_Calculate:
//some code//
break;

in my main source file ? And how do I get data to show up in a field after the program has started and the user clicks on a inout box types in a number then hits the "calcuate" button ?
Code_Monkey is offline   Reply With Quote
Old Mar 31st, 2006, 1:30 AM   #2
nnxion
Programming Guru
 
nnxion's Avatar
 
Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5 nnxion is on a distinguished road
Quote:
Originally Posted by Code_Monkey
I im just now learing windows programming, So im not to good at it yet, Im trying to build a calculater, but im getting confused. If I have a "calcuate" button with ID: "ID_Calculate" , Do i use

case ID_Calculate:
//some code//
break;

in my main source file ? And how do I get data to show up in a field after the program has started and the user clicks on a inout box types in a number then hits the "calcuate" button ?
It depends on where you want your code, you could put it in your main source file, but you don't necessarily have to.
You meant if a user types in something in an input box and then presses the calculate button?

The button generates a message, which is sent to your message loop, you catch it with BN_CLICKED.
__________________
"Employ your time in improving yourself by other men's writings, so that you shall gain easily what others have labored hard for."
-- Socrates
nnxion 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 5:55 PM.

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