.pcbrainbuster
November 23rd, 2007, 04:56 PM
Hello again guys,
Just what the heck is goin' on, you change one thing in your program and all your old features stop working! Well this time when I load a bitmap it doesn't quite fit into my static control :( I think if this is solved my capture problem will go away which also worked before :angry:.
Here's what I did so far -
GetOpenFileName(&ofn);
g_MemBM = (HBITMAP)LoadImage(hInstance, FName, IMAGE_BITMAP, PaintZoneR.right, PaintZoneR.bottom, LR_LOADFROMFILE);
g_OldMemBM = (HBITMAP)SelectObject(MDC, g_MemBM);
//solve here
As far as everything goes the problem looks simple, the bitmap doesn't scale properly into my smaller control(it has the DC).
Here's some other information you may want to know -
The handle to the control is PaintZoneWND and it's rect is in PaintZoneR, by the way, TempPoint is the x and y of the control relative to the program's upper left. And oh yeah the DC is MDC.
Please prepare a StretchBlt function that you guys think may work and then I'll report my results.
Thanks again for all the help, you guys help build my future!
Thanks :).
Just what the heck is goin' on, you change one thing in your program and all your old features stop working! Well this time when I load a bitmap it doesn't quite fit into my static control :( I think if this is solved my capture problem will go away which also worked before :angry:.
Here's what I did so far -
GetOpenFileName(&ofn);
g_MemBM = (HBITMAP)LoadImage(hInstance, FName, IMAGE_BITMAP, PaintZoneR.right, PaintZoneR.bottom, LR_LOADFROMFILE);
g_OldMemBM = (HBITMAP)SelectObject(MDC, g_MemBM);
//solve here
As far as everything goes the problem looks simple, the bitmap doesn't scale properly into my smaller control(it has the DC).
Here's some other information you may want to know -
The handle to the control is PaintZoneWND and it's rect is in PaintZoneR, by the way, TempPoint is the x and y of the control relative to the program's upper left. And oh yeah the DC is MDC.
Please prepare a StretchBlt function that you guys think may work and then I'll report my results.
Thanks again for all the help, you guys help build my future!
Thanks :).