Click here to Skip to main content
15,884,472 members
Articles / Programming Languages / C++

EasySize - Dialog Resizing in No Time!

Rate me:
Please Sign up or sign in to vote.
4.95/5 (213 votes)
23 Mar 20074 min read 1.1M   27.9K   290  
An easy way to position controls in resizable dialogs or property pages using just a few macros
In this article, you will learn to design your dialog the way you want it to look in the resource editor, and then define how the controls will behave when the dialog is resized using one single macro for each control.
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by EasySizeDemo.rc
//
#define IDM_ABOUTBOX                    0x0010
#define IDD_ABOUTBOX                    100
#define IDS_ABOUTBOX                    101
#define IDD_EASYSIZEDEMO_DIALOG         102
#define IDR_MAINFRAME                   128
#define IDC_STATUS                      1000
#define IDC_CONTENT                     1001
#define IDC_RADIO1                      1002
#define IDC_RADIO2                      1003
#define IDC_TITLE                       1004
#define IDC_STATUSFRAME                 1005
#define IDC_MYICON1                     1007
#define IDC_MYICON2                     1008
#define IDC_MIDFRAME                    1009
#define IDC_MIDRECT                     1010

// Next default values for new objects
// 
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE        129
#define _APS_NEXT_COMMAND_VALUE         32771
#define _APS_NEXT_CONTROL_VALUE         1011
#define _APS_NEXT_SYMED_VALUE           101
#endif
#endif

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


Written By
Engineer Nokia
Denmark Denmark
My programming experience started a long time ago in
QBasic (on a 25MHz 486).
I'm now mainly using Java, C++, C, MFC, Perl and PHP, but have used quite a number of other languages as well for various projects.

Comments and Discussions