Skip to content

Commit 43ac3db

Browse files
author
felfert
committed
- Initial import of CamStudio 2.0
1 parent 1f64fa4 commit 43ac3db

File tree

501 files changed

+116816
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

501 files changed

+116816
-0
lines changed

CamStudio/ABOUT.BMP

19.8 KB
Binary file not shown.

CamStudio/AudioFormat.cpp

Lines changed: 1274 additions & 0 deletions
Large diffs are not rendered by default.

CamStudio/AudioFormat.h

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
#if !defined(AFX_AUDIOFORMAT_H__D1098020_67C5_491D_AC06_2EE69A7C135D__INCLUDED_)
2+
#define AFX_AUDIOFORMAT_H__D1098020_67C5_491D_AC06_2EE69A7C135D__INCLUDED_
3+
4+
#if _MSC_VER > 1000
5+
#pragma once
6+
#endif // _MSC_VER > 1000
7+
// AudioFormat.h : header file
8+
//
9+
10+
11+
12+
/////////////////////////////////////////////////////////////////////////////
13+
// AudioFormat dialog
14+
15+
class AudioFormat : public CDialog
16+
{
17+
// Construction
18+
public:
19+
AudioFormat(CWnd* pParent = NULL); // standard constructor
20+
void UpdateLocalCompressFormatInterface();
21+
void UpdateDeviceData(UINT deviceID, DWORD curr_sel_rec_format, LPWAVEFORMATEX curr_sel_pwfx);
22+
23+
BOOL Openlink (CString);
24+
BOOL OpenUsingShellExecute (CString);
25+
LONG GetRegKey (HKEY key, LPCTSTR subkey, LPTSTR retdata);
26+
BOOL OpenUsingRegisteredClass (CString);
27+
28+
29+
//CVscapView *myparent;
30+
//void PreModal(CVscapView *myparent);
31+
32+
// Dialog Data
33+
//{{AFX_DATA(AudioFormat)
34+
enum { IDD = IDD_AUDIODIALOG };
35+
// NOTE: the ClassWizard will add data members here
36+
//}}AFX_DATA
37+
38+
39+
// Overrides
40+
// ClassWizard generated virtual function overrides
41+
//{{AFX_VIRTUAL(AudioFormat)
42+
protected:
43+
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
44+
//}}AFX_VIRTUAL
45+
46+
// Implementation
47+
protected:
48+
49+
// Generated message map functions
50+
//{{AFX_MSG(AudioFormat)
51+
virtual void OnOK();
52+
virtual BOOL OnInitDialog();
53+
afx_msg void OnChoose();
54+
afx_msg void OnSelchangeRecordformat();
55+
afx_msg void OnInterleave();
56+
virtual void OnCancel();
57+
afx_msg void OnVolume();
58+
afx_msg void OnSelchangeInputdevice();
59+
afx_msg void OnInterleaveframes();
60+
afx_msg void OnInterleaveseconds();
61+
afx_msg void OnSystemrecord();
62+
afx_msg void OnHelp();
63+
//}}AFX_MSG
64+
DECLARE_MESSAGE_MAP()
65+
};
66+
67+
//{{AFX_INSERT_LOCATION}}
68+
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
69+
70+
#endif // !defined(AFX_AUDIOFORMAT_H__D1098020_67C5_491D_AC06_2EE69A7C135D__INCLUDED_)

CamStudio/AudioSpeakers.h

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
#if !defined(AFX_AUDIOSPEAKERS_H__125948FB_55C2_4D8E_8E21_36B3AE266E28__INCLUDED_)
2+
#define AFX_AUDIOSPEAKERS_H__125948FB_55C2_4D8E_8E21_36B3AE266E28__INCLUDED_
3+
4+
#if _MSC_VER > 1000
5+
#pragma once
6+
#endif // _MSC_VER > 1000
7+
// AudioSpeakers.h : header file
8+
//
9+
10+
/////////////////////////////////////////////////////////////////////////////
11+
// AudioSpeakers dialog
12+
13+
class AudioSpeakers : public CDialog
14+
{
15+
// Construction
16+
public:
17+
AudioSpeakers(CWnd* pParent = NULL); // standard constructor
18+
void OnUpdateLineConfig(int line_proper);
19+
void OnUpdateVolume();
20+
21+
// Dialog Data
22+
//{{AFX_DATA(AudioSpeakers)
23+
enum { IDD = IDD_AUDIOWAVEOUT };
24+
// NOTE: the ClassWizard will add data members here
25+
//}}AFX_DATA
26+
27+
28+
// Overrides
29+
// ClassWizard generated virtual function overrides
30+
//{{AFX_VIRTUAL(AudioSpeakers)
31+
protected:
32+
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
33+
//}}AFX_VIRTUAL
34+
35+
// Implementation
36+
protected:
37+
38+
// Generated message map functions
39+
//{{AFX_MSG(AudioSpeakers)
40+
virtual void OnOK();
41+
virtual BOOL OnInitDialog();
42+
afx_msg void OnVolume();
43+
afx_msg void OnAutoconfig();
44+
afx_msg void OnSelchangeSounddevice();
45+
afx_msg void OnManualconfig();
46+
afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
47+
//}}AFX_MSG
48+
DECLARE_MESSAGE_MAP()
49+
};
50+
51+
//{{AFX_INSERT_LOCATION}}
52+
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
53+
54+
#endif // !defined(AFX_AUDIOSPEAKERS_H__125948FB_55C2_4D8E_8E21_36B3AE266E28__INCLUDED_)

