BCGSuite for MFC
void CBCGPVisualContainer::EnableEditMode ( BOOL  bEnable = TRUE,
DWORD  dwEditFlags = 0 

Enables or disables the container edit mode.

bEnableTRUE to enable, FALSE to disable.
dwEditFlagsThe edit flags. See remarks for detailed information about these flags.

In the edit mode the user is able to select/move/resize the container child objects and make copies of the selected objects.

When the edit mode is off, the container is "locked" and user cannot modify the objects layout using mouse or keyboard.

dwEditFlags is a combination of the following values:

  • BCGP_CONTAINER_SINGLE_SEL: set this flag if you wish to allow selecting a single object only.
  • BCGP_CONTAINER_GRID: draws a grid on the container background. Call SetGridBrush() to customize the grid appearance.
  • BCGP_CONTAINER_ENABLE_KEYBOARD: allows objects moving/resizing using navigation keys.
  • BCGP_CONTAINER_DISABLE_KEYBOARD_OBJECT: don't call CBCGPBaseVisualObject::OnKeyboardDown for all container child objects if this flag is specified.
  • BCGP_CONTAINER_ENABLE_COPY: allows copying of selected object(s) using Ctrl+Mouse Move or Ctrl+Keyboard navigation key events.