编程哪一家比较好
给程序员推荐⼀个查相似代码的好⽹站,节省⼤家时间
给程序员推荐⼀个查相似代码的好⽹站,
节省⼤家时间
原创讨厌编程2021-02-09 14:41:37
hotexamples/
提供了 PHP c JAVA GO PYTHON等主流语⾔代码的查
这是在github中查相似代码
很简单
输⼊进去要查的语句
(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_rect.right - window_rect.left))/2,
(GetSystemMetrics(SM_CYSCREEN) - (window_rect.bottom - p))/2, window_rect.right -
window_rect.left, window_rect.bottom - p, 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); rcWindow.bottom-=GetSystemMetrics(SM_CYCAPTION); MoveWindow(&rcWindow,FALSE); }
if(m_bDisableStandardButtons) HidePpgButtons(); HideTabControl(); AddTreeView(); AlignControls(); intnPage,nPages=m_acPropPages.GetSize(); CArray<HTREEITEM,HTREEITEM>stack;
for(nPage=0;nPage<nPages;nPage ) { cPropPage&page=m_acPropPages[nPage];
HTREEITEMparent=stack.GetSize()?stack[stack.GetSize()-1]:TVI_ROOT; HTREEITEMcur=NULL;
if(page.sCaption.GetLength()==0) GetPage(nPage)->GetWindowText(page.sCaption);
cur=m_cTreeCtrl.InsertItem(page.sCaption,parent); m_cTreeCtrl.SetItemData(cur,nPage);
intnType=page.nType&tps_item_type_mask; if(nType==tps_item_branch) stack.Add(cur);
if(nType==tps_item_endbranch) stack.SetSize(stack.GetSize()-1); if(page.nType&tps_item_expanded)
m_cTreeCtrl.SetItemState(cur, TVIS_EXPANDED, TVIS_EXPANDED); if (nPage == m_iWantedPage)
m_cTreeCtrl.Select (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 条评论