Light Poster
19Jan2007,16:33   #21
Nishant Desai's Avatar
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
Go4Expert Founder
19Jan2007,16:45   #22
shabbir's Avatar
I would request you to put queries into a seperate thread rather than jumping into an old thread with the queries.
Go4Expert Founder
19Jan2007,16:46   #23
shabbir's Avatar
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.
Light Poster
19Jan2007,16:57   #24
Nishant Desai's Avatar
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?
Go4Expert Founder
19Jan2007,18:15   #25
shabbir's Avatar
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.
Light Poster
20Jan2007,09:42   #26
Nishant Desai's Avatar
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
Go4Expert Member
4Feb2007,18:19   #27
lplover2k's Avatar
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..
Go4Expert Member
4Feb2007,18:22   #28
lplover2k's Avatar
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?
Go4Expert Founder
5Feb2007,09:15   #29
shabbir's Avatar
The Wallpaper header files will be generated by the MS VC compiler. PictureBox.h is in the attachmet.
Go4Expert Member
5Feb2007,10:51   #30
lplover2k's Avatar
it's not generated... i am getting error that it is missing