المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Object over another object.



C++ Programming
10-03-2009, 03:22 PM
Hi. Well... I'am trying to develop some simple game. This game has map of CButton objects and a marine that is a CButton object too. I have to make someway that marine go over other button. But as soon as i draw them marine is left behind the map. I tryed to make another transparent window and collocate marine there. It worked, but... in OnInitDialog i write:

MarineDlg.Create(IDD_MARINEDIALOG,this);
theApp.CreateLvl(this, STARTPIXELX, STARTPIXELY, FIELDSIZE);

and it's all cool, BUT if i write

theApp.CreateLvl(this, STARTPIXELX, STARTPIXELY, FIELDSIZE);
MarineDlg.Create(IDD_MARINEDIALOG,this);

marine is left behind and i need to create level first because my marine use it's properties.

Any hint? Some way to solution?
Pls. I already lost 1 day in it with no result.