Click here to Skip to main content
16,004,927 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: only append strings to RTF? Pin
User 665814-Jul-02 12:18
User 665814-Jul-02 12:18 
GeneralLaunching App by double-clicking on file Pin
Stew14-Jul-02 7:14
Stew14-Jul-02 7:14 
GeneralRe: Launching App by double-clicking on file Pin
Ernest Laurentin14-Jul-02 7:41
Ernest Laurentin14-Jul-02 7:41 
GeneralCImage class Pin
SilentWarrior14-Jul-02 7:13
SilentWarrior14-Jul-02 7:13 
GeneralRe: CImage class Pin
Rama Krishna Vavilala14-Jul-02 7:20
Rama Krishna Vavilala14-Jul-02 7:20 
GeneralFont dialog Pin
Stew14-Jul-02 7:10
Stew14-Jul-02 7:10 
GeneralRe: Font dialog Pin
Ernest Laurentin14-Jul-02 11:42
Ernest Laurentin14-Jul-02 11:42 
GeneralRe: Font dialog Pin
PJ Arends14-Jul-02 15:10
professionalPJ Arends14-Jul-02 15:10 
You can use a custom template. You just have to specify the CF_ENABLETEMPLATE flag.

CFontDialog cfd (&MyLogFont, CF_ENABLETEMPLATE |...);
cfd.m_cf.hInstance = AfxGetInstanceHandle();
cfd.m_cf.lpTemplateName = MAKEINTRESOURCE(IDD_MYFONTDIALOG);


When you create your template, just leave off the controls you don't want, and make sure you use the correct IDs for the controls you want to keep.

Control                    ID
Font Combo Box                 1136
Font Style Combo Box           1137
Size Combo Box                 1138
OK Button                      IDOK
Cancel Button                  IDCANCEL
Help Button                    1038
Sample display box             1092
Comment box                    1093


This might be an incomplete list, and the numbers might be defined in some header file somewhere, but this should get you going.

---
CPUA 0x5041

Sonork 100.11743 Chicken Little

Within you lies the power for good - Use it!
GeneralMacromedia tool panels. Pin
bisserke14-Jul-02 7:06
bisserke14-Jul-02 7:06 
QuestionDo I need AfxGetMAinWnd to run a mainframe function from a view? Pin
ns14-Jul-02 6:46
ns14-Jul-02 6:46 
AnswerRe: Do I need AfxGetMAinWnd to run a mainframe function from a view? Pin
ns14-Jul-02 6:55
ns14-Jul-02 6:55 
GeneralRe: Do I need AfxGetMAinWnd to run a mainframe function from a view? Pin
Raphael Kindt14-Jul-02 8:17
Raphael Kindt14-Jul-02 8:17 
QuestionHow to sendmessage to view1 from view2 Pin
ns14-Jul-02 6:20
ns14-Jul-02 6:20 
AnswerRe: How to sendmessage to view1 from view2 Pin
Martin Haesemeyer14-Jul-02 7:19
Martin Haesemeyer14-Jul-02 7:19 
QuestionHow to access View via Doc??? Pin
Raphael Kindt14-Jul-02 6:00
Raphael Kindt14-Jul-02 6:00 
AnswerRe: How to access View via Doc??? Pin
Nish Nishant14-Jul-02 8:49
sitebuilderNish Nishant14-Jul-02 8:49 
GeneralHorizontal Scroll Bar and CListBox Pin
Lucky200214-Jul-02 5:35
Lucky200214-Jul-02 5:35 
GeneralRe: Horizontal Scroll Bar and CListBox Pin
Dov Sherman14-Jul-02 5:39
Dov Sherman14-Jul-02 5:39 
GeneralRe: Horizontal Scroll Bar and CListBox Pin
Lucky200214-Jul-02 5:41
Lucky200214-Jul-02 5:41 
GeneralRe: Horizontal Scroll Bar and CListBox Pin
Dov Sherman14-Jul-02 6:10
Dov Sherman14-Jul-02 6:10 
GeneralRe: Horizontal Scroll Bar and CListBox Pin
Lucky200214-Jul-02 9:49
Lucky200214-Jul-02 9:49 
GeneralRe: Horizontal Scroll Bar and CListBox Pin
PJ Arends14-Jul-02 15:23
professionalPJ Arends14-Jul-02 15:23 
GeneralRe: Horizontal Scroll Bar and CListBox Pin
Lucky200215-Jul-02 8:49
Lucky200215-Jul-02 8:49 
GeneralHidden Dialog Pin
Dov Sherman14-Jul-02 5:29
Dov Sherman14-Jul-02 5:29 
GeneralRe: Hidden Dialog Pin
Joaquín M López Muñoz14-Jul-02 5:41
Joaquín M López Muñoz14-Jul-02 5:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.