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
Messages
13
Reaction score
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
 
I came across a video regarding the use of AI/ML to work through complex datasets to determine complicated protein structures. It is a promising and beneficial use of AI/ML. AlphaFold - The Most Useful Thing AI Has Ever Done https://www.ebi.ac.uk/training/online/courses/alphafold/an-introductory-guide-to-its-strengths-and-limitations/what-is-alphafold/ https://en.wikipedia.org/wiki/AlphaFold https://deepmind.google/about/ Edit/update: The AlphaFold article in Nature John Jumper...
Thread 'Urgent: Physically repair - or bypass - power button on Asus laptop'
Asus Vivobook S14 flip. The power button is wrecked. Unable to turn it on AT ALL. We can get into how and why it got wrecked later, but suffice to say a kitchen knife was involved: These buttons do want to NOT come off, not like other lappies, where they can snap in and out. And they sure don't go back on. So, in the absence of a longer-term solution that might involve a replacement, is there any way I can activate the power button, like with a paperclip or wire or something? It looks...

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
152
Back
Top