Moves the upper-left corner of the element to the specified location for the movable behavior.
Syntax
movable.moveTo(iX, iY)
Parameters
iX Required. Horizontal scroll offset, in pixels.
iY Required. Vertical scroll offset, in pixels.
Return Value
No return value.
Remarks
The moveTo method is available only to objects participating in the movable behavior.
Applies To
movable
Platform Version
Win16: 5
Win32: 5
Unix: 5
Mac: 5
Version data is listed when the mouse hovers over a link, or the link has focus.
movable
Move the mouse pointer over an element in the Applies To list to display availability information for the listed platforms. Internet Explorer does not expose this member on platforms that are not listed.
CDC::LineTo
This method draws a line from the current position to, but not including, the point specified by x and y or point. The line is drawn with the selected pen. The current position is set to x,y or to point.
BOOL LineTo(
int x,
int y );
BOOL LineTo(
POINT point );
Parameters
x
The logical x-coordinate of the endpoint for the line.
y
The logical y-coordinate of the endpoint for the line.
point
The endpoint for the line. You can pass a POINT structure or a CPoint object for this parameter.
Return Value
Nonzero if the line is drawn; otherwise, it is zero.
Example
See the example for CRect::CenterPoint
Requirements
Windows CE versions: 1.0 and later
Header file: Declared in Afxwin.h
Platform: H/PC Pro, Palm-size PC, Pocket PC
See Also
CDC::MoveTo, CDC::GetCurrentPosition, CPoint, POINT
CDC
This class encapsulates the functionality of a Windows CE device context, which is a graphics device interface–managed structure containing information about the operating modes and current selections of a device, such as a display or printer.
Do all drawing through the methods of a CDC object. The class provides methods for device-context operations, working with drawing tools, type-safe graphics device interface (GDI) object selection, and working with colors and palettes. It also provides methods for getting and setting drawing attributes; mapping; working with the viewport; working with the window extent; converting coordinates; working with regions; clipping; drawing lines; and drawing simple shapes, ellipses, and polygons. Methods are also provided for drawing text, working with fonts, using printer escapes, scrolling, and playing metafiles.
To use a CDC object, construct it, and call the methods that parallel Windows functions that use device contexts.
For specific uses, the Microsoft Foundation Class Library for Windows CE provides several classes derived from CDC. CPaintDC encapsulates calls to BeginPaint and EndPaint. CClientDC manages a display context associated with the client area of a window. CWindowDC manages a display context associated with an entire window, including its frame and controls. CMetaFileDC associates a device context with a metafile.
CDC provides two methods, GetLayout and SetLayout, for reversing the layout of a device context, which does not inherit its layout from a window. Right-to-left orientation is necessary for applications written for languages such as Arabic or Hebrew, in which the character layout is right to left.
CDC contains two device contexts, m_hDC and m_hAttribDC, that refer to the same device on the creation of a CDC object. CDC directs all output GDI calls to m_hDC and most attribute GDI calls to m_hAttribDC. An example of an attribute call is GetTextColor; SetTextColor is an output call.
For example, the framework uses these two device contexts to implement a CMetaFileDC object that sends output to a metafile while reading attributes from a physical device. Print preview is implemented in the framework in a similar fashion. You can also use the two device contexts in the same way in your application-specific code.
There are times when you may need text-metric information from both the m_hDC and m_hAttribDC device contexts. The following pairs of functions provide this capability: