Nishant Desai's Avatar
Light Poster
Another thing i want to ask is as you wrote to change the Cstatic type to CPicture, but i dont know how to do that? please tell me how to change the variable type from CStatic to CPicture?
Thanks,
Nishant
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
I would request you to put queries into a seperate thread rather than jumping into an old thread with the queries.
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Quote:
Originally Posted by Nishant Desai
Another thing i want to ask is as you wrote to change the Cstatic type to CPicture, but i dont know how to do that? please tell me how to change the variable type from CStatic to CPicture?
Thanks,
Nishant
By opening the .h file and renaming it.
Nishant Desai's Avatar
Light Poster
Quote:
Originally Posted by shabbir
By opening the .h file and renaming it.
I will create the new post for my main query but just replying here for this problem, as you told me, i had change the data type of the variable to the CPictureBox, but it gave me so many errors, main of those is Storage value missing. what should i do?
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
You probably missed the step 4 I mentioned in the article.

4. Change the CStatic to CPictureBox. Don't forget to add the header files at the top.

Adding the header files should shred off your errors.
Nishant Desai's Avatar
Light Poster
Quote:
Originally Posted by shabbir
You probably missed the step 4 I mentioned in the article.

4. Change the CStatic to CPictureBox. Don't forget to add the header files at the top.

Adding the header files should shred off your errors.
Ya, i was missing that step, so when i did it, i had run it successfully.

Thanks,
Nishant
lplover2k's Avatar, Join Date: Feb 2007
Go4Expert Member
hi there .. this tuto is intended for what version of vc++?? 6.0?? cus i don't have hte "ownerdrawn" option for the picture control..
lplover2k's Avatar, Join Date: Feb 2007
Go4Expert Member
and the include in picturebox.cpp

#include "stdafx.h"
#include "Wallpaper.h"
#include "PictureBox.h"
#include ".\picturebox.h"

-----------------------------------
#include "Wallpaper.h"
#include ".\picturebox.h"

where are these 2 headers found?
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
The Wallpaper header files will be generated by the MS VC compiler. PictureBox.h is in the attachmet.
lplover2k's Avatar, Join Date: Feb 2007
Go4Expert Member
it's not generated... i am getting error that it is missing