15,979
社区成员
发帖
与我相关
我的任务
分享
void CBorrowWndView::InitSheet()
{
//set the progertysheet page====================================
m_sheet.EnableStackedTabs(FALSE);
m_sheet.AddPage(&this->m_Page_BorrowList);
m_sheet.AddPage(&this->m_Page_Borrowing);
CRect rect;
GetClientRect(rect);
m_sheet.Create(this, WS_CHILD | WS_VISIBLE, WS_EX_CONTROLPARENT);
m_sheet.GetWindowRect(&rect);
int width = rect.right - rect.left;
int height = rect.bottom - rect.top;
m_sheet.SetWindowPos(NULL, 8, 8, 0, 0, SWP_NOSIZE | SWP_NOZORDER | SWP_NOACTIVATE);
}