BCGControlBar Pro for MFC
void CBCGPAppBarWnd::SetPos ( CRect &  rect)

Sets the size and screen position of an application bar.

SetPos is a wrapper function for the ABM_SETPOS message. It calls the SHAppBarMessage function to set the size and screen position of an application bar.

This function requests the system to set the size and screen position of an application bar. The system may change the rect rectangle to make it a valid rectangle on the desktop. The edge we're moving to is saved in the application bar APPBARSTATE struct (m_uSide member).

Usually, you don't need to call directly any wrapper functions, the framework does all necessary calls.

Parameters
rectContains the bounding rectangle specifying the size and position of the application bar.