How can this be done using Visual C++ 2008 Express?
Picture must be into executable.
I found i can modify background of borderless window using these lines:
WNDCLASSEX wcx;
/*fill up other wcx members*/
wcx.hbrBackground=CreatePatternBrush((HBITMAP) LoadImage(0,_T("background.bmp"),
IMAGE_BITMAP,0,0,
LR_CREATEDIBSECTION|LR_LOADFROMFILE));
or
WNDCLASSEX wcx;
/*fill up other wcx members*/
wcx.hbrBackground=CreatePatternBrush((HBITMAP) LoadImage(GetModuleHandle(0),
MAKEINTRESOURCE(ID_BACK_BMP),
IMAGE_BITMAP,0,0,
LR_CREATEDIBSECTION);
but i got a problem:
First example is used to get pictures from existing files. Second one uses resorces. But I can not find an option how to add a resource (i think this is impossible for native projects)! Is there any workaround?
Please help!
PS. Sorry for bad english!