Dela via


CBasePane::SetPaneAlignment

Sets the alignment for the pane.

virtual void SetPaneAlignment(
   DWORD dwAlignment
);

Parameters

  • [in] dwAlignment
    Specifies the new alignment.

Remarks

Usually, the framework calls this method when a pane is docked from one side of the main frame to another.

The following table shows the possible values for dwAlignment:

Value

Alignment

CBRS_ALIGN_LEFT

Left alignment.

CBRS_ALIGN_RIGHT

Right alignment.

CBRS_ALIGN_TOP

Top alignment.

CBRS_ALIGN_BOTTOM

Bottom alignment.

Requirements

Header: afxbasepane.h

See Also

Concepts

MFC Hierarchy Chart

Reference

CBasePane Class

CBasePane::GetCurrentAlignment

Change History

Date

History

Reason

February 2010

Added table for dwAlignment values.

Customer feedback.