begin process at 2012 02 05 01:44:59
  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 Source avec une capture BODY_ROTATION BASÉ SUR LE TRAVAIL DE TOM par jose2pepe
Source avec Zip Source avec une capture FROM TOM'S CUBE_ROTATION AND CUBE_5 CUBE COLOR RENDERIZED par jose2pepe
Source avec Zip REUTILISER N'IMPORTE QUEL PROGRAMME EX:WORDPAD par ToutEnMasm
Source avec Zip CRÉER DES TABLEAUX DE DONNÉES DE MANIÈRE DYNAMIQUE par ToutEnMasm
Source avec Zip AFFICHAGE DATE ET HEURE AVEC DES BITMAPS par jejamar

Commentaires et avis

Aucun commentaire pour le moment.

 Ajouter un commentaire




Nos sponsors


Sondage...

CalendriCode

Février 2012
LMMJVSD
  12345
6789101112
13141516171819
20212223242526
272829    

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

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