El ensamblaje x86 crea una ventana y establece el tamaño de ancho y alto.

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

.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 

     msg db "Hello, world!",0
     title db "A messagebox",0
      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

preguntado el 24 de agosto de 12 a las 03:08

386 instruction set is long dead - and why even do this the hard way with asm? Time has moved on -

1 Respuestas

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 or haz tu propia pregunta.