Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
PageSetupDlg.h
Package: modelmagic3d.zip [view]
Upload User: cding2008
Upload Date: 2007-01-03
Package Size: 1812k
Code Size: 3k
Category:
OpenGL program
Development Platform:
Visual C++
- /////////////////////////////////////////////////////////////////////////////
- // PageSetupDlg.h : header file
- //
- // ModelMagic 3D and 'glOOP' (OpenGL Object Oriented Programming library)
- // Copyright (c) Craig Fahrnbach 1997, 1999
- //
- // OpenGL is a registered trademark of Silicon Graphics
- //
- //
- // This program is provided for educational and personal use only and
- // is provided without guarantee or warrantee expressed or implied.
- //
- // Commercial use is strickly prohibited without written permission
- // from ImageWare Development.
- //
- /////////////////////////////////////////////////////////////////////////////
- class CPageSetupDlg : public CDialog
- {
- // Construction
- public:
- void DrawPageOutline();
- CPageSetupDlg(CWnd* pParent = NULL); // standard constructor
- // Dialog Data
- //{{AFX_DATA(CPageSetupDlg)
- enum { IDD = IDD_DIALOG_PAGE_SETUP };
- CEdit m_EditRight;
- CEdit m_EditLeft;
- CEdit m_EditHeader;
- CEdit m_EditFooter;
- CEdit m_EditBottom;
- CSpinButtonCtrl m_SpinRight;
- CSpinButtonCtrl m_SpinLeft;
- CSpinButtonCtrl m_SpinHeader;
- CSpinButtonCtrl m_SpinFooter;
- CSpinButtonCtrl m_SpinBottom;
- CEdit m_EditTop;
- CSpinButtonCtrl m_SpinTop;
- int m_iCenterImage;
- float m_fTopMargin;
- float m_fBottomMargin;
- float m_fLeftMargin;
- float m_fRightMargin;
- float m_fHeaderMargin;
- float m_fFooterMargin;
- //}}AFX_DATA
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CPageSetupDlg)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- HWND m_wndPagePreview;
- void SetSpinPosn(CSpinButtonCtrl* pSpinCtrl, float fValue);
- int GetMarginPosition(float fSelect);
- void SetEditText(CEdit* pEdit, float fValue);
- // Generated message map functions
- //{{AFX_MSG(CPageSetupDlg)
- virtual BOOL OnInitDialog();
- virtual void OnOK();
- afx_msg void OnPrintSetup();
- afx_msg void OnRadioCenterImage();
- afx_msg void OnDeltaposSpinTop(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnUpdateTop();
- afx_msg void OnUpdateBottom();
- afx_msg void OnUpdateLeft();
- afx_msg void OnUpdateRight();
- afx_msg void OnUpdateHeader();
- afx_msg void OnUpdateFooter();
- afx_msg void OnDeltaposSpinBottom(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnDeltaposSpinLeft(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnDeltaposSpinRight(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnDeltaposSpinHeader(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnDeltaposSpinFooter(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnPaint();
- afx_msg void OnChangePagePreview();
- afx_msg void OnUpdatePagePreview();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };