Kadmos.com

  Home | Products | Download | Purchase | Support | Language

Google
Search site:

Products
DXFReader ActiveX Control
 • DXF Files Overview
 • Distribution
 • Installation
 • Quick Start
 • Control Summary
 • Download
 • Buy now!
 • DXFReader Reference
  • Properties
   • ACADVersion
   • AppID
   • AppIDs
   • AutoRedraw
   • AxesColor
   • BackColor
   • BaseX
   • BaseY
   • Block
   • BlockRecord
   • BlockRecords
   • Blocks
   • BorderStyle
   • Class
   • Classes
   • CurrentColor
   • CurrentEleva...
   • CurrentLayer
   • CurrentLineType
   • CurrentTextS...
   • CurrentThick...
   • DateCreated
   • DateLastEdited
   • DIMSTYLEc
   • DimStyles
   • DisplayAspec...
   • DrawingComment
   • DrawMode
   • Enabled
   • Entities
   • Entity
   • FileName
   • FileStatus
   • Font
   • ForeColor
   • GridColor
   • hDC
   • Layer
   • Layers
   • LineType
   • LineTypes
   • MaxX
   • MaxY
   • MinX
   • MinY
   • MouseIcon
   • MousePointer
   • Obj
   • Objects
   • PaletteButto...
   • PaletteCance...
   • PaletteCaption
   • PaletteOkBut...
   • PaletteWindo...
   • PaletteWindo...
   • PaletteWindo...
   • Picture
   • PictureBaseX
   • PictureBaseY
   • PictureHeight
   • PictureScale...
   • PictureScaleX
   • PictureScaleY
   • PictureWidth
   • PlotAspectRatio
   • PlotDocument...
   • PlotMarginBo...
   • PlotMarginLeft
   • PlotMarginRight
   • PlotMarginTop
   • PlotMode
   • PlotOriginX
   • PlotOriginY
   • PlotPenWidth
   • PlotRendering
   • PlotRotation
   • PlotScale
   • RotationAngle
   • ScaleX
   • ScaleY
   • ScrollBars
   • ShowAxes
   • ShowBasePoint
   • ShowGrid
   • ShowLimits
   • ShowPlotMargins
   • Style
   • Styles
   • ToolTipText
   • TotalEditTime
   • TotalEditTim...
   • TranslationX
   • TranslationY
   • UCS
   • UCSs
   • UserTimer
   • UserTimerDays
   • Version
   • View
   • ViewPort
   • ViewPortMaxX
   • ViewPortMaxY
   • ViewPortMinX
   • ViewPortMinY
   • ViewPorts
   • Views
   • ZoomInOutPer...
Hidden Properties
  • Methods
  • Events

 • DXFPlot Reference

IXF ActiveX Control

Postel ActiveX Control

Tech Support
OnLine Support
Phone Support
Sample Code
Registered Users
FAQ
References
Kadmos
Contact Kadmos
Environment
Customer List
Newsletter
Download
ActiveX Controls
Updates
Purchase
Price List
International Resellers
Our Guarantee
Shipment Options
Payment Options
Shopping Cart
    DXFReader Control - hDC Property

Kadmos DXFReader ActiveX Control      Previous Next
DXFReader Control
hDC Property

Description Returns the Windows hDC associated with the control.
Syntax
Visual Basic
Value& = [form.]DXFReader.hDC
Visual C++ long DXFReader.GethDC();
void DXFReader.SethDC(long nNewValue);
Delphi property hDC: Integer;
C# int DXFReader.hDC;
Remarks This property is useful if you wish to call Windows API functions to draw in the control.

The code below will add an icon to the drawing using the DrawIcon API function:



Private Sub DXFReader1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)

 With DXFReader1

  If Shift = 1 Then

   DrawIcon .hDC, .CoordXtoPixel(X), .CoordYtoPixel(Y),LoadPicture(App.Path + "\stop.ico").Handle

  End If

 End With

End Sub

See the CoordXtoPixel, CoordYtoPixel, PixelXtoCoord, and PixelYtoCoord methods for more information.
Data Type Long

Copyright © 2008 Kadmos.com - All rights reserved. Privacy Policy