Im creating a calculator in a dialog box
I have created all my headers and resource files with all my buttons and edits ready.
This is a part of my .rc file:
EDITTEXT IDC_NUMBER,3,7,100,14,ES_NUMBER EDITTEXT IDC_NUMBER2,130,7,100,14,ES_NUMBER
I have made these so the user can input integers and then use them later on to multiply/add/takeaway etc, using a few buttons (like I have said below)
Im using that as my multiply button.
Lets say i created a switch statement and a case: IDC_MULTIPLY
what would I need to do after? could i just make an integar out of IDC_NUMBER and IDC_NUMBER2 like int number and int number2 and then type number * number 2? If so, then how would I show the answer of the multiplication in a listbox, (i also have a listbox ready in the .rc file.
If you didn't quite understand my question, here it goes again; What do I need to do in the case: IDC_MULTIPLY to add two intergers together and then add them to a list box?
Thanks in advance :)