Minimizing All Windows In Win95

Minimizing All Windows In Win95

In Windows 95, only the VB windows with the property ShowInTaskbar setto True are minimized if you select Minimize All Windows from the taskbar context menu. This is the way Win95 handles the window class. Formswith ShowInTaskbar=False work like property pages. You can easily demonstratethis.Bring up the Display properties dialog from the control panel or byright-clicking on the desktop. Do a Minimize All. The property page remains.If Win95 were to minimize the window, it would sit on top of the task bar,not in it. Win95 provides this functionality, while VB4 just sets the bit.The way that standard Win95 applications handle this is by having amain window that shows in the taskbar. All auxiliary windows are ownedby the main window. When an owner window is minimized, owned windows willhide, not minimize.You can use code to make a VB window be owned by another VB window,but there are implications to this solution. Owned windows are always ontop of the owner window.On form load of each child window, do a GetWindow API call, using GW_OWNERon the form’s window handle (hwnd) to get the original owner window handle.Save this value for later use. Proceed to make the subwindow “ownedby” the main window by calling SetWindowLong, like this:

 iret = SetWindowLong(Form2.hwnd, _GWL_HWNDPARENT, _Form1.hwnd)

On form unload of the main window restore all remaining (owned) subwindowsback to being owned by their original owner window. Otherwise, you mayget an Invalid Page Fault error.

Share the Post:
Heading photo, Metadata.

What is Metadata?

What is metadata? Well, It’s an odd concept to wrap your head around. Metadata is essentially the secondary layer of data that tracks details about the “regular” data. The regular

XDR solutions

The Benefits of Using XDR Solutions

Cybercriminals constantly adapt their strategies, developing newer, more powerful, and intelligent ways to attack your network. Since security professionals must innovate as well, more conventional endpoint detection solutions have evolved

AI is revolutionizing fraud detection

How AI is Revolutionizing Fraud Detection

Artificial intelligence – commonly known as AI – means a form of technology with multiple uses. As a result, it has become extremely valuable to a number of businesses across

AI innovation

Companies Leading AI Innovation in 2023

Artificial intelligence (AI) has been transforming industries and revolutionizing business operations. AI’s potential to enhance efficiency and productivity has become crucial to many businesses. As we move into 2023, several

data fivetran pricing

Fivetran Pricing Explained

One of the biggest trends of the 21st century is the massive surge in analytics. Analytics is the process of utilizing data to drive future decision-making. With so much of

kubernetes logging

Kubernetes Logging: What You Need to Know

Kubernetes from Google is one of the most popular open-source and free container management solutions made to make managing and deploying applications easier. It has a solid architecture that makes