begin process at 2010 08 01 07:28:33
  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 AFFICHAGE DATE ET HEURE AVEC DES BITMAPS par jejamar
Source avec Zip HORLOGES DIVERSES par jejamar
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

Commentaires et avis

Aucun commentaire pour le moment.

 Ajouter un commentaire




Nos sponsors


Sondage...

CalendriCode

Août 2010
LMMJVSD
      1
2345678
9101112131415
16171819202122
23242526272829
3031     

Consulter la suite du CalendriCode

 
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,359 sec (3)

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