Pelles C forum

C language => Beginner questions => Topic started by: Flashgott on January 10, 2008, 03:13:26 PM

Title: Some newbie questions
Post by: Flashgott on January 10, 2008, 03:13:26 PM
hi  ;D
i am completly new to pelle.
I want to create a calculator for an online game with it.
I have 2 Questions.
1. How can i rename the test1 test2 test3 and so on in a combobox?
2. Is there a way that i can say if that get chanced (so if combobox get chanced)
   it should call a function or something like that?
thx
Title: Re: Some newbie questions
Post by: Pelle on January 11, 2008, 08:39:51 AM
1) The test# strings are just added by the IDE to have something to play with in test mode; to add your own strings you must do this from your own code. Look at the Windows SendMessage function and the CB_ADDSTRING message (if you are new to Windows programming you should read some tutorials, or a book...)

2) Yes, trap the CBN_SELCHANGE notification message in your code.