Load Bitmap from a specified path
-
Hai Everybody, How to Load a Bitmap on a Dialog from a specified Path and it should be stretched to the entire screen that is already filled with dialog. For instance: 1.Dialog should fill the screen. No Problem working nice. 2.Bitmap should fill the screen from a specified path. Problem......... d:\\codeProject\\a.bmp It's for both win2000 & winCE. Thanks in advance Darwin DARWIN PAUL RAJ
-
Hai Everybody, How to Load a Bitmap on a Dialog from a specified Path and it should be stretched to the entire screen that is already filled with dialog. For instance: 1.Dialog should fill the screen. No Problem working nice. 2.Bitmap should fill the screen from a specified path. Problem......... d:\\codeProject\\a.bmp It's for both win2000 & winCE. Thanks in advance Darwin DARWIN PAUL RAJ
here is Small piece of code that will help you out
HBITMAP hbit=(HBITMAP)LoadImage(0,OpenFileDialog.m_ofn.lpstrFile,IMAGE_BITMAP,300,300,LR_LOADFROMFILE);
and you got the handle the image ----------------------------- "I Think It will Work" ----------------------------- Alok Gupta visit me at http://www.thisisalok.tk -
here is Small piece of code that will help you out
HBITMAP hbit=(HBITMAP)LoadImage(0,OpenFileDialog.m_ofn.lpstrFile,IMAGE_BITMAP,300,300,LR_LOADFROMFILE);
and you got the handle the image ----------------------------- "I Think It will Work" ----------------------------- Alok Gupta visit me at http://www.thisisalok.tkThank you, Where I have to specify my file path and LR_LOADFROMFILE is not supported by WinCE,It shows that undeclared identifier, When I refered MSDN and put Zero instead of LR_LOADFROMFILE. with regards DARWIN PAUL RAJ
-
Thank you, Where I have to specify my file path and LR_LOADFROMFILE is not supported by WinCE,It shows that undeclared identifier, When I refered MSDN and put Zero instead of LR_LOADFROMFILE. with regards DARWIN PAUL RAJ
While help for
LoadImage()
does not say thatLR_LOADFROMFILE
can be used for thefuLoad
parameter, it does mention it in thelpszName
section as though it is a possibility. Have you search through each of the .H files to see if it is defined?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen