Annotation of mstools/mfc/samples/showfont/mainwnd.h, revision 1.1.1.1

1.1       root        1: // mainwnd.h : Declares the main window class for ShowFont.
                      2: //
                      3: // This is a part of the Microsoft Foundation Classes C++ library. 
                      4: // Copyright (C) 1992 Microsoft Corporation 
                      5: // All rights reserved. 
                      6: //  
                      7: // This source code is only intended as a supplement to the 
                      8: // Microsoft Foundation Classes Reference and Microsoft 
                      9: // QuickHelp documentation provided with the library. 
                     10: // See these sources for detailed information regarding the 
                     11: // Microsoft Foundation Classes product.
                     12: 
                     13: #ifndef __MAINWND_H__
                     14: #define __MAINWND_H__
                     15: 
                     16: /////////////////////////////////////////////////////////////////////////////
                     17: 
                     18: class CMainWindow : public CFrameWnd
                     19: {
                     20: public:
                     21:        CMainWindow(const char* title);
                     22: 
                     23:        // Operations
                     24:        void    InitDC(CDC& dc);
                     25:        void    SetFaceName();
                     26:        void    SetFontFromMenu(CFont& newFont);
                     27:        void    SetAlignFromMenu(short newAlign);
                     28:        void    SetVAlignFromMenu(short newAlign);
                     29: 
                     30:        // Window message callbacks
                     31:        afx_msg int     OnCreate(LPCREATESTRUCT cs);
                     32:        afx_msg void    OnPaint();
                     33:        afx_msg void    OnLButtonUp(UINT, CPoint pt);
                     34:        afx_msg void    OnFontChange();
                     35:        afx_msg void    OnDestroy();
                     36: 
                     37:        // File menu
                     38:        afx_msg void    OnAddFont();
                     39:        afx_msg void    OnDeleteFont();
                     40:        afx_msg void    OnExit();
                     41:        afx_msg void    OnAbout();
                     42: 
                     43:        // Show menu
                     44:        afx_msg void    ShowString();
                     45:        afx_msg void    OnShowCharSet();
                     46:        afx_msg void    OnShowLogFont();
                     47:        afx_msg void    OnShowTextMetric();
                     48:        afx_msg void    OnClear();
                     49: 
                     50:        // Font menu
                     51:        afx_msg void    OnSystemFont();
                     52:        afx_msg void    OnAnsiFixedFont();
                     53:        afx_msg void    OnAnsiVarFont();
                     54:        afx_msg void    OnOemFont();
                     55:        afx_msg void    OnDeviceFont();
                     56:        afx_msg void    OnSelectFont();
                     57:        afx_msg void    OnCreateFont();
                     58: 
                     59:        // Option menu
                     60:        afx_msg void    OnSetTextColor();
                     61:        afx_msg void    OnSetBackgroundColor();
                     62:        afx_msg void    OnSetOpaque();
                     63:        afx_msg void    OnSetTransparent();
                     64:        afx_msg void    OnSetAlignLeft();
                     65:        afx_msg void    OnSetAlignCenter();
                     66:        afx_msg void    OnSetAlignRight();
                     67:        afx_msg void    OnSetAlignTop();
                     68:        afx_msg void    OnSetAlignBase();
                     69:        afx_msg void    OnSetAlignBottom();
                     70: 
                     71:        DECLARE_MESSAGE_MAP()
                     72: };
                     73: 
                     74: /////////////////////////////////////////////////////////////////////////////
                     75: 
                     76: #endif __MAINWND_H__
                     77: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.