Im having trouble with bitblt
I can get it to display an image but I call bitblt again in a different placeit dosent create it.
I am trying to have an image move around the screen.
Also how do you make a window un resizeable and un maximizable?
Thanx in advanced
What does GetLastError() report?
What are the values in the BitBlt() call?
Are you using a framebuffer system?
To make a window stay a constant size try
then return the msg to defwinproc function (or DefMDIChildProc())
case WM_SIZING://these are sent AS the user changes them
//replace the new coods with the previously captured Screen Coods (GetWindowRect() in WM_INIT / WM_CREATE)
uh well I have no ide about the framebuffer;How do you use GetLastError;and I am calling bitblt as simple as possible with just normal coords and hdcs from get compattiblehdc,gethdc, and I just found the width and hight.
All the values seem correct?
No NULL HDC's or -ve coods? (or coods off the image)
Have not wiped the HDC or BMP?
Look the error up in the help
sprintf(sBuffer,"BitBlt failed with error %d.", iError);
0 = error success (you don't want to see this)
87 = incorrect param
You are Being very careful with your GDI memory? ReleaseDC() any GetDC() and DeleteObject() any CreateXX()'s (not while selected into a DC)