2024年4月28日发(作者:)
(GetSystemMetrics(SM_CXSCREEN) - 640)/2, (GetSystemMetrics(SM_CYSCREEN) - 480)/2, RECT window_rect;
GetWindowRect(hwnd,&window_rect); AdjustWindowRectEx(&window_rect, GetWindowStyle(hwnd),
GetMenu(hwnd)!=NULL, GetWindowExStyle(hwnd)); SetWindowPos(hwnd, HWND_TOP,
(GetSystemMetrics(SM_CXSCREEN) - (window_ - window_))/2,
(GetSystemMetrics(SM_CYSCREEN) - (window_ - window_))/2, window_ -
window_, window_ - window_, SWP_SHOWWINDOW);
// static
int NativeScrollBarWrapper::GetHorizontalScrollBarHeight()
{
return GetSystemMetrics(SM_CYHSCROLL);
}
BOOL CTreePropertySheet::OnInitDialog() { CPropertySheet::OnInitDialog(); if(m_bSpecialCaption) {
CRectrcWindow; ModifyStyle(WS_CAPTION,0,0); ModifyStyle(WS_SYSMENU,0,0); GetWindowRect(&rcWindow);
-=GetSystemMetrics(SM_CYCAPTION); MoveWindow(&rcWindow,FALSE); }
if(m_bDisableStandardButtons) HidePpgButtons(); HideTabControl(); AddTreeView(); AlignControls();
intnPage,nPages=m_e(); CArray
for(nPage=0;nPage HTREEITEMparent=e()?stack[e()-1]:TVI_ROOT; HTREEITEMcur=NULL; if(gth()==0) GetPage(nPage)->GetWindowText(on); cur=m_Item(on,parent); m_mData(cur,nPage); intnType=&tps_item_type_mask; if(nType==tps_item_branch) (cur); if(nType==tps_item_endbranch) e(e()-1); if(&tps_item_expanded) m_mState(cur, TVIS_EXPANDED, TVIS_EXPANDED); if (nPage == m_iWantedPage) m_ (cur, TVGN_CARET); } if(m_pCaptionFont==NULL) SetCaptionFont('MS Sans Serif',18,TRUE); if(m_pCaptionDescrFont==NULL) SetCaptionDescrFont('MS Sans Serif',18,TRUE); // remove apply button CWnd* pTemp; pTemp = GetDlgItem(ID_APPLY_NOW); if (pTemp) pTemp->ShowWindow (SW_HIDE); return TRUE; // return TRUE unless you set the focus to a control } 收藏 举报 0 条评论
发布评论