Accueil > > > ECRIRE DU TEXTE DANS UNE FENÊTRE (NASM)
ECRIRE DU TEXTE DANS UNE FENÊTRE (NASM)
Information sur la source
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
Sources de la même categorie
Commentaires et avis
|
Derniers Blogs
COMMENT MAPPER UNE VUE SQL SUR UNE COLLECTION DE COMPLEX TYPE?COMMENT MAPPER UNE VUE SQL SUR UNE COLLECTION DE COMPLEX TYPE? par Matthieu MEZIL
Avec EF, les vues doivent être mappées sur des entity types. Le problème c'est que les entity types doivent avoir une clé. Avec EF, nous avons les complex type qui n'ont pas de clé mais les vues ne peuvent pas être mappées dessus. Avec EF4, il est possibl...
Cliquez pour lire la suite de l'article par Matthieu MEZIL [WF4] UN BINDING ACTIVITY/ACTIVITYDESIGNER QUI PASSE MAL?[WF4] UN BINDING ACTIVITY/ACTIVITYDESIGNER QUI PASSE MAL? par JeremyJeanson
Certain d'entre vous on peut être vécu cette situation embarrassante après quelques temps passer avec WF4 : Au début avec mon " ActivityDesigner" , tout allait bien. Et puis un jour j'ai au des problèmes de " Binding" . Alors nous sommes allé sur le site ...
Cliquez pour lire la suite de l'article par JeremyJeanson MYTIC - SHAREPOINT 2010 : DéJà UN MYTHE MICROSOFT ?MYTIC - SHAREPOINT 2010 : DéJà UN MYTHE MICROSOFT ? par junarnoalg
La prochaine session de MyTIC aura lieu à Namur, le 23 mars prochain. Pendant presque une heure, nous parlerons de SharePoint 2010. Voici un aperçu du programme.
Accueil : 17h30 Début de la session : 18h00 - Les nouvelles int...
Cliquez pour lire la suite de l'article par junarnoalg
Forum
RE : ASSEMBLEURRE : ASSEMBLEUR par solleil
Cliquez pour lire la suite par solleil RE : ASSEMBLEURRE : ASSEMBLEUR par ghuysmans99
Cliquez pour lire la suite par ghuysmans99
Logiciels
Academy System (10.9.4.0)ACADEMY SYSTEM (10.9.4.0)Logiciel de gestion des établissements.
- élèves/étudiants (inscription, dossier, absence...)
-... Cliquez pour télécharger Academy System Xilisoft Convertisseur Vidéo Ultimate (5.1.39.0305)XILISOFT CONVERTISSEUR VIDéO ULTIMATE (5.1.39.0305)Xilisoft Convertisseur Vidéo Ultimate est un outil puissant de conversion vidéo, facile à utilise... Cliquez pour télécharger Xilisoft Convertisseur Vidéo Ultimate Xilisoft DVD Ripper Ultimate (5.0.64.0304)XILISOFT DVD RIPPER ULTIMATE (5.0.64.0304)Xilisoft DVD Ripper Ultimate est un logiciel excellent pour copier et convertir DVD vers presque ... Cliquez pour télécharger Xilisoft DVD Ripper Ultimate Rigs of Rods (63.3)RIGS OF RODS (63.3)c'est un jeu de multi-simulation camions,autobus voitures, avions, bateaux, hélicoptère avec défo... Cliquez pour télécharger Rigs of Rods
Comparez les prix

HTC Hero
Entre 550€ et 550€
|