Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

69 lines
1.7 KiB

/**************************************************/
/* */
/* */
/* Associations Property */
/* (Dialog) */
/* */
/* Copyright (c) 1997-1999 Microsoft Corporation. */
/**************************************************/
typedef struct _tagASSOCIATIONREG{
TCHAR szFaceName[LF_FACESIZE];
TCHAR szFileName[MAX_PATH];
TCHAR szFileTitle[MAX_PATH];
BOOL FontTypeFlg; // TRUE:TRUETYPE, FALSE:WIFE FONT
BOOL UpdateFlg;
} ASSOCIATIONREG;
typedef ASSOCIATIONREG FAR *LPASSOCIATIONREG;
class CRegistListBox : public CListBox
{
private:
int ItemHeight;
public:
virtual void MeasureItem(LPMEASUREITEMSTRUCT lpMIS);
virtual void DrawItem(LPDRAWITEMSTRUCT lpDIS);
virtual int CompareItem(LPCOMPAREITEMSTRUCT lpCIS);
};
class CAssocDlg : public CDialog
{
public:
CAssocDlg(CWnd* pParent = NULL);
BOOL InitSystemFontAssoc();
//{{AFX_DATA(CAssocDlg)
enum { IDD = IDD_ASSOCIATION };
//}}AFX_DATA
private:
BOOL SetAssociationFontType();
BOOL HandleImportWin95(LPTSTR TTFPath, LPTSTR BMPPath, int Idx);
CWnd * m_pParent;
protected:
CRegistListBox m_RegListBox;
//{{AFX_VIRTUAL(CAssocDlg)
protected:
virtual BOOL OnInitDialog();
virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
//}}AFX_VIRTUAL
protected:
// Generated message map functions
//{{AFX_MSG(CAssocDlg)
afx_msg void OnDblclkRegistlist();
virtual void OnOK();
virtual void OnCancel();
afx_msg void OnModify();
afx_msg void OnRemove();
afx_msg void OnRadioDbcs();
afx_msg void OnRadioSystem();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};