CamStudio/AutoSearchDialog.cpp

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
// AutoSearchDialog.cpp : implementation file
2+
//
3+
4+
#include "stdafx.h"
5+
#include "vscap.h"
6+
#include "AutoSearchDialog.h"
7+
8+
#ifdef _DEBUG
9+
#define new DEBUG_NEW
10+
#undef THIS_FILE
11+
static char THIS_FILE[] = __FILE__;
12+
#endif
13+
14+
/////////////////////////////////////////////////////////////////////////////
15+
// CAutoSearchDialog dialog
16+
17+
18+
CAutoSearchDialog::CAutoSearchDialog(CWnd* pParent /*=NULL*/)
19+
: CDialog(CAutoSearchDialog::IDD, pParent)
20+
{
21+
//{{AFX_DATA_INIT(CAutoSearchDialog)
22+
// NOTE: the ClassWizard will add member initialization here
23+
//}}AFX_DATA_INIT
24+
}
25+
26+
27+
void CAutoSearchDialog::DoDataExchange(CDataExchange* pDX)
28+
{
29+
CDialog::DoDataExchange(pDX);
30+
//{{AFX_DATA_MAP(CAutoSearchDialog)
31+
// NOTE: the ClassWizard will add DDX and DDV calls here
32+
//}}AFX_DATA_MAP
33+
}
34+
35+
36+
BEGIN_MESSAGE_MAP(CAutoSearchDialog, CDialog)
37+
//{{AFX_MSG_MAP(CAutoSearchDialog)
38+
ON_BN_CLICKED(IDC_CLOSE, OnCloseDialog)
39+
ON_WM_CLOSE()
40+
//}}AFX_MSG_MAP
41+
END_MESSAGE_MAP()
42+
43+
/////////////////////////////////////////////////////////////////////////////
44+
// CAutoSearchDialog message handlers
45+
46+
void CAutoSearchDialog::SetVarText(CString textstr)
47+
{
48+
((CStatic *) GetDlgItem(IDC_TEXT1))->SetWindowText(textstr);
49+
50+
}
51+
52+
void CAutoSearchDialog::SetVarTextLine2(CString textstr)
53+
{
54+
((CStatic *) GetDlgItem(IDC_TEXT2))->SetWindowText(textstr);
55+
56+
}
57+
58+
void CAutoSearchDialog::SetButtonEnable(BOOL enable)
59+
{
60+
((CStatic *) GetDlgItem(IDC_CLOSE))->EnableWindow(enable);
61+
62+
}
63+
64+
65+
void CAutoSearchDialog::OnCloseDialog()
66+
{
67+
// TODO: Add your control notification handler code here
68+
ShowWindow(SW_HIDE);
69+
70+
}
71+
72+
void CAutoSearchDialog::OnClose()
73+
{
74+
// TODO: Add your message handler code here and/or call default
75+
ShowWindow(SW_HIDE);
76+
77+
//CDialog::OnClose();
78+
}

CamStudio/AutoSearchDialog.h

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
#if !defined(AFX_AUTOSEARCHDIALOG_H__CAEFF236_0E36_49BC_8B1A_0F2D903EDE9D__INCLUDED_)
2+
#define AFX_AUTOSEARCHDIALOG_H__CAEFF236_0E36_49BC_8B1A_0F2D903EDE9D__INCLUDED_
3+
4+
#if _MSC_VER > 1000
5+
#pragma once
6+
#endif // _MSC_VER > 1000
7+
// AutoSearchDialog.h : header file
8+
//
9+
10+
/////////////////////////////////////////////////////////////////////////////
11+
// CAutoSearchDialog dialog
12+
13+
class CAutoSearchDialog : public CDialog
14+
{
15+
// Construction
16+
public:
17+
CAutoSearchDialog(CWnd* pParent = NULL); // standard constructor
18+
void SetVarText(CString textstr);
19+
void SetVarTextLine2(CString textstr);
20+
void SetButtonEnable(BOOL enable);
21+
22+
23+
// Dialog Data
24+
//{{AFX_DATA(CAutoSearchDialog)
25+
enum { IDD = IDD_AUTOSEARCH };
26+
// NOTE: the ClassWizard will add data members here
27+
//}}AFX_DATA
28+
29+
30+
// Overrides
31+
// ClassWizard generated virtual function overrides
32+
//{{AFX_VIRTUAL(CAutoSearchDialog)
33+
protected:
34+
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
35+
//}}AFX_VIRTUAL
36+
37+
// Implementation
38+
protected:
39+
40+
// Generated message map functions
41+
//{{AFX_MSG(CAutoSearchDialog)
42+
afx_msg void OnCloseDialog();
43+
afx_msg void OnClose();
44+
//}}AFX_MSG
45+
DECLARE_MESSAGE_MAP()
46+
};
47+
48+
//{{AFX_INSERT_LOCATION}}
49+
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
50+
51+
#endif // !defined(AFX_AUTOSEARCHDIALOG_H__CAEFF236_0E36_49BC_8B1A_0F2D903EDE9D__INCLUDED_)
52+

