Solved

Simple Font question

Posted on 2000-02-16
2
183 Views
Last Modified: 2013-12-03
How do i change from the defalt font in my edit box?  (not using MFC)
0
Comment
Question by:scooter1
2 Comments
 
LVL 9

Expert Comment

by:cdesigner
ID: 2529742
catch wm_setfont message from you editbox
0
 
LVL 2

Accepted Solution

by:
vbk_bgm earned 20 total points
ID: 2530265
Use the following code (in Win32 SDK)
SendMessage(hWnd,WM_SETFONT,wParam, lParam)
where,
wParam = HFONT of your font
lParam = TRUE (to redraw the edit box)
hWnd = HWND of the edit box
     Use ::CreateFont to create your specific font
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now