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