Visual C++ and MFC Fundamentals Chapter 15: Fundamental Controls
IDC_LBL_SSIDE &Side: Static 0x50010000 0x0
IDC_EDT_SSIDE Edit 0x5081 0000 0x0
IDC_BTN_SCALC &Calculate Button 0x50010000 0x0
IDC_LBL_SPRM &Perimeter: Static 0x50010000 0x0
IDC_EDT_SPRM Edit 0x50810000 0x1
IDC_LBL_SAREA &Area: Static 0x50010000 0x0
IDC_EDT_SAREA Edit 0x50800000 0x1
IDC_LBL_RLENGTH &Length: Static 0x5 0010000 0x0
IDC_EDT_RLENGTH Edit 0x50810000 0x0
IDC_LBL_RHEIGHT &Height: Static 0x50010000 0x0
IDC_EDT_RHEIGHT Edit 0x50810000 0x0
IDC_BTN_RCALC Calc&ulate Button 0x50010000 0x0
IDC_LBL_RPRM P&erimeter: Static 0x50010000 0x0
IDC_EDT_RPRM Edit 0x50 810000 0x1
IDC_LBL_RAREA A&rea: Static 0x50010000 0x0
IDC_EDT_RAREA Edit 0x50810000 0x1
- Save All
- Click anywhere on the dialog box to make sure it has focus. Press Ctrl + A to select
all controls. Press Ctrl + C to copy the selection - Open the IDD_CIRCULAR dialog box. Delete its control and drag its lower-right
corner to give a 320 x 200 size - Click anywhere in the body of the dyalog box. Press Ctrl + V to paste the selection
- Change the IDs and captions of the controls as follows (from left to right and up ->
down):
ID Caption Class Style ExStyle
IDC_LBL_CRADIUS &Radius: Static 0x50010000 0x0
IDC_EDT_CRADIUS Edit 0x50810000 0x0
IDC_BTN_CCALC &Calculate Button 0x50010000 0x0
IDC_LBL_CCIRC Circum&ference: Static 0x50010000 0x0
IDC_EDT_CCIRC Edit 0x508 10000 0x1
IDC_LBL_CAREA &Area: Static 0x50010000 0x0
IDC_EDT_CAREA Edit 0x50800000 0x1
IDC_LBL_VRADIUS Radiu&s: Static 0x50010000 0x0
IDC_EDT_VRADIUS Edit 0x50810000 0x0
IDC_LBL_HRADIUS Ra&dius: Static 0x50010000 0x0
IDC_EDT_HRADIUS Edit 0x5081000 0 0x0
IDC_BTN_ECALC Calc&ulate Button 0x50010000 0x0
IDC_LBL_ECIRC Circu&mference: Static 0x50010000 0x1
IDC_EDT_ECIRC Edit 0x50810000 0x1
IDC_LBL_EAREA Ar&ea: Static 0x50010000 0x0
IDC_EDT_EAREA Edit 0x50810000 0x0
- Save All. Just in case you may have change the contents of the clipboard, click the
body of the dialog box, press Ctrl + A and press Ctrl + C - Open the IDD_G3D dialog box. Delete its control and set its size to 320 x 210. Then,
click its body - Press Ctrl + V to paste
- Select a left and right combination of controls on the dialog box. Copy and past them
under the existing controls