W
www.0o0.com
Unregistered / Unconfirmed
GUEST, unregistred user!
兄弟们,帮我把以下vc翻译成 delphi。谢谢了~void CGetNumberDlg::OnChangeEditHide() { UpdateData() ; if(!m_strHide.IsEmpty()) { CPoint pt ; GetCursorPos(&pt) ; DWORD dwMousePos = 0 ; char szGetString[1024]={0}; char szGetWord[1024]={0}; if(GetMouseWord(m_hWnd,szGetString,szGetWord,dwMousePos)) { char szNumString[20]={0}; if (GetNumString(szGetString,dwMousePos,szNumString)) { for (int n=0;n<19;n++) szNumString[n]=szNumString[n+1]; } m_strGetWord = szNumString;//szGetWord ; UpdateData(false) ; SetWindowLong(m_hWnd, GWL_EXSTYLE, WS_EX_TOOLWINDOW ); ShowFloatWindow() ; GetCursorPos(&pt) ; m_GetPoint = pt ; SetTimer(10,800,NULL) ; CWnd* pTxt = GetDlgItem(IDC_EDIT_GETNUM); HDC hdc = ::GetDC( pTxt->m_hWnd ); SIZE ts; ::GetTextExtentPoint( hdc, szNumString, strlen(szNumString), &ts ); ::ReleaseDC( pTxt->m_hWnd, hdc ); ::SetWindowPos(m_hWnd, HWND_TOPMOST, pt.x - 1/*+5*/ , pt.y+10/*+15*/, 55 + ts.cx + 225, 25+ts.cy+225, SWP_SHOWWINDOW |SWP_NOACTIVATE ) ; } } } m_strHide.Empty(); UpdateData(false) ; }