Main Page   Namespace List   Class Hierarchy   Alphabetical List   Data Structures   File List   Namespace Members   Data Fields   Globals  

SDKInterfaceDlg.cpp File Reference

#include "stdafx.h"
#include "SDKInterface.h"
#include "SDKInterfaceDlg.h"

Go to the source code of this file.

Data Structures

class  CAboutDlg

Functions

 BEGIN_MESSAGE_MAP (CAboutDlg, CDialog) END_MESSAGE_MAP() CSDKInterfaceDlg
OnBnClickedButselectimage ON_BN_CLICKED (IDC_BUTSELECTMASK, OnBnClickedButselectmask) ON_BN_CLICKED(IDC_BUTADDACTION
OnBnClickedButselectimage
OnBnClickedButaddaction OnBnClickedButremoveaction
OnBnClickedButresetall 
ON_LBN_SELCHANGE (IDC_LISTINTERFACE, OnLbnSelchangeListinterface) END_MESSAGE_MAP() BOOL CSDKInterfaceDlg


Function Documentation

BEGIN_MESSAGE_MAP CAboutDlg   ,
CDialog   
 

Definition at line 39 of file SDKInterfaceDlg.cpp.

00049         : CDialog(CSDKInterfaceDlg::IDD, pParent)
00050         , m_EditImage(_T(""))
00051         , m_EditMask(_T(""))
00052 {
00053         m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);

OnBnClickedButselectimage ON_BN_CLICKED IDC_BUTSELECTMASK   ,
OnBnClickedButselectmask   
 

OnBnClickedButselectimage OnBnClickedButaddaction OnBnClickedButremoveaction OnBnClickedButresetall ON_LBN_SELCHANGE IDC_LISTINTERFACE   ,
OnLbnSelchangeListinterface   
 

Definition at line 81 of file SDKInterfaceDlg.cpp.

References FALSE, IDC_BUTRESETALL, IDC_LISTINTERFACE, and TRUE.

00089 {
00090         CDialog::OnInitDialog();
00091 
00092         // Add "About..." menu item to system menu.
00093 
00094         // IDM_ABOUTBOX must be in the system command range.
00095         ASSERT((IDM_ABOUTBOX & 0xFFF0) == IDM_ABOUTBOX);
00096         ASSERT(IDM_ABOUTBOX < 0xF000);
00097 
00098         CMenu* pSysMenu = GetSystemMenu(FALSE);
00099         if (pSysMenu != NULL)
00100         {
00101                 CString strAboutMenu;
00102                 strAboutMenu.LoadString(IDS_ABOUTBOX);
00103                 if (!strAboutMenu.IsEmpty())
00104                 {
00105                         pSysMenu->AppendMenu(MF_SEPARATOR);
00106                         pSysMenu->AppendMenu(MF_STRING, IDM_ABOUTBOX, strAboutMenu);
00107                 }
00108         }
00109 
00110         // Set the icon for this dialog.  The framework does this automatically
00111         //  when the application's main window is not a dialog
00112         SetIcon(m_hIcon, TRUE);                 // Set big icon
00113         SetIcon(m_hIcon, FALSE);                // Set small icon
00114 
00115         // TODO: Add extra initialization here
00116         int iWidth,iHeight;
00117         CPaintDC dc(this); // device context for painting
00118         m_hDC = ::GetDC(this->m_hWnd);
00119 
00120         //Openlg render 
00121         
00122         pclStaticCurrent = (CStatic *)GetDlgItem(IDC_OPENGLRENDER);
00123         GlRenderCurrent = new CGlView(pclStaticCurrent);
00124         
00125         GlRenderCurrent->SetPixelformat(m_hDC);
00126         GlRenderCurrent->InitGL();
00127         RECT rect;
00128         GetClientRect(&rect);
00129         pclStaticCurrent->GetWindowRect(&rect);
00130     iWidth = -(rect.right - rect.left);
00131     iHeight = rect.top - rect.bottom;
00132         GlRenderCurrent->ReSizeGLScene(iWidth, iHeight);
00133         SetTimer(1, 100, 0);
00134 /*      m_ControlFileContent.AddString("<filetype>interface<#filetype>");
00135         m_ControlFileContent.AddString("<Image>None<#Image>");
00136         m_ControlFileContent.AddString("<Mask>None<#Mask>");*/
00137         m_ControlFileContent.EnableScrollBar(SB_BOTH,ESB_ENABLE_BOTH);
00138         m_ControlFileContent.SetScrollRange(SB_HORZ ,0,1000,true);
00139         m_ControlFileContent.SetHorizontalExtent(1000);
00140         GlRenderCurrent->m_PControlFileContent=&m_ControlFileContent;
00141         return TRUE;  // return TRUE  unless you set the focus to a control


Generated on Tue Dec 10 18:20:17 2002 for ExNihilo by doxygen1.3-rc1