News:

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

Cant write a string into the Title Bar

Started by Zap, April 30, 2010, 02:00:28 PM

Previous topic - Next topic

Zap

Hi!
Please help.I`m trying to make a timer.There`s no problem with writing on a Client Area:
invoke GetDC,hWnd
mov hdc,eax                 
invoke TextOut,hdc,0,0,addr Text,9       
invoke ReleaseDC,hWnd,hdc

Everything`s OK with writing on the display:
invoke GetDC,NULL
mov hdc,eax                 
invoke TextOut,hdc,0,0,addr Text,9       
invoke ReleaseDC,hWnd,hdc

But I subj:
invoke GetWindowDC,NULL
mov hdc,eax                 
invoke TextOut,hdc,0,0,addr Text,9       
invoke ReleaseDC,hWnd,hdc

Thanx in advance.


jj2007


qWord

use the WM_SETTEXT message or the SetWindowText() function.
FPU in a trice: SmplMath
It's that simple!

jj2007

He wants to cheat, paint directly on the title bar. There is usually a lot of unused space :toothy

donkey

I have a custom caption example on my website, here's a direct link...

Custom Caption
"Ahhh, what an awful dream. Ones and zeroes everywhere...[shudder] and I thought I saw a two." -- Bender
"It was just a dream, Bender. There's no such thing as two". -- Fry
-- Futurama

Donkey's Stable