Simple Font question

How do i change from the defalt font in my edit box?  (not using MFC)
Who is Participating?
vbk_bgmConnect With a Mentor Commented:
Use the following code (in Win32 SDK)
SendMessage(hWnd,WM_SETFONT,wParam, lParam)
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
catch wm_setfont message from you editbox
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.