VC automatically adjusts the size of the form controls (no longer need to adjust the controls one by one)

 

/*

-------------------------------------------------

Features:

Automatically adjust the size of form controls (no longer need to adjust the controls one by one)

 

Description: (Publish a test version, see everyone's needs, and then improve it)

Although adjust the accuracy, it is higher than the test, but there are still some errors.

The subform under the tab control has not been adjusted

No adjustments are made to radio and check boxes

The drop-down box cannot be pulled down and has not been adjusted

 

-----------------------------------------------

Author: jues (small quiet)

Email: [email protected]

Date: 2011-06-02

 

-------------------------------------------------

usage:

//Put the following files in the project root directory

juesDlgSize.h

juesDlgSizeD.lib

juesDlgSizeR.lib

juesDlgSizeD.dll

juesDlgSizeR.dll

 

 

1. Add header files to the window class

 

#include "juesDlgSize.h"

#if _DEBUG

#pragma comment(lib, "juesDlgSizeD.lib")

#else

#pragma comment(lib, "juesDlgSizeR.lib")

#endif

 

 

 

2. Add function members

Such as:

CjuesDlgSize m_juesSize;

 

3. Add in the initialization function (such as the end of OnInitDialog function):

 

m_juesSize.FindID( this->m_hWnd );

 

4. Added in (overloaded) OnSize function

 

//CDialog::OnSize(nType, cx, cy);

m_DlgSize.OnSize(nType, cx, cy);

------------------------------------------------------------

*/



Download address (without score):  http://download.csdn.net/source/3334037

 

 


 

Guess you like

Origin blog.csdn.net/juesystem/article/details/6461198