Advertisement
ASP_Volume2 Custom Controls/ Forms/ Menus #31624

Center Form on *available* desktop area

Centers a form in the part of your desktop not taken up by the taskbar or other system toolbars. If toolbars take up half the screen, no problem. If they are on the sides or the top, no problem.

AI

Riepilogo AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Codice sorgente
original-source
'Place this in Form_Load() or wherever else you think it is appropriate ;)
 CenterInWorkArea Me

The compressed file here includes a .cpp file that is HEAVILY commented explaining each and every line. Here, i will explain to you how to open them ;-)
First off... you have to open the file with a decompression program (the most popular is Winzip). Then, expand the file to your desktop, or any other folder you want.
On your C++ program, Go to File -> Open.
Note: On Visual C++, when you build the file it is going to give you a message box about a workspace thing.. just press Yes.
and then you're done!

Commenti originali (3)
Recuperato da Wayback Machine