#DialogBoxIndirect
02-Aug-93 21:32:33
Sb: #50204-#DialogBoxIndirect
Fm: Steve Firebaugh [MS] 75430,412
To: Jackie Luppi 73140,156
Hi Jackie,
1. If you use DS_SETFONT in your dialog template, that point size
and face name will be turned into a LOGFONT specification when the
dialog is created. When it comes time to draw text of any sort for
that dialog, the font mapper will try to match that LOGFONT with one
of the installed fonts. No, it is not possible to call CreateFont(),
and then pass the HFONT to DialogBoxIndirect(). However, it is possible
to watch for the WM_INIDIALOG message in your dialog procedure, and
send your child controls WM_SETFONT messages with an HFONT. That should
do what you want to do, even if it requires multiple SendMessage() calls.
2. The Win32 SDK documentation defines a disabled window as follows:
"A window that cannot receive input from the keyboard, mouse, or other
input device." Notice that does not mention receiving messages sent
or posted from other parts of your program. Any message that you
post or send will make it to your window procedure. It is only
messages generated by user actions which are blocked when a window
is disabled.
I hope that this helps.
Steve Firebaugh
There is 1 Reply.