News:

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

text in a blank window

Started by towa, February 21, 2006, 06:38:00 PM

Previous topic - Next topic

towa

Example 1 / MINIMUM pops up a messagebox with text on it.

Can I insert text this simply onto a blank "Main" window (eg. in the Test Dialog template of Qeditor) or is that handled only by a resource ?

P1

towa,

Welcome a Board !!!     :U

Forum 'Search' is your friend, along with Google.  And it will speed you along in up to speed again.   

Have some fun with this.

Regards,  P1  :8)

WndProc proc hWnd:HWND, uMsg:UINT, wParam:WPARAM, lParam:LPARAM
LOCAL hdc:HDC
LOCAL ps:PAINTSTRUCT
LOCAL rect:RECT
.
.
.
.ELSEIF uMsg==WM_PAINT
invoke BeginPaint,hWnd, ADDR ps
mov    hdc,eax
invoke GetClientRect,hWnd, ADDR rect
invoke DrawText, hdc,ADDR OurText,-1, ADDR rect, DT_WORDBREAK or DT_LEFT
invoke EndPaint,hWnd, ADDR ps