// NapedOptycznyDlg.h : header file
//

#pragma once
#include "afxwin.h"
#include "afxcmn.h"


// CNapedOptycznyDlg dialog
class CNapedOptycznyDlg : public CDialog
{
// Construction
public:
	CNapedOptycznyDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	enum { IDD = IDD_NAPEDOPTYCZNY_DIALOG };

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support

private:
	BOOL KontrolaTackiCD(LPCTSTR Drive, BOOL Operacja);
	BOOL KontrolaCDAudio(LPCTSTR Drive, ULONG Operacja);
	CString m_Drive;

public:
	BOOL OpenCD(LPCTSTR Drive);
	BOOL CloseCD(LPCTSTR Drive);
	int StanCDAudio(LPCTSTR Drive);
	BOOL IsCDAudio(LPCTSTR Drive);
	BOOL PlayAudioCD(LPCTSTR Drive);
	BOOL ResumeCDAudio(LPCTSTR Drive);
	BOOL PauseCDAudio(LPCTSTR Drive);
	BOOL StopCDAudio(LPCTSTR Drive);
	void UstalPoziomGlosnosciWave(USHORT kanalLewy, USHORT kanalPrawy);
	void CzytajPoziomGlosnosciWave(USHORT &kanalLewy, USHORT &kanalPrawy);
	BOOL UstalPoziomGlosnosciCDAudio(USHORT kanalLewy, USHORT kanalPrawy);
	BOOL CzytajPoziomGlosnosciCDAudio(USHORT &kanalLewy, USHORT &kanalPrawy);
// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnBnClickedButton1();
	afx_msg void OnBnClickedButton2();
	afx_msg void OnBnClickedButton3();
	afx_msg void OnCbnSelchangeCombo1();
	afx_msg void OnBnClickedButton4();
	afx_msg void OnBnClickedButton12();
	CEdit Edit1;
	afx_msg void OnBnClickedButton9();
	afx_msg void OnBnClickedButton10();
	CSliderCtrl Slider1;
	CSliderCtrl Slider2;
	CSliderCtrl Slider3;
	CSliderCtrl Slider4;
	afx_msg void OnTRBNThumbPosChangingSlider3(NMHDR *pNMHDR, LRESULT *pResult);
	afx_msg void OnTRBNThumbPosChangingSlider1(NMHDR *pNMHDR, LRESULT *pResult);
	afx_msg void OnBnClickedButton5();
	CComboBox ComboBox1;
	afx_msg void OnBnClickedButton6();
	afx_msg void OnBnClickedButton7();
	afx_msg void OnBnClickedButton8();
	afx_msg void OnBnClickedButton11();
};
