Simple Font question

How do i change from the defalt font in my edit box?  (not using MFC)
scooter1Asked:
Who is Participating?
 
vbk_bgmConnect With a Mentor Commented:
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
 
cdesignerCommented:
catch wm_setfont message from you editbox
0
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.