AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Win32/Win64 API (native code) Delphi fontänderung eines fensters mit nonvcl
Thema durchsuchen
Ansicht
Themen-Optionen

fontänderung eines fensters mit nonvcl

Ein Thema von heiopei · begonnen am 3. Mär 2005 · letzter Beitrag vom 7. Mär 2005
 
heiopei
(Gast)

n/a Beiträge
 
#4

Re: fontänderung eines fensters mit nonvcl

  Alt 5. Mär 2005, 13:47
na gut,
also hier ist jetzt mal mein code, den ich bis jetzt hab:
(hatte davor zeitbedingt keinen zugriff drauf )

Delphi-Quellcode:
//innerhalb von wm_create...
  myfont := CreateFont(-12, 0, 0, 0, 0, 0, 0, 0, ANSI_CHARSET,
      OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS, DEFAULT_QUALITY,
      DEFAULT_PITCH, 'MS Sans Serif');
  if myfont <> 0 then
    SendMessage(hwnd, WM_SETFONT, Integer(myfont), Integer(true));

//innerhalb von keydown...
  ahdc := GetDC(hWnd);
  SetBkMode(ahdc, TRANSPARENT);
  SetTextColor(ahdc, $0000FF00);
  SelectObject(ahdc, myfont);
  Textout(ahdc, tpos, rpos, PChar(@wparam), SizeOf(1));
  Inc(tpos, 10);
  ReleaseDC(hWnd, ahdc);
bin für schnelle hilfe sehr sehr dankbar!!!

heiopei
  Mit Zitat antworten Zitat
 


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 02:03 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz