Customizing Stock Property Pages
Rondal C. Ellifritt -- rondal@mvision.com Friday, January 17, 1997 Environment: VC++ 4.2-flat, NT 4.0, NT 3.51, Win95 Is there any way to customize MFC's stock property pages? Specifically, is there any way to force the stock font property page to only list fixed pitch fonts? If the answer is No -- as my research to date suggests it is -- does anyone have any other suggestion for how to achieve the same thing without writing my own font property page? Thanks, Rondal -- ____________________________________________________________________________ Rondal C. Ellifritt rondal@mvision.com
LeRoy Baxter -- .lbaxter@transport.com Sunday, January 19, 1997 [Mini-digest: 2 responses] Absolutely - just set the CF_FIXEDPITCHONLY flag in the constructor. -----Original Message----- From: Rondal C. Ellifritt [SMTP:rondal@mvision.com] Sent: Friday, January 17, 1997 1:46 PM To: MFC-L Subject: Customizing Stock Property Pages Environment: VC++ 4.2-flat, NT 4.0, NT 3.51, Win95 Is there any way to customize MFC's stock property pages? Specifically, is there any way to force the stock font property page to only list fixed pitch fonts? If the answer is No -- as my research to date suggests it is -- does anyone have any other suggestion for how to achieve the same thing without writing my own font property page? Thanks, Rondal -- ____________________________________________________________________________ Rondal C. Ellifritt rondal@mvision.com -----From: "Rondal C. Ellifritt"> -----Original Message----- > From: Rondal C. Ellifritt [SMTP:rondal@mvision.com] > Sent: Friday, January 17, 1997 1:46 PM > To: MFC-L > Subject: Customizing Stock Property Pages > > Environment: VC++ 4.2-flat, NT 4.0, NT 3.51, Win95 > > Is there any way to customize MFC's stock property pages? Specifically, is > there any way to force the stock font property page to only list fixed pitch > fonts? > > If the answer is No -- as my research to date suggests it is -- does anyone > have any other suggestion for how to achieve the same thing without writing > my own font property page? > > Thanks, > Rondal > -- > ____________________________________________________________________________ > Rondal C. Ellifritt rondal@mvision.com LeRoy Baxter wrote: > > Absolutely - just set the CF_FIXEDPITCHONLY flag in the constructor. Thanks LeRoy, but unfortunately this only works for the ChooseFont() function, which is not what I'm using. I'm using the OLE stock font property page (CLSID_CFontPropPage). Though it might seem logical that this would work the same way as the ChooseFont() dialog, it doesn't. For instance, there is no constructor to which the programmer has access. In fact, there is no code at all to which the programmer has access, at least not that I can figure out. If I've misunderstood you, please forgive and enlighten me. Thanks, Rondal -- ____________________________________________________________________________ Rondal C. Ellifritt rondal@mvision.com
| Вернуться в корень Архива |