winapi - How to edit pixels in a wndproc window c++? -
i have window in c++ made wndproc function. how edit pixels of screen in
case wm_paint: { hdc hdc; paintstruct ps; hdc = beginpaint( hwnd, &ps ); // ????? endpaint( hwnd, &ps ); }
when wm_paint message pixels gone, and/or calling beginpaint causes pixels erased. painting code needs paint whole window. if merely changing few pixels can use in-memory bitmap, change few pixels within (setpixel 1 way), bitblt screen repaint whole window.
Comments
Post a Comment