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

C / C++ / MFC

 
QuestionHow to subclass the clock window? Pin
27-Jan-02 22:17
suss27-Jan-02 22:17 
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 
Hi,

The problem that I have is that I want to print a bitmap ( from the resources), to do that, I have to convert to DIB, to allow print it in the printer, and then use StretchBlt to scale it, but Now I cannot manage with the coordinates to print it ( it doesn´t print anything at all).

CDC     memDC;
CBitmap BmpLogo.LoadBitmap(IDB_BERTHILDA_BASELINE);
memDC.CreateCompatibleDC(NULL);

CBitmap* pOldBitmap = memDC.SelectObject(&BmpLogo);

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
         );


I´m just playing with the coord numbers to see if it paints at least something...

Thanks in advance, Bye!
Braulio
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 
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 

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.