Win32


3. - 5


CW_USEDEFAULT, \ horizontal position of window

CW_USEDEFAULT, \ vertical position of window

CW_USEDEFAULT, \ window width

CW_USEDEFAULT, \ window height

0, \ handle to parent or owner window

0, \ handle to menu, or child-window identifier

[hInst], \ handle to application instance

0 ; pointer to window-creation data

ELSE

call LoadMenu, hInst, MyMenu

mov [hMenu],eax

call CreateWindowExA, WS_EX_OVERLAPPEDWINDOW, \ extended window style

offset classTitle, \ pointer to registered class name

offset wndTitle, \ pointer to window name

WS_OVERLAPPEDWINDOW, \ window style

CW_USEDEFAULT, \ horizontal position of window

CW_USEDEFAULT, \ vertical position of window

CW_USEDEFAULT, \ window width

CW_USEDEFAULT, \ window height

0, \ handle to parent or owner window

eax, \ handle to menu, or child-window identifier

[hInst], \ handle to application instance

0 ; pointer to window-creation data

ENDIF

mov [hWnd],eax

call ShowWindow, eax, SW_SHOW ; show window

call UpdateWindow, [hWnd] ; redraw window

 

IFDEF VER3

call LoadMenuA, [hInst], MyMenu

mov [hMenu],eax

call SetMenu, [hWnd], eax