Article View: comp.windows.ms.programmer
Article #1074Using FONT attribute in Dialog boxes
From: Aaron Wallace
Date: Tue, 15 Jan 1991 06:40
Date: Tue, 15 Jan 1991 06:40
19 lines
1440 bytes
1440 bytes
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
Technical Details
Message-ID:
<1991Jan15.064021.5282@portia.Stanford.EDU>Path:
arc1-ca.pugleaf.net!utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!samsung!olivea!apple!agate!shelby!portia.stanford.edu!aaron@jessica.Stanford.EDUShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!samsung!olivea!apple!agate!shelby!portia.stanford.edu!aaron@jessica.Stanford.EDU From: aaron@jessica.Stanford.EDU (Aaron Wallace) Newsgroups: comp.windows.ms.programmer Subject: Using FONT attribute in Dialog boxes Message-ID: <1991Jan15.064021.5282@portia.Stanford.EDU> Date: 15 Jan 91 06:40:21 GMT Sender: Aaron Wallace Reply-To: aaron@jessica.Stanford.EDU (Aaron Wallace) Organization: Stanford University Lines: 19