Create CStatic not working with SetBitmap function
Posted on 2000-03-11
I'm having problems creating a dynamic CStatic field. When I created a dynamic CStatic field the SetBitmap function doesn't work.
if (!Create("",WS_CHILD|WS_VISIBLE|BS_BITMAP|SS_NOTIFY, MyRect, PWnd, 16969+intRoomNumber))//WS_CHILD|SS_BITMAP|WM_CTLCOLOR|WS_VISIBLE
I know the problem is not in the LoadImage function, because I have the exact same statement on a field that is not dynamic, and it works with no problem.
I'm pretty sure the problem is with the Create function because that is the only difference between the two.
Please do not give me an answer by referring me to a previously answered questioned. I've already wasted about 100 points looking at previous similar questions, and non of them had the right answer for my particular problem.
Thanks in advance…..