michaelkrauklis
Programmer
Ok, I stated this in another thread but it wasn't the question, so I'll pose it again:
I have three bitmap resources loaded;IDB_BITMAP_RED, IDB_BITMAP_GREEN, and IDB_BITMAP_YELLOW.
I have a dialog based application. I create a 'Picture' by using the Picture tool on the Controls palette. In the Picture Properties I set the type to Bitmap, and then select the correct Bitmap Resource from the Image Pulldown.
This part works fine. It displays the IDB_BITMAP_RED bitmap just as I want it to. Now my problem is this:
Later on in my program execution I would like to be able to change which bitmap this particular 'Picture' is displaying. I've tried things like getting the main window and calling LoadImage, but there are type problems.
Now this part works fine, but the problem is it returns a CWind*. I need to at least know what type the 'Picture' is or I won't be able to cast it correctly nor call the correct member functions. Microsoft's documentation on this is very bad. I have a bunch of books but none of them address this. Is it even possible? Any help will be greatly appreciated. Thanks
MYenigmaSELF:-9
myenigmaself@yahoo.com
"If debugging is the process of removing bugs, then programming must be the process of putting them in." --Dykstra
I have three bitmap resources loaded;IDB_BITMAP_RED, IDB_BITMAP_GREEN, and IDB_BITMAP_YELLOW.
I have a dialog based application. I create a 'Picture' by using the Picture tool on the Controls palette. In the Picture Properties I set the type to Bitmap, and then select the correct Bitmap Resource from the Image Pulldown.
This part works fine. It displays the IDB_BITMAP_RED bitmap just as I want it to. Now my problem is this:
Later on in my program execution I would like to be able to change which bitmap this particular 'Picture' is displaying. I've tried things like getting the main window and calling LoadImage, but there are type problems.
Code:
AfxGetMainWnd()->GetDlgItem(IDC_STATIC0);//stuff like that
MYenigmaSELF:-9
myenigmaself@yahoo.com
"If debugging is the process of removing bugs, then programming must be the process of putting them in." --Dykstra