|
|
1.1 ! root 1: Sample: AngleArc Demonstration Program ! 2: ! 3: Summary: ! 4: ! 5: The sample named ANGLE provides a demonstration of how the ! 6: new AngleArc API function works. The X, Y, and RADIUS ! 7: parameters are all in the world coordinate space. The start ! 8: angle and sweep angle are floating-point values and are ! 9: interpreted as degrees. ! 10: ! 11: More Information: ! 12: ! 13: This program presents a dialog box stretched across the top ! 14: of the window. The user can set the parameters for the ! 15: AngleArc API function by changing the values in the entry ! 16: fields of this dialog box. A button on the dialog box then ! 17: allows the user to immediately see the results of these ! 18: values on the arc in the client area. If the values in the ! 19: entry field are invalid, the program will write out this ! 20: information and not draw the arc. The origin of the viewport ! 21: is shifted down in the client area so that it exists at the ! 22: upper-left corner of the viewable area. ! 23: ! 24: The following is a list of the Win32 API functions used in ! 25: this sample: ! 26: ! 27: AngleArc EndPaint LoadIcon SetWindowPos ! 28: BeginPaint GetClientRect LineTo ShowWindow ! 29: CreateDialog GetDlgItemInt MoveToEx TextOut ! 30: CreatePen GetMessage PostQuitMessa TranslateMess ! 31: ge age ! 32: CreateWindow GetStockObjec SendMessage UpdateWindow ! 33: t ! 34: DeleteObject InvalidateRec SelectObject WndClass ! 35: t ! 36: DefWindowProc IsWindow SetDlgItemTex ! 37: t ! 38: DispatchMessag LoadCursor SetViewportOr ! 39: e gEx ! 40: ! 41: ! 42: ! 43:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.