Search code examples
assemblyx86masm32

x86 assembly make a window and set width and height size


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?

For example,

.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?

Thanks


Solution

  • No, if you need control over the window, you should make a DialogBox. It's quite involved however.