Question about win32 programming

  • Thread starter Nothing
  • Start date
  • Tags
    Programming
In summary: 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? 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. A similar problem can be seen in Java, where resizing or minimizing a panel can cause drawn objects to disappear. To solve this, some suggest buffering the objects or using window focus and state listeners to call the repaint function. If
  • #1
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
  • #2
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.
 
  • #3
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
 

FAQ: Question about win32 programming

What is win32 programming?

Win32 programming refers to the process of creating applications for the Microsoft Windows operating system using the Win32 API (Application Programming Interface). This API provides developers with access to the underlying code and functions of the Windows operating system, allowing them to create powerful and customizable applications.

What are the benefits of using win32 programming?

Win32 programming allows for greater control and customization over the appearance and functionality of Windows applications. It also provides access to a wide range of features and capabilities, such as networking, file management, and user interface design.

What languages can be used for win32 programming?

The Win32 API can be used with a variety of programming languages, including C, C++, C#, and Visual Basic. Each language has its own specific syntax and development environment, but all can be used to create powerful and functional Windows applications.

What are the key components of win32 programming?

The key components of win32 programming are the Windows operating system, the Win32 API, and a programming language. Additionally, knowledge of computer architecture and software development principles is necessary to effectively utilize win32 programming.

Where can I learn more about win32 programming?

There are many resources available for learning win32 programming, including online tutorials, books, and courses. Microsoft also provides documentation and resources on their official website. Additionally, joining online communities and forums dedicated to win32 programming can provide valuable insights and support from experienced developers.

Similar threads

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