![]() |
Combox problem
Dear Friends
I have combo box in which i have two strings i.e. nothing but properties->data ->insert string First is BABINA & 2nd JAIPUR I have two maps which are in tga format ( map1.tga & map2.tga). What i want is when i selected BABINA & press OK map1.tga should display & when I select JAIPUR & press OK map2.tga should display . Right now only map1.tga is getting displayed. Code:
CenView.cppCode:
CLocationSelection.cpp |
Re: Combox problem
Put the condition when loading the map here
Code:
m_objTexture.LoadTGA("map2.tga") ; |
Re: Combox problem
ya i gave the condition but still its not working
Code:
if(mycombo.FindString(0,"babina")==0) |
Re: Combox problem
It should be selected index of the combox and not FindString.
Also remember to test for right Case. Lower Case String with Lower case and vice versa |
| All times are GMT +5.5. The time now is 05:09. |