Thread: BitBlt(); 's parameters

  1. #1
    Registered User
    Join Date
    Nov 2001
    Posts
    202

    BitBlt(); 's parameters

    I'm making a memory HDC( screen buffer) and I understand everything excepthow to use BitBlt(); . I looked on MSDN \and it says its parameter's but most of them are coordnates and all. How would I find out what these coordinates are with 2 compatiable DCs(made using CreateCompatableDC(); .) Any help is much apprieciated.

    Thanks,
    Isometric

  2. #2
    S­énior Member
    Join Date
    Jan 2002
    Posts
    982
    If your buffer is the same dimensions as your client area, then you'll want to do

    BitBlt(hdcDest,0,0,clientwidth,clientheight,hdcSrc ,0,0,SRCCOPY);

  3. #3
    Registered User
    Join Date
    Nov 2001
    Posts
    202
    Thank you very much

  4. #4
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,868
    Can also use

    GetObject()

    with

    HGDIOBJ = Your bitmap;
    int = sizeof(BITMAP);
    BITMAP = &Bitmap

    BITMAP is a structure that will be filled with the details of the bitmap including width and height.
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 6
    Last Post: 07-21-2008, 06:04 AM
  2. Parameters quick Question
    By lifeis2evil in forum C++ Programming
    Replies: 2
    Last Post: 11-18-2007, 11:12 PM
  3. function with variable number of parameters
    By mikahell in forum C++ Programming
    Replies: 3
    Last Post: 07-23-2006, 03:35 PM
  4. Additional parameters for operator delete
    By darksaidin in forum C++ Programming
    Replies: 0
    Last Post: 09-21-2003, 11:46 AM
  5. Passing parameters from VB to C++ through ActiveX DLL
    By torbjorn in forum Windows Programming
    Replies: 0
    Last Post: 12-10-2002, 03:13 AM