Develop and Download Open Source Software

Browse CVS Repository

Contents of /enbanfukusyaya/EnbanKensa/win32/EnbanKensaDlg.h

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.4 - (show annotations) (download) (as text)
Sat May 27 16:04:59 2006 UTC (17 years, 10 months ago) by bananajinn
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +4 -0 lines
File MIME type: text/x-chdr
*** empty log message ***

1 // EnbanKensaDlg.h : ヘッダー ファイル
2 //
3
4 #if !defined(AFX_YAKEGUAIDLG_H__28617C93_A81E_446B_8EC9_948885394AB0__INCLUDED_)
5 #define AFX_YAKEGUAIDLG_H__28617C93_A81E_446B_8EC9_948885394AB0__INCLUDED_
6
7 #if _MSC_VER > 1000
8 #pragma once
9 #endif // _MSC_VER > 1000
10
11 #include <afxpriv.h> // for WM_KICKIDLE
12 #include <ThemeButton.h>
13 #include <ThemeComboBox.h>
14 #include <ThemeLabel.h>
15 #include <ThemeDialog.h>
16 #include <GraphicDraw.h>
17 #include <scan.h>
18
19 #include <option.h>
20 #include "ui.h"
21 #include "DiscInfoDlg.h"
22
23 typedef struct {
24 int x0, y0, x1, y1;
25 COLORREF color;
26 } DRAWLINE_t;
27
28 typedef struct {
29 int x0, y0, x1, y1;
30 COLORREF color;
31 BOOL fill;
32 } DRAWBOX_t;
33
34 typedef struct {
35 int x0, y0;
36 COLORREF color;
37 const char *text;
38 } DRAWTEXT_t;
39
40 typedef struct {
41 int width;
42 int height;
43 } DRAWABLESIZE_t;
44
45 /////////////////////////////////////////////////////////////////////////////
46 // CEnbanKensaDlg ダイアログ
47
48 class CEnbanKensaDlg : public CThemeDialog
49 {
50 // 構築
51 public:
52 CEnbanKensaDlg(CWnd* pParent = NULL); // 標準のコンストラクタ
53
54 // ダイアログ データ
55 //{{AFX_DATA(CEnbanKensaDlg)
56 enum { IDD = IDD_ENBANKENSA_DIALOG };
57 CThemeButton m_BtnDiscInfo;
58 CThemeLabel m_StcInfo;
59 CGraphicDraw m_StcDrawArea;
60 CThemeButton m_BtnOK;
61 CThemeLabel m_StcDrive;
62 CThemeComboBox m_CmbDrive;
63 //}}AFX_DATA
64
65 // ClassWizard は仮想関数のオーバーライドを生成します。
66 //{{AFX_VIRTUAL(CEnbanKensaDlg)
67 public:
68 virtual BOOL DestroyWindow();
69 protected:
70 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV のサポート
71 //}}AFX_VIRTUAL
72
73 // インプリメンテーション
74 protected:
75 HICON m_hIcon;
76
77 // 生成されたメッセージ マップ関数
78 //{{AFX_MSG(CEnbanKensaDlg)
79 virtual BOOL OnInitDialog();
80 afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
81 afx_msg void OnPaint();
82 afx_msg HCURSOR OnQueryDragIcon();
83 virtual void OnOK();
84 virtual void OnCancel();
85 afx_msg void OnBtnDiscinfo();
86 //}}AFX_MSG
87 afx_msg LRESULT OnKickIdle(WPARAM wParam, LPARAM lParam);
88 afx_msg LRESULT OnUICtl(WPARAM wParam, LPARAM lParam);
89 DECLARE_MESSAGE_MAP()
90
91 public:
92 HDC GetDrawableDC(){ return m_Drawable.hDC; };
93
94 private:
95 void LoadIniFile();
96 void SaveIniFile();
97 void GetRegString(const char *key, char *string_ret, DWORD size);
98 void WriteRegString(const char *key, const char *string);
99 void LoadTheme();
100 void CreateDrawable(int width, int height);
101 void DestroyDrawable();
102 void DrawLine(DRAWLINE_t *param);
103 void DrawBox(DRAWBOX_t *param);
104 void DrawText(DRAWTEXT_t *param);
105 void GetDrawableSize(DRAWABLESIZE_t *param);
106 void DrawLogo(CDC *pDC);
107
108 int Setting(OPTIONS *pOption);
109 void DispDiscInfo(UIDISCINFO *pDiscInfo);
110
111 private:
112 int m_nThemeNumber;
113 BOOL m_bScanDone;
114 SCAN_t *m_pDrives;
115 int m_nDrawableWidth;
116 int m_nDrawableHeight;
117 struct _DRAWABLE {
118 HDC hDC;
119 HBITMAP hBitmap;
120 HBITMAP hBitmapOld;
121 HFONT hFont;
122 HFONT hFontOld;
123 int width;
124 int height;
125 } m_Drawable;
126 BOOL m_bRunning;
127 CBitmap m_bmpLogo;
128 CBitmap m_bmpLogoMask;
129 CDiscInfoDlg *m_pDiscInfoDlg;
130 };
131
132 //{{AFX_INSERT_LOCATION}}
133 // Microsoft Visual C++ は前行の直前に追加の宣言を挿入します。
134
135 #endif // !defined(AFX_YAKEGUAIDLG_H__28617C93_A81E_446B_8EC9_948885394AB0__INCLUDED_)

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26