View Single Post
Old 12-15-2020, 10:53 PM   #15
1976gmc20
Registered User
 
Join Date: May 2015
Location: Montana
Posts: 3,696
Re: Windows Task Manager - The Story

Actually, I more or less followed the code explanations ... except it was a bit too fast.

~20 years ago I wrote a turbofan maintenance application where we made sure that only one instance of it could be run at a time. I also tried to convince them that the program should also just lock the laptop and not allow switching to any other task, but no go on that. There was big concern at the time that because Windows was "non-deterministic" that the user would pop over and play solitaire or something while a data download was going on and something would get corrupted. I had to adapt CFile into a child class with all sorts of protections, so if all the data wasn't perfect (checksums, etc) then the file did not get written to the disk. So it all had to go to a huge memory buffer first!

Like your Task Manager, this application was basically all tab pages for display of different data blocks. I created a CPage child class that was the base class for all my different tabs with all the shared operations. The data was all handled in separate non-visual classes, so most of the event handlers only had one or two lines of code
__________________
Current/past Chevy/GMC trucks:
1958 Chevy C-60; 1965 GMC C-50; 1965 Chevy C-10; 1971 Chevy K-10; 1973 Chevy K-20; 1976 GMC C-20; 1977 Chevy C-10 Suburban; 1980 Chevy K-10; 1989 Chevy K1500; 1991 GMC V1500 Suburban; 2016 Chevy K2500 HD

Other vehicles: 1988 Jeep XJ; 2011 Toyota 4Runner
1976gmc20 is offline   Reply With Quote