Hello.. I have a list box and selecting an item from it I want to reproduce some text in a edit control reading from a file from a certain location. This means if I have this file.txt e.g:
file.txt
[Fire]
+3 To Fire
+10 To Dex
-5 To light radius
[Cold]
+3 To Cold
+10 To Strength
-2 To mana
[Lightning]
+3 To Lightning
+10 To Vitality
-2 To Life
[Poison]
.
..
...etc
..and in my listBox I have something like this e.g:
myListBox
Fire
Cold
Lightning
Poison
.
..
...etc
using case LBN_SELECHANGE for the listBox and selecting the Cold from the list to read from the file and to output in a edit rdonly this:
EditControl
+3 To Cold
+10 To Strength
-2 To mana
I will appreciate if anyone could help me.. Thank you in advance !
..Aaa right :| I understand the concept, now I will try to reproduce the same thing in C, sorry dutch I'm not that familiar with C++, but hey thanks for the answer, I appreciate it !! :)