Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fonts and API...

Status
Not open for further replies.

LiquidBinary

Programmer
Jul 27, 2001
148
US
What API calls do I need to change the font in a command button? I am using the raw API and not MFC. The buttons are created at run time with CreateWindowEx(). mlg400@blazemail.com
 
First you got to get a handle to the DC with GetDC(myHwnd);
then you have to select your HFONT into the device context with SelectObject Function.
s-)

Blessed is he who in the name of justice and goodwill, sheperds the weak through the valley of darkness...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top