[comp.windows.ms.programmer] Using FONT attribute in Dialog boxes

aaron@jessica.Stanford.EDU (Aaron Wallace) (01/15/91)

I'm sure this has been answered many times, and may have even made the FAQ
list (which I can't get to any more :-().  How does one get the FONT
attribute for dialog boxes to work?  I set in in the Dialog Editor, and there
everything looked okay, but after sticking the box in the program, it came
up with the gool 'ol system font, sized for the smaller Helv 10.  Yuk.  There
is a WM_SETFONT message, but why should this be necessary?  Or am I just
confused?

Not related, but equally baffling, I've had all sorts of bad luck with 
MessageBox in DLL code, namely LibEntry.  Is this a no-no?  Does
MessageBox make the fatal SS = DS assumption?  I tried all kinds of casting,
but to no avail.  The calls were like:

	MessageBox(NULL, "literal", "Literal", MB_OK | MB_SYSTEMMODAL);

With (LPSTR)'s added before the literals, nothing changes (as I'd expect).
Just more Unrecoverable Errors...

Aaron Wallace