Solved

Simple Font question

Posted on 2000-02-16
2
187 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
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 be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

840 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