Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by klawes

  1. klawes

    Save bitmap.

    Hi Folks!! I've a problem, it sounds like this; I want to save a bmp-file into the computers memory (RAM), and then show it in a specified area(HWND hBmp) in my program. Before I show it I do some painting Rectangle(); etc. Is there any kind of function that can solve it?? Thanks in advance!!
  2. klawes

    Offscreen buffers

    I want to see my paintings after resizing (etc) the main window, when I do it now, everything disappears, which is very annoying, i've tried lockresource(); but problem still remain. Then i tried to copy it to an off screen DC, how do i select the image (its in hBmp), into the off screen DC...
  3. klawes

    Offscreen buffers

    No, I didnt copy/paste, I've changed it, and now it is like this: case WM_PAINT: hdc = BeginPaint(hWnd, &ps); { HDC hBufferDC = CreateCompatibleDC(hdc); HBITMAP hBufferBitmap = CreateCompatibleBitmap(hBufferDC, bm.bmWidth,bm.bmHeight); HBITMAP hOldBufferBitmap =...
  4. klawes

    Offscreen buffers

    Hi again Nice link, but the code didnt work properly, everything turns white when I run the program after adding the code to my project, when I also resixe the window (where I paint), everything turnes white, so what did I do wrong?? (my paint window is called HWND hBmp) I'm using MSVC++ on...
  5. klawes

    Offscreen buffers

    Hi there! How do I create an off-screen buffer, I wanna save a bmp-file in it. Could i use BitBlt to view the off-screen bmp? thanks in advance /K
  6. klawes

    Buffering problems

    Hey! I've a problems in implementing double buffering in my program. I open a bitmap, place it in HWND hBmp (static), this works perfect, but when I minimize or maximize the window, everything turnes black. I've tried double buffering, but it did not work, so my question is, what went wrong? Is...

Part and Inventory Search

Back
Top