MFC CFontDialog

  • Thread starter Thread starter sgrm123
  • Start date Start date
S

sgrm123

Guest
Hi,
I am launching MFC CFontDialog from my MFC dialog.

1605082.png

Whenever there is change in font I need to draw text in ownerdraw button(preview button) in the dialog.
When I click ok button in the CFontDialog only I am able to get the modified font details and able to update the font of text in my preview button. I want to draw the preview button text whenever user changes font in the CFontDialog before clicking the ok button.
I posted this question in the link https://social.msdn.microsoft.com/Forums/vstudio/en-US/977a40ed-67f7-4cd5-977d-45ad69f87135/mfc-cfontdialog?forum=vcgeneral
This post suggested me to try this, to Enable CF_ENABLEHOOK and capture font dialog's control's multiple eventsin hook procedure

When typing in font name, style, size comboboxes what event I need to capture in hook procedure?

Continue reading...
 
Back
Top