⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dibtcl.h

📁 G729语音压缩的很好的离子和示范 大家来下载吧
💻 H
字号:
#ifndef _DIBTCL_H_
#define _DIBTCL_H_
#include <afxwin.h>
#include <vfw.h>
#include <tk.h>
class CDibTcl {
public:
	HDC _hdcDisplay;
	HDRAWDIB _hdrawdib;
	CDibTcl(const CString tclname,Tcl_Interp *interp,BOOL &ok,int w=320,int h=240);
	~CDibTcl();
	BOOL Open();
	BOOL Close();
	BOOL BeginDIB(LPBITMAPINFO lpb,UINT wFlags);
	BOOL EndDIB();
	BOOL DrawDIB(LPVOID lpBits,UINT wFlags=DDF_SAME_HDC);
	BOOL Refresh();
	LPBITMAPINFO GetBitmapInfo();
	LPBITMAPINFOHEADER GetBitmapInfoHeader();
 	static CDibTcl *FindDib(const CString tclname);
	static void AddDib(CDibTcl* dib);
	static void RemoveDib(const CDibTcl *dib);
	CSize GetSize();
	void SetSize(CSize &s);
protected:
	static class cell {
	public:
		CDibTcl *dib;
		cell * suiv;
		cell(CDibTcl *d,cell *s):dib(d),suiv(s) {};
	};
	static cell *_allDIBs;
	BITMAPINFO bmpinfo;
	BITMAPINFOHEADER lpbi;
	Tk_Window tkwin;
	void _selfInit();
	BOOL _open;
	CString tclname;
	Tcl_Interp *tclinterp;
	HWND tk_hwnd;
};

inline LPBITMAPINFO CDibTcl::GetBitmapInfo() {
	return &bmpinfo;
}
inline LPBITMAPINFOHEADER CDibTcl::GetBitmapInfoHeader() {
	return &lpbi;
}
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -