El ensamblaje x86 crea una ventana y establece el tamaño de ancho y alto.
Frecuentes
Visto 1,447 veces
0
When making a window using invoke MessageBox,(string),(string)
syntax, are their any parameters that allow you to set the size of the window you are creating?
Por ejemplo, los servicios administrativos de
.386
.model flat,sdcall
option casemap:none
include \masm32\include\windows.inc
include \masm32\include\user32.inc
include \masm32\include\kernel32.inc
includelib \masm32\lib\user32.lib
.data
msg db "Hello, world!",0
title db "A messagebox",0
.code
start:
invoke MessageBox, NULL,addr title, addr msg, MB_OK
invoke ExitProcess, 0
end start
Is there any way that I can change the size of the box that is made? Like a width/height parameter?
Muchas Gracias
1 Respuestas
1
No, if you need control over the window, you should make a Cuadro de diálogo. It's quite involved however.
Respondido 24 ago 12, 04:08
Could you provide some example assembly code to make a simple dialogbox? - Progrmr
After having a look, SURELY there must be a simple macro or something to create a window, or at least something simpler??? It's so overly complex! - Progrmr
I don't have any masm code using dialogs, but perhaps you would be better off making an ordinary window with CreateWindow? It's hard to guess what you need. - Jens Bjornhager
How do I use createwindow? I looked at all the code on the internet and its in C++ - Progrmr
Look it up on msdn. It's similar to making a dialog box. - Jens Bjornhager
No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas assembly x86 masm32 or haz tu propia pregunta.
386 instruction set is long dead - and why even do this the hard way with asm? Time has moved on - Adrian Cornish