22. [ ]
23.[ ]
24.[ ] const COLOR CHANGE_BLUE = {8,96,168}
25.[ ] int iColor = iRGB2Int(CHANGE_BLUE.red, CHANGE_BLUE.green, CHANGE_BLUE.blue)
26.[ ] RECT my_rect
27.[ ] HWND my_hWnd
28.[ ] DWORD my_hDC
29.[ ]
30.[-] testcase test_pagedown(int iBeginPage, int iEndPage ) appstate none
31. [ ] int iPage
32. [ ] int iTotal = 0
33. [ ] int iPlace
34. [ ] string sBeginPage = Str(iBeginPage)
35. [ ] string sPrePage = Str(iBeginPage)
36. [ ] MyPdf.SetActive()
37. [ ] MyPdf.AVToolBarHostView.AVToolBarEasel1.TextField1.SetText(sBeginPage)
38. [ ] MyPdf.AVToolBarHostView.AVToolBarEasel1.TextField1.TypeKeys("")
39. [ ] my_hWnd = MyPdf.AVToolBarHostView.AVInternalDocumentView.AVSplitterView.AVDocumentWrapperView.AVSplitterView.AVSplitationPageView.AVSplitterView.AVScrolledPageView.AVScrollView.AVPageView.GetHandle ()
40. [ ] my_hDC = GetDC (my_hWnd)
41. [ ]
42. [-] for (iPage=iBeginPage+1; iPage<=iEndPage; iPage++)
43. [ ] MyPdf.TypeKeys("")
44. [-] if(iPage%100 == 0)
文章来源于领测软件测试网 https://www.ltesting.net/