News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Library test piece.

Started by hutch--, April 20, 2006, 03:41:13 AM

Previous topic - Next topic

hutch--

Attached is a test piece for displaying text of effectively any size using a single procedure call. Its a window with a rich edit control that will load and display whatever text is pointed at it, the option of wordwrap or not and setting the window size in pixels for display. It is called with code like this,


; «««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««

main proc

    LOCAL tMem  :DWORD

    mov tMem, InputFile("\masm32\include\windows.inc")

    fn text_display,tMem,0,640,480,0

    free tMem

    exit

main endp

; «««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««

[attachment deleted by admin]
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php