toutes mes CDialog derive de cette classe :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33 #pragma once #include "afxwin.h" #include "resource.h" class CDigiDialog : public CDialog { private: CBitmap m_Background; int m_iWidth, m_iHeight; BOOL bCTLCOLOR_EDIT, bCTLCOLOR_LISTBOX, bCTLCOLOR_STATIC; protected: DECLARE_MESSAGE_MAP() HICON m_hIcon; virtual BOOL OnInitDialog(); public: UINT IDD; CDigiDialog(UINT nIDTemplate, CWnd* pParentWnd, UINT iIDD_Background); ~CDigiDialog(void); //virtual int DoModal(); afx_msg void OnMoving(UINT fwSide, LPRECT pRect); afx_msg BOOL OnEraseBkgnd(CDC* pDC); afx_msg void OnPaint(); afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor); void SetTransparant(UINT uCTLCOLOR, BOOL bTranparant); };
voila ma CDlAccueil :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70 // DlAccueil.h : fichier d'en-tête #pragma once #include "DigiDialog.h" #include "afxwin.h" #include <string> #include "afxcmn.h" #include "ConfigFile.h" #include "constante_digitick.h" #include "DlListClick.h" #include "DlRecapitulatif.h" #include "DlMenu.h" #include "TransparentBitmapButton.h" // boîte de dialogue CDlAccueil class CDlAccueil : public CDigiDialog { private: int p_iIDLnfSelectInMenu; CString GetPathApps(void); CWinThread *p_threadConnected; BOOL p_bConnected, p_bTested; CDigiDialog * p_DlgToPostMsgFromThread; // Construction public: CDlAccueil(CWnd* pParent = NULL); // constructeur standard virtual ~CDlAccueil(); // Données de boîte de dialogue enum { IDD = IDD_DlAccueil }; protected: virtual void DoDataExchange(CDataExchange* pDX); // Prise en charge DDX/DDV // Implémentation protected: // Fonctions générées de la table des messages virtual BOOL OnInitDialog(); afx_msg void OnSysCommand(UINT nID, LPARAM lParam); afx_msg HCURSOR OnQueryDragIcon(); DECLARE_MESSAGE_MAP() public: CConfigFile *CONFIG_FILE; CString PATH_APPS, USER_LOGIN, USER_PASSWORD, sPARAM_TMP; BOOL USER_KEEP_PASSWORD, m_bVersionTest; afx_msg void OnEnChangeEditLogin(); afx_msg void OnEnChangePassword(); afx_msg void OnBnValider(); virtual void OnOK(); virtual void OnCancel(); int AnalyseWebPage(CString csPage); void RefreshValidState(void); void SetConnexionState(BOOL bState); BOOL IsConnected(void); CTransparentBitmapButton m_ButtonValider; }; UINT threadFunction (LPVOID pParam);
Partager