Hossa

merry christmas to all readers ,a bit late i know.
but if i wish all a happy new year im a bit early :)

i would like to ask if a reader has time/fun to explain me how i can get the size of the desktop so i can set my dialog to fullscreen.

Thanks
Posted on 2001-12-30 10:03:01 by Max


invoke GetSystemMetrics, SM_CXSCREEN
mov esi,eax
invoke GetSystemMetrics, SM_CYSCREEN

invoke CreateWindowEx, WS_EX_TOPMOST or WS_EX_TOOLWINDOW,
addr szClassName,
addr szAppName,
WS_SYSMENU or WS_VISIBLE,
0, 0, esi, eax, 0, 0, 400000h, 0


or



invoke SendMessage, hWnd, WM_SYSCOMMAND, SC_MAXIMIZE, 0


HTH!
Posted on 2001-12-30 10:17:53 by bazik
Thanks for the fast help ..... when i see that getting the screensize use 3 lines of code ,i get shocked and must laugh about my simple ide bar where i get the size from the registry by using more then 10lines of code.
hehe

hey...i remember u ask how to get the infos of a avi.
hope this helps:
.data ?

AVIFILEINFO STRUCT

dwMaxBytesPerSec dd ? ;maximum data rate of the AVI file
dwFlags dd ? ;applicable flags
dwCaps dd ? ;capability flags
dwStreams dd ? ;number of streams in the file
dwSuggestedBufferSize dd ? ;buffer size in bytes for reading file
dwWidth dd ? ;width in pixels of the AVI file
dwHeight dd ? ;height in pixels of the AVI file
dwScale dd ? ;time scale applicable for entire file
dwRate dd ? ;dwRate / dwScale = samples per second
dwLength dd ? ;length of the AVI file
dwEditCount dd ? ;# streams added/deleted from AVI file
szFileType db 64 dup(?) ;string containing file type infos; 40

AVIFILEINFO ENDS

aviinfo AVIFILEINFO <>



.code

; Obtain info about an AVI file in the AVIFILEINFO struct.
; --------------------------------------------------------

invoke AVIFileInfo, fip, ADDR aviinfo, sizeof AVIFILEINFO; 6Ch

; Decrement reference count of an AVI file interface handle
; and closes the file if the count reaches zero.

invoke AVIFileRelease, fip
invoke AVIFileExit ; Exit AVIFile library and decrements the
; reference count for the library.
invoke SendMessage, mcihWnd, WM_CLOSE, 0, 0



HAPPY NEW YEAR !!!
but better is HAPPY CODING :-)
Posted on 2001-12-31 05:18:20 by Max