to you code gurus, i'm sure this is asinine, but
I'm a TASM programmer. how would i go about the following
(i know how to paint text)

lI want to display the following in a window

OS type : Windows whatever (from Getversion)
username : blah (from getusername)

I know how to load the osversion and usernme, but how do i get the text to display in one window (i've been using messagebox until now (so i get 2 messageboxes....i want one color and font customizeable window.  How do i specify a rectangle that is differnet than the getclientrect rectngle....)


thanks

Digitalorgtasm     
Posted on 2005-04-06 03:55:45 by digitalorgtasm
You can use wsprintf to format a string with both OS type, user name, and whatever you can think of - have a look at the MSDN/PlatformSDK documentation for wsprintf.
Posted on 2005-04-06 04:10:45 by f0dder
no problem there


What i'm having problems wiith is specifying a portion of the window to print one part of the text from another.


example:

.else
              call GetDC,hMain
        mov  hDC, eax ;move device context into hDC
        call  GetClientRect, hMain, offset wrecked
        call  SetTextColor, hDC,  textcolour
        call  SetBkColor, hDC, bkcolour
        call  DrawTextA, hDC, offset lpString, -1, offset wrecked, DT_BOTTOM
        call  ReleaseDC, hMain
       

how do i specify only a portion og the client rectangle for one text and another portion for another...?

Thanks

digitalorgtasm
Posted on 2005-04-06 04:16:36 by digitalorgtasm

how do i specify only a portion og the client rectangle for one text and another portion for another...?

You adjust the "formatting dimensions" RECT structure - the one you call wrecked.
Posted on 2005-04-06 06:41:19 by f0dder