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 -

how to prompt save As Box in Excel Interlop c# MVC 4 -

xslt 1.0 - How to access or retrieve mets content of an item from another item? -