Question about win32 programming

  • Thread starter Thread starter Nothing
  • Start date Start date
  • Tags Tags
    Programming
AI Thread Summary
When programming with Win32, issues may arise where content does not restore after minimizing or invalidating a window region. This problem typically relates to the lack of proper repainting. To address this, it is essential to implement repainting routines effectively. A common solution in similar programming environments, such as Java, involves buffering drawn objects to ensure they reappear after window state changes like resizing or minimizing. In Java, using listeners like WindowFocusListeners and WindowStateListeners can trigger repaint functions to maintain visibility of components. A similar approach in Win32 programming could resolve the issue of disappearing content.
Nothing
13
0
I have a problem when programming windows, whenever i minimize or invalidate a region inside the window, the content that was on there before was not restored. Is there way to program windows such that it restores what was on there even if i invalidate or restore it after a minimize?
 
Computer science news on Phys.org
Agh, it's been way too long since I did anything with Win32. Sounds like a problem of not repainting. So any like, repainting routines that seem reasonable to call, try those? Sorry I can't be of more help.
 
I have not done much of win32 programming. But a similar problem is quite evident in java. For example whenever u take a panel graphics and draw an object it would disappear if u resize or min/max - imise.

The way i solved that problem in java was to buffer the objects getting drawn on the window (this idea i used in a paint program of mine). This is only for graphics drawn on panels and stuff. If the components are disappearing, in java i usually add windowfocuslisteners and windowstatelisteners , and then simply call the repaint function.

The point of my post is , if there is anything similar to this in win32 programming u will have solved ur problem.

-- AI
 
This week, I saw a documentary done by the French called Les sacrifiés de l'IA, which was presented by a Canadian show Enquête. If you understand French I recommend it. Very eye-opening. I found a similar documentary in English called The Human Cost of AI: Data workers in the Global South. There is also an interview with Milagros Miceli (appearing in both documentaries) on Youtube: I also found a powerpoint presentation by the economist Uma Rani (appearing in the French documentary), AI...

Similar threads

Replies
2
Views
2K
Replies
4
Views
2K
Replies
1
Views
2K
Replies
9
Views
2K
Replies
6
Views
4K
Replies
5
Views
3K
Replies
6
Views
3K
Replies
1
Views
165
Back
Top