vb@rchiv
VB Classic
VB.NET
ADO.NET
VBA
C#
Blitzschnelles Erstellen von grafischen Diagrammen!  
 vb@rchiv Quick-Search: Suche startenErweiterte Suche starten   Impressum  | Datenschutz  | vb@rchiv CD Vol.6  | Shop Copyright ©2000-2025
 
zurück

 Sie sind aktuell nicht angemeldet.Funktionen: Einloggen  |  Neu registrieren  |  Suchen

Visual-Basic Einsteiger
Re: Fontgröße bei Printer-Objekt und Picturebox unterschiedlich? 
Autor: Blackbox
Datum: 22.03.16 18:53

Hallo DustyD

nach einer halben Stunde Korrektur funktioniert dieser Code:

zuerst das Modul:

Public Declare Function GetProfileString Lib "kernel32.dll" Alias _
  "GetProfileStringA" ( _
     ByVal lpAppName As String, _
     ByVal lpKeyName As String, _
     ByVal lpDefault As String, _
     ByVal lpReturnedString As String, _
     ByVal nSize As Long) As Long
 
Public Declare Function CreateIC Lib "GDI32" _
   Alias "CreateICA" (ByVal lpDriverName$, ByVal lpDeviceName$, ByVal _
   lpOutput$, ByVal lpInitData%) As Long
 
Public Declare Function DeleteDC Lib "GDI32" (ByVal hdc As Long) As Long
 
Public Declare Function GetDeviceCaps Lib "gdi32.dll" ( _
     ByVal hdc As Long, _
     ByVal nIndex As Long) As Long
 
 
 
  Global Const DRIVERVERSION = 0
   Global Const TECHNOLOGY = 2
   Global Const HORZSIZE = 4
   Global Const VERTSIZE = 6
   Global Const HORZRES = 8
   Global Const VERTRES = 10
   Global Const BITSPIXEL = 12
   Global Const PLANES = 14
   Global Const NUMBRUSHES = 16
   Global Const NUMPENS = 18
   Global Const NUMMARKERS = 20
   Global Const NUMFONTS = 22
   Global Const NUMCOLORS = 24
   Global Const PDEVICESIZE = 26
   Global Const CURVECAPS = 28
   Global Const LINECAPS = 30
   Global Const POLYGONALCAPS = 32
   Global Const TEXTCAPS = 34
   Global Const CLIPCAPS = 36
   Global Const RASTERCAPS = 38
   Global Const ASPECTX = 40
   Global Const ASPECTY = 42
   Global Const ASPECTXY = 44
   Global Const LOGPIXELSX = 88
   Global Const LOGPIXELSY = 90
   Global Const SIZEPALETTE = 104
   Global Const NUMRESERVED = 106
   Global Const COLORRES = 108
   Global Const DT_PLOTTER = 0
   Global Const DT_RASDISPLAY = 1
   Global Const DT_RASPRINTER = 2
   Global Const DT_RASCAMERA = 3
   Global Const DT_CHARSTREAM = 4
   Global Const DT_METAFILE = 5
   Global Const DT_DISPFILE = 6
   Global Const CP_NONE = 0
   Global Const CP_RECTANGLE = 1
   Global Const RC_BITBLT = 1
   Global Const RC_BANDING = 2
   Global Const RC_SCALING = 4
   Global Const RC_BITMAP64 = 8
   Global Const RC_GDI20_OUTPUT = &H10
   Global Const RC_DI_BITMAP = &H80
   Global Const RC_PALETTE = &H100
   Global Const RC_DIBTODEV = &H200
   Global Const RC_BIGFONT = &H400
   Global Const RC_STRETCHBLT = &H800
   Global Const RC_FLOODFILL = &H1000
   Global Const RC_STRETCHDIB = &H2000


Beitrag wurde zuletzt am 22.03.16 um 18:57:49 editiert.
alle Nachrichten anzeigenGesamtübersicht  |  Zum Thema  |  Suchen

 ThemaViews  AutorDatum
Fontgröße bei Printer-Objekt und Picturebox unterschiedlich?2.282DustyD.20.03.16 16:52
Re: Fontgröße bei Printer-Objekt und Picturebox unterschiedl...1.534Blackbox20.03.16 18:36
Re: Fontgröße bei Printer-Objekt und Picturebox unterschiedl...1.412DustyD.20.03.16 19:41
Re: Fontgröße bei Printer-Objekt und Picturebox unterschiedl...1.487Blackbox20.03.16 19:47
Re: Fontgröße bei Printer-Objekt und Picturebox unterschiedl...1.435DustyD.21.03.16 21:18
Re: Fontgröße bei Printer-Objekt und Picturebox unterschiedl...1.424Blackbox22.03.16 18:53
Re: Fontgröße bei Printer-Objekt und Picturebox unterschiedl...1.406DustyD.23.03.16 00:13
Re: Fontgröße bei Printer-Objekt und Picturebox unterschiedl...1.470Blackbox23.03.16 15:30
Dann die Form1.430Blackbox22.03.16 18:54
Dann die Form21.593Blackbox22.03.16 18:56
Dann die Form31.473Blackbox22.03.16 18:56
Re: Fontgröße bei Printer-Objekt und Picturebox unterschiedl...1.362DustyD.09.04.16 20:17

Sie sind nicht angemeldet!
Um auf diesen Beitrag zu antworten oder neue Beiträge schreiben zu können, müssen Sie sich zunächst anmelden.

Einloggen  |  Neu registrieren

Funktionen:  Zum Thema  |  GesamtübersichtSuchen 

nach obenzurück
 
   

Copyright ©2000-2025 vb@rchiv Dieter Otter
Alle Rechte vorbehalten.
Microsoft, Windows und Visual Basic sind entweder eingetragene Marken oder Marken der Microsoft Corporation in den USA und/oder anderen Ländern. Weitere auf dieser Homepage aufgeführten Produkt- und Firmennamen können geschützte Marken ihrer jeweiligen Inhaber sein.

Diese Seiten wurden optimiert für eine Bildschirmauflösung von mind. 1280x1024 Pixel