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

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -