VC automatically adjusts the size of the Form Control (no more widgets need to be adjusted one by one)

Source: Internet
Author: User

 

/*

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

Function:

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

 

Note: (release a test version to check your requirements and improve it)

Although the accuracy is higher than the test time, there are still some errors,

The subforms under the tab control have not been adjusted.

The single choice and check boxes are not adjusted.

You cannot pull down the drop-down list or adjust the drop-down list.

 

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

Author: jues (xiaoyou)

Email: jue_s@live.cn

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 the header file 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

For example:

Cjuesdlgsize m_juessize;

 

3. Add the following to the initialization function (for example, the oninitdialog function:

 

M_juessize.findid (this-> m_hwnd );

 

4. Add the onsize function to the (overload) function.

 

// Cdialog: onsize (ntype, CX, CY );

M_dlgsize.onsize (ntype, CX, CY );

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

*/



(No score): http://download.csdn.net/source/3334037

 

 


 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.