Click here to Skip to main content
15,918,889 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to subclass the clock window? Pin
Paul M Watt27-Jan-02 22:35
mentorPaul M Watt27-Jan-02 22:35 
GeneralRe: How to subclass the clock window? Pin
28-Jan-02 16:56
suss28-Jan-02 16:56 
GeneralRe: How to subclass the clock window? Pin
Paul M Watt29-Jan-02 5:52
mentorPaul M Watt29-Jan-02 5:52 
GeneralRe: How to subclass the clock window? Pin
29-Jan-02 14:45
suss29-Jan-02 14:45 
GeneralTrying to print a bitmap created in the resources Pin
Braulio Dez27-Jan-02 21:34
Braulio Dez27-Jan-02 21:34 
GeneralRe: Trying to print a bitmap created in the resources Pin
Paul M Watt27-Jan-02 23:03
mentorPaul M Watt27-Jan-02 23:03 
GeneralRe: Trying to print a bitmap created in the resources Pin
Braulio Dez28-Jan-02 2:24
Braulio Dez28-Jan-02 2:24 
GeneralRe: Trying to print a bitmap created in the resources Pin
Paul M Watt29-Jan-02 6:01
mentorPaul M Watt29-Jan-02 6:01 
Braulio Díez wrote:
StretchBlt( pDC->GetSafeHdc(), // handle to destination DC 0, // x-coord of destination upper-left corner 0, // y-coord of destination upper-left corner 20000, // width of destination rectangle 20000, // height of destination rectangle memDC.GetSafeHdc(), // handle to source DC 0, // x-coordinate of source upper-left corner 0, // y-coordinate of source upper-left corner 35000, // width of source rectangle 38000, // height of source rectangle SRCCOPY // raster operation code );

is 35000 and 38000 the value of the bitmap in pixels, or have you changed the mapping mode of the image. Because as far as I know, there is a limit of how large an image StretchBlt can handle. I can't remember the limit but it is closer to 2500 x 2500 pixels.

I would suggest breaking the large image into smaller squares. You will have to create a for loop, and just walk your way across the bitmap painting a small grid of squares one after another.

To test if this is what the problem is, try loading a smaller bitmap that is only 100x100 pixels or something and painting that.
GeneralRe: Trying to print a bitmap created in the resources Pin
Braulio Dez29-Jan-02 6:08
Braulio Dez29-Jan-02 6:08 
QuestionIs C++ dead in a few years? Pin
Rickard Andersson2027-Jan-02 21:14
Rickard Andersson2027-Jan-02 21:14 
AnswerRe: Is C++ dead in a few years? Pin
Paul M Watt27-Jan-02 21:19
mentorPaul M Watt27-Jan-02 21:19 
AnswerRe: Is C++ dead in a few years? Pin
Christian Graus27-Jan-02 21:20
protectorChristian Graus27-Jan-02 21:20 
AnswerRe: Is C++ dead in a few years? Pin
Joaquín M López Muñoz27-Jan-02 21:27
Joaquín M López Muñoz27-Jan-02 21:27 
AnswerRe: Is C++ dead in a few years? Pin
Nish Nishant27-Jan-02 22:18
sitebuilderNish Nishant27-Jan-02 22:18 
AnswerRe: Is C++ dead in a few years? Pin
Michael P Butler28-Jan-02 1:11
Michael P Butler28-Jan-02 1:11 
AnswerRe: Is C++ dead in a few years? Pin
28-Jan-02 2:49
suss28-Jan-02 2:49 
Generalread from file Pin
marouane miftah el kheir27-Jan-02 16:32
marouane miftah el kheir27-Jan-02 16:32 
GeneralRe: read from file Pin
Nish Nishant27-Jan-02 16:51
sitebuilderNish Nishant27-Jan-02 16:51 
GeneralRe: read from file Pin
Christian Graus27-Jan-02 17:10
protectorChristian Graus27-Jan-02 17:10 
GeneralRe: read from file Pin
Nish Nishant27-Jan-02 17:28
sitebuilderNish Nishant27-Jan-02 17:28 
GeneralRe: read from file Pin
Christian Graus27-Jan-02 17:44
protectorChristian Graus27-Jan-02 17:44 
GeneralRe: read from file Pin
Nish Nishant27-Jan-02 17:49
sitebuilderNish Nishant27-Jan-02 17:49 
GeneralRe: read from file Pin
Christian Graus27-Jan-02 17:58
protectorChristian Graus27-Jan-02 17:58 
GeneralRe: read from file Pin
Christian Graus27-Jan-02 18:05
protectorChristian Graus27-Jan-02 18:05 
GeneralRe: read from file Pin
Nish Nishant27-Jan-02 18:21
sitebuilderNish Nishant27-Jan-02 18:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.