The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: starzboy on August 16, 2009, 05:18:26 PM

Title: Custom button text
Post by: starzboy on August 16, 2009, 05:18:26 PM
Hello
I have been playing yet again.
I have created a custom button in bitmap which changes text and color on mouse click, actually the text is an image file.
Now I want to create a text on button(without using bitmap) which changes on mouse click to some other color or text.
Please advise.
Title: Re: Custom button text
Post by: donkey on August 16, 2009, 09:02:43 PM
SetWindowText (http://msdn.microsoft.com/en-us/library/ms633546%28VS.85%29.aspx) will change the text of the button. You can also paint text onto your bitmap using DrawText (http://msdn.microsoft.com/en-us/library/ms633546%28VS.85%29.aspx).