void CBCGPAppBarWnd::QueryPos | ( | CRect & | rect | ) |
Requests a size and a screen position for an application bar.
QueryPos is a wrapper function for the ABM_QUERYPOS message. It calls the SHAppBarMessage function to request a size and screen position for an application bar.
This function asks the system if the application bar can occupy the rectangle specified in rect. The system will 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.
rect | Contains the application bar's bounding rectangle. |