Click here to Skip to main content
16,012,153 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: puzzled by the following calss defination Pin
Cedric Moonen6-Nov-06 4:38
Cedric Moonen6-Nov-06 4:38 
GeneralRe: puzzled by the following calss defination Pin
led mike6-Nov-06 4:54
led mike6-Nov-06 4:54 
AnswerRe: puzzled by the following calss defination Pin
toxcct6-Nov-06 5:03
toxcct6-Nov-06 5:03 
QuestionEntrypoint problem in my project Pin
Raghavendra Pise6-Nov-06 3:12
Raghavendra Pise6-Nov-06 3:12 
AnswerRe: Entrypoint problem in my project Pin
Mark Salsbery6-Nov-06 6:55
Mark Salsbery6-Nov-06 6:55 
QuestionSetDiBitsToDevice() Pin
Waldermort6-Nov-06 3:06
Waldermort6-Nov-06 3:06 
AnswerRe: SetDiBitsToDevice() Pin
Chris Losinger6-Nov-06 3:19
professionalChris Losinger6-Nov-06 3:19 
GeneralRe: SetDiBitsToDevice() Pin
Waldermort6-Nov-06 3:35
Waldermort6-Nov-06 3:35 
I tried, without success Frown | :( , I also tried modifying the other params and creating the DIB with a negative height, but so far nothing has worked.

Here is the function call.

SIZE size = { _x2 - _x1, _y2 - _y1 };
//  SIZE size = GetSize();
    POINT SrcOrigin = {0,0};
    ::SetDIBitsToDevice(
        hdc, 
        _x1, _y1, 
        size.cx, size.cy,
        SrcOrigin.x, SrcOrigin.y,
        SrcOrigin.y, size.cy - SrcOrigin.y, 
        m_ppvBits, m_DIBinfo, 
        m_iColorDataType );

If I swap the commented line, it works fine, but it draws the full sized bitmap which is not what I want.
GeneralRe: SetDiBitsToDevice() Pin
Waldermort6-Nov-06 4:11
Waldermort6-Nov-06 4:11 
Questionhow to call a function a scheduled time? Pin
Banks K6-Nov-06 3:03
Banks K6-Nov-06 3:03 
AnswerRe: how to call a function a scheduled time? Pin
benjymous6-Nov-06 3:24
benjymous6-Nov-06 3:24 
AnswerRe: how to call a function a scheduled time? Pin
David Crow6-Nov-06 3:59
David Crow6-Nov-06 3:59 
AnswerRe: how to call a function a scheduled time? Pin
led mike6-Nov-06 4:27
led mike6-Nov-06 4:27 
AnswerRe: how to call a function a scheduled time? Pin
prasad_som6-Nov-06 19:05
prasad_som6-Nov-06 19:05 
AnswerRe: how to call a function a scheduled time? Pin
Blake Miller7-Nov-06 3:53
Blake Miller7-Nov-06 3:53 
QuestionPlease help ! Pin
Bravoone_20066-Nov-06 3:01
Bravoone_20066-Nov-06 3:01 
AnswerRe: Please help ! Pin
pgirish6-Nov-06 3:58
pgirish6-Nov-06 3:58 
AnswerRe: Please help ! Pin
Hamid_RT6-Nov-06 18:32
Hamid_RT6-Nov-06 18:32 
GeneralRe: Please help ! Pin
Bravoone_20066-Nov-06 19:22
Bravoone_20066-Nov-06 19:22 
GeneralRe: Please help ! Pin
Hamid_RT6-Nov-06 20:27
Hamid_RT6-Nov-06 20:27 
QuestionCopy to clipboard problem. Pin
rrrado6-Nov-06 2:50
rrrado6-Nov-06 2:50 
AnswerRe: Copy to clipboard problem. Pin
cje6-Nov-06 9:40
cje6-Nov-06 9:40 
GeneralRe: Copy to clipboard problem. Pin
rrrado7-Nov-06 21:21
rrrado7-Nov-06 21:21 
Questionshared data segment Pin
Abhi Lahare6-Nov-06 2:17
Abhi Lahare6-Nov-06 2:17 
AnswerRe: shared data segment Pin
John M. Drescher6-Nov-06 2:28
John M. Drescher6-Nov-06 2:28 

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.