CamStudio/AutopanSpeed.cpp

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
// RenderSoft CamStudio
2+
//
3+
// Copyright 2001 RenderSoft Software & Web Publishing
4+
//
5+
//
6+
// AutopanSpeed.cpp : implementation file
7+
//
8+
9+
#include "stdafx.h"
10+
#include "vscap.h"
11+
#include "AutopanSpeed.h"
12+
13+
#ifdef _DEBUG
14+
#define new DEBUG_NEW
15+
#undef THIS_FILE
16+
static char THIS_FILE[] = __FILE__;
17+
#endif
18+
19+
extern int maxpan;
20+
21+
/////////////////////////////////////////////////////////////////////////////
22+
// CAutopanSpeed dialog
23+
24+
25+
CAutopanSpeed::CAutopanSpeed(CWnd* pParent /*=NULL*/)
26+
: CDialog(CAutopanSpeed::IDD, pParent)
27+
{
28+
//{{AFX_DATA_INIT(CAutopanSpeed)
29+
// NOTE: the ClassWizard will add member initialization here
30+
//}}AFX_DATA_INIT
31+
}
32+
33+
34+
void CAutopanSpeed::DoDataExchange(CDataExchange* pDX)
35+
{
36+
CDialog::DoDataExchange(pDX);
37+
//{{AFX_DATA_MAP(CAutopanSpeed)
38+
// NOTE: the ClassWizard will add DDX and DDV calls here
39+
//}}AFX_DATA_MAP
40+
}
41+
42+
43+
BEGIN_MESSAGE_MAP(CAutopanSpeed, CDialog)
44+
//{{AFX_MSG_MAP(CAutopanSpeed)
45+
ON_WM_HSCROLL()
46+
//}}AFX_MSG_MAP
47+
END_MESSAGE_MAP()
48+
49+
/////////////////////////////////////////////////////////////////////////////
50+
// CAutopanSpeed message handlers
51+
52+
BOOL CAutopanSpeed::OnInitDialog()
53+
{
54+
CDialog::OnInitDialog();
55+
56+
// TODO: Add extra initialization here
57+
CString maxpanspeedstr;
58+
59+
((CSliderCtrl *) GetDlgItem(IDC_PANSLIDER))->SetRange(1,200,TRUE);
60+
((CSliderCtrl *) GetDlgItem(IDC_PANSLIDER))->SetPos(maxpan);
61+
62+
maxpanspeedstr.Format("%d",maxpan);
63+
((CStatic *) GetDlgItem(IDC_MAXSPEED))->SetWindowText(maxpanspeedstr);
64+
65+
66+
return TRUE; // return TRUE unless you set the focus to a control
67+
// EXCEPTION: OCX Property Pages should return FALSE
68+
}
69+
70+
void CAutopanSpeed::OnOK()
71+
{
72+
// TODO: Add extra validation here
73+
int maxpanspeed;
74+
CString maxpanspeedstr;
75+
76+
((CStatic *) GetDlgItem(IDC_MAXSPEED))->GetWindowText(maxpanspeedstr);
77+
sscanf(LPCTSTR(maxpanspeedstr),"%d",&maxpanspeed);
78+
79+
maxpan = maxpanspeed;
80+
81+
CDialog::OnOK();
82+
}
83+
84+
void CAutopanSpeed::OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar)
85+
{
86+
// TODO: Add your message handler code here and/or call default
87+
int maxpanspeed;
88+
CString maxpanspeedstr;
89+
90+
maxpanspeed = ((CSliderCtrl *) GetDlgItem(IDC_PANSLIDER))->GetPos();
91+
maxpanspeedstr.Format("%d",maxpanspeed);
92+
((CStatic *) GetDlgItem(IDC_MAXSPEED))->SetWindowText(maxpanspeedstr);
93+
94+
95+
CDialog::OnHScroll(nSBCode, nPos, pScrollBar);
96+
}

0 commit comments

Comments
 (0)