X-Git-Url: http://git.maemo.org/git/?p=opencv;a=blobdiff_plain;f=apps%2FHawk%2FHeadBand.cpp;fp=apps%2FHawk%2FHeadBand.cpp;h=0000000000000000000000000000000000000000;hp=3f90a28634b098481273ea80fd6a18e69f9d4619;hb=e4c14cdbdf2fe805e79cd96ded236f57e7b89060;hpb=454138ff8a20f6edb9b65a910101403d8b520643 diff --git a/apps/Hawk/HeadBand.cpp b/apps/Hawk/HeadBand.cpp deleted file mode 100644 index 3f90a28..0000000 --- a/apps/Hawk/HeadBand.cpp +++ /dev/null @@ -1,113 +0,0 @@ -/*M/////////////////////////////////////////////////////////////////////////////////////// -// -// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. -// -// By downloading, copying, installing or using the software you agree to this license. -// If you do not agree to this license, do not download, install, -// copy or use the software. -// -// -// Intel License Agreement -// For Open Source Computer Vision Library -// -// Copyright (C) 2000, Intel Corporation, all rights reserved. -// Third party copyrights are property of their respective owners. -// -// Redistribution and use in source and binary forms, with or without modification, -// are permitted provided that the following conditions are met: -// -// * Redistribution's of source code must retain the above copyright notice, -// this list of conditions and the following disclaimer. -// -// * Redistribution's in binary form must reproduce the above copyright notice, -// this list of conditions and the following disclaimer in the documentation -// and/or other materials provided with the distribution. -// -// * The name of Intel Corporation may not be used to endorse or promote products -// derived from this software without specific prior written permission. -// -// This software is provided by the copyright holders and contributors "as is" and -// any express or implied warranties, including, but not limited to, the implied -// warranties of merchantability and fitness for a particular purpose are disclaimed. -// In no event shall the Intel Corporation or contributors be liable for any direct, -// indirect, incidental, special, exemplary, or consequential damages -// (including, but not limited to, procurement of substitute goods or services; -// loss of use, data, or profits; or business interruption) however caused -// and on any theory of liability, whether in contract, strict liability, -// or tort (including negligence or otherwise) arising in any way out of -// the use of this software, even if advised of the possibility of such damage. -// -//M*/// HeadBand.cpp : implementation file -// - -#include "stdafx.h" -#include "Hawk.h" -#include "HeadBand.h" - -#ifdef _DEBUG -#define new DEBUG_NEW -#undef THIS_FILE -static char THIS_FILE[] = __FILE__; -#endif - -///////////////////////////////////////////////////////////////////////////// -// CHeadBand dialog - - -CHeadBand::CHeadBand(CWnd* pParent /*=NULL*/) - : CDialog(CHeadBand::IDD, pParent) -{ - //{{AFX_DATA_INIT(CHeadBand) - // NOTE: the ClassWizard will add member initialization here - //}}AFX_DATA_INIT -} - - -void CHeadBand::DoDataExchange(CDataExchange* pDX) -{ - CDialog::DoDataExchange(pDX); - //{{AFX_DATA_MAP(CHeadBand) - // NOTE: the ClassWizard will add DDX and DDV calls here - //}}AFX_DATA_MAP -} - - -BEGIN_MESSAGE_MAP(CHeadBand, CDialog) - //{{AFX_MSG_MAP(CHeadBand) - ON_WM_CTLCOLOR() - //}}AFX_MSG_MAP -END_MESSAGE_MAP() - -///////////////////////////////////////////////////////////////////////////// -// CHeadBand message handlers - -HBRUSH CHeadBand::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) -{ - switch(nCtlColor) - { - case CTLCOLOR_DLG: - return (HBRUSH)GetStockObject(WHITE_BRUSH); - - case CTLCOLOR_STATIC: - if(GetDlgItem(IDC_STATUS)->m_hWnd == pWnd->m_hWnd) - { - return (HBRUSH)GetStockObject(WHITE_BRUSH); - } - - default: - return CDialog::OnCtlColor(pDC, pWnd, nCtlColor); - } -} - -BOOL CHeadBand::OnInitDialog() -{ - CDialog::OnInitDialog(); - - HBITMAP hbmp = ::LoadBitmap(AfxGetApp()->m_hInstance, MAKEINTRESOURCE(IDB_HEADBAND)); - CStatic* pImage = (CStatic*)GetDlgItem(IDC_IMAGE); - pImage->SetBitmap(hbmp); - pImage->InvalidateRect(NULL); - pImage->UpdateWindow(); - return TRUE; // return TRUE unless you set the focus to a control - // EXCEPTION: OCX Property Pages should return FALSE -}