begin process at 2010 03 20 04:39:03
  Trouver un code source :
 
dans
 
Accueil > 

Code

 > 

Api Windows

 > ECRIRE DU TEXTE DANS UNE FENÊTRE (NASM)

ECRIRE DU TEXTE DANS UNE FENÊTRE (NASM)


 Description

Sa mets du texte avec une couleur en fond

Source

  • [EXTERN BeginPaint]
  • [Import BeginPaint user32.dll]
  • [EXTERN CreateFontA]
  • [import CreateFontA gdi32.dll]
  • [EXTERN SelectObject]
  • [import SelectObject gdi32.dll]
  • [EXTERN SetTextColor]
  • [Import SetTextColor gdi32.dll]
  • [EXTERN SetBkColor]
  • [Import SetBkColor gdi32.dll]
  • [EXTERN TextOutA]
  • [Import TextOutA gdi32.dll]
  • [EXTERN EndPaint]
  • [Import EndPaint user32.dll]
  • push dword PAINTSTRUCT
  • push dword [handle]
  • call [BeginPaint]
  • mov dword [hdc] , eax
  • push dword police
  • push dword 40h ; 64/0
  • push dword 00h
  • push dword 00h
  • push dword 00h
  • push dword 0FFh
  • push dword 00h
  • push dword 00h
  • push dword 00h
  • push dword 190h ; 400/
  • push dword 00h
  • push dword 00h
  • push dword 10h
  • push dword 18h
  • call [CreateFontA]
  • push dword eax
  • push dword [hdc]
  • call [SelectObject]
  • mov dword [hfont] , eax
  • xor eax,eax
  • mov ah,032h
  • shl eax,8
  • mov ah,0C8h
  • mov al,0C8h
  • push dword eax
  • push dword [hdc]
  • call [SetTextColor]
  • xor eax,eax
  • mov ah,0FFh
  • shl eax,8
  • mov ah,0h
  • mov al,0h
  • push dword eax
  • push dword [hdc]
  • call [SetBkColor]
  • push dword 12h
  • push dword mon_text
  • push dword 00h
  • push dword 00h
  • push dword [hdc]
  • call [TextOutA]
  • push dword [hfont]
  • push dword [hdc]
  • call [SelectObject]
  • push dword PAINTSTRUCT
  • push dword [handle]
  • call [EndPaint]
  • PAINTSTRUCT resd 16
  • RECTO resd 4
  • hdc resd 1
  • hfont resd 1
  • police db "Courier New",0
  • mon_text db "Mon texte a moi!!!",0
[EXTERN BeginPaint]
[Import BeginPaint user32.dll]
[EXTERN CreateFontA]
[import CreateFontA gdi32.dll]
[EXTERN SelectObject]
[import SelectObject gdi32.dll]
[EXTERN SetTextColor]
[Import SetTextColor gdi32.dll]
[EXTERN SetBkColor]
[Import SetBkColor gdi32.dll]
[EXTERN TextOutA]
[Import TextOutA gdi32.dll]
[EXTERN EndPaint]
[Import EndPaint user32.dll]



push dword  PAINTSTRUCT
push dword [handle]
call [BeginPaint]

mov dword [hdc] , eax

push dword police
push dword 40h ; 64/0
push dword 00h
push dword 00h
push dword 00h
push dword 0FFh
push dword 00h
push dword 00h
push dword 00h
push dword 190h ; 400/
push dword 00h
push dword 00h
push dword 10h
push dword 18h
call [CreateFontA]



push dword eax
push dword [hdc]
call [SelectObject]
mov dword [hfont] , eax 

xor eax,eax
mov ah,032h
shl eax,8
mov ah,0C8h
mov al,0C8h

push dword eax
push dword [hdc]
call [SetTextColor]

xor eax,eax
mov ah,0FFh
shl eax,8
mov ah,0h
mov al,0h

push dword eax
push dword [hdc]
call [SetBkColor]

push dword 12h
push dword mon_text
push dword 00h
push dword 00h
push dword [hdc]
call [TextOutA]

push dword [hfont]
push dword [hdc]
call [SelectObject]


push dword PAINTSTRUCT
push dword [handle]
call [EndPaint]



PAINTSTRUCT 			resd 16
RECTO 				resd 4
hdc 				resd 1

hfont 				resd 1
police				db "Courier New",0


mon_text			db "Mon texte a moi!!!",0



 Sources du même auteur

POSTION SOURI (NASM)
FENÊTRE WIDOWS (NASM)
UTILISER API BEGINPAINT DÉBUTANT (NASM)

 Sources de la même categorie

Source avec Zip OBTENIR LA VERSION DU SYSTEME,SON ENVIRONNEMENT,LE SERVICE P... par ToutEnMasm
Source avec Zip TÉLÉCHARGER UN FICHIER DEPUIS UNE URL ET/OU ORGANISER DES CL... par ToutEnMasm
SCREENSHOT CAPTURE D'ECRAN par VBFRANCE
Source avec Zip Source avec une capture PROGRAMME DE VISUALISATION ET D'ANALYSE SPECTRALE DE FICHIER... par Nasman
Source avec Zip CRÉATION DE GRAPHIQUES AVEC LES API WINDOWS par Nasman

Commentaires et avis

Aucun commentaire pour le moment.

 Ajouter un commentaire




Nos sponsors


Sondage...

Comparez les prix


HTC Hero

Entre 550€ et 550€

CalendriCode

Mars 2010
LMMJVSD
1234567
891011121314
15161718192021
22232425262728
293031    

Consulter la suite du CalendriCode

Photothèque

 
Développement réalisé par Nicolas SOREL (Nix) avec l'aide de : Cyril DURAND et Emmanuel (EBArtSoft), Merci à Vincent pour ses précieux conseils.
CodeS-SourceS.com© Toute reproduction même partielle est interdite sauf accord écrit du Webmaster
CodeS-SourceS.com© est une marque déposée tous droits réservés

Google Coop CodeS-SourceS Google Coop CodeS-SourceS
Temps d'éxécution de la page : 0,406 sec (3)

Nous contacter | Annoncer sur CodeS-SourceS | Mentions légales