Click here to Skip to main content
15,891,473 members
Articles / Desktop Programming / MFC

Automatic resizing controls

Rate me:
Please Sign up or sign in to vote.
4.67/5 (25 votes)
27 Jan 2005CPOL11 min read 160.7K   8.8K   83  
Mechanism to automatically dock/anchor your controls in a window or dialog.
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by AnchorMapDemo.rc
//
#define IDM_ABOUTBOX                    0x0010
#define IDD_ABOUTBOX                    100
#define IDS_ABOUTBOX                    101
#define IDD_ANCHORMAPDEMO_DIALOG        102
#define IDR_MAINFRAME                   128
#define IDEB_NOTES                      1000
#define IDPG_LEVEL                      1001
#define IDEB_FIRST_NAME                 1002
#define IDEB_LAST_NAME                  1003
#define IDEB_EMAIL                      1004
#define IDEB_PHONE1                     1005
#define IDEB_PHONE2                     1006
#define IDCB_SKILL1                     1007
#define IDCB_SKILL2                     1008
#define IDCB_SKILL3                     1009
#define IDCB_SKILL4                     1010
#define IDCB_SKILL5                     1011
#define IDCB_SKILL6                     1012
#define IDLB_GROUPS                     1013
#define IDPB_HELP                       1014
#define IDC_BUTTON3                     1016
#define IDST_HEADER                     1017
#define IDC_LINE1                       1018
#define IDST_FIRST_NAME                 1019
#define IDST_LAST_NAME                  1020
#define IDST_EMAIL                      1021
#define IDST_PHONE                      1022
#define IDST_SKILLBOX                   1023
#define IDGB_SKILLBOX                   1023
#define IDST_GROUPS                     1024
#define IDST_NOTES                      1025
#define IDC_LINE2                       1026
#define IDC_SCROLLBAR1                  1027
#define ID_TET                          32771
#define ID_TET_SADFASDF                 32772

// Next default values for new objects
// 
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE        132
#define _APS_NEXT_COMMAND_VALUE         32773
#define _APS_NEXT_CONTROL_VALUE         1030
#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.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) BluePearl Software
Germany Germany
I started in the late 80´s with a VIC 20 and wrote my first computer programs. In the 1990´s I developed games for a published diskmag and also became active in the demo-scene. That was the time where I got a deep unserstanding about computers, Bits and Bytes and programemd alot of different things (Games, Compilers, Tools and Alot of other stuff - It was just pure Fun !). In that Time I was also reading alot of books. I´ve used Turbo Pascal, Assembler, C++ and finally arrived in the business and C# world. In 2001 I founded my own company "BluePearl Software" and I develop business and technical applications for small and mid-sized companies as a freelancer, both industrial and non-industrial and in a wide range of business sectors.

I am still interested in the nitty-gritty of PCs and software and how to code/design software in an elegant way. I like to face and solve problems and design good software.

Comments and Discussions