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

📄 smalledit.h

📁 改进的JPEG-LS算法
💻 H
字号:
#if !defined(AFX_SMALLEDIT_H__941FC368_76F5_4C0F_A43D_8CE4FC690B76__INCLUDED_)
#define AFX_SMALLEDIT_H__941FC368_76F5_4C0F_A43D_8CE4FC690B76__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// SmallEdit.h : header file
//
#define WM_USER_SMALL_EDIT (WM_USER+20)
/////////////////////////////////////////////////////////////////////////////
// CSmallEdit dialog

/*		例:	在对话框中的列表控键的列表项的编辑应用



	TCHAR asc[256];
	CSmallEdit *pEdit=new CSmallEdit;
	if(pEdit!=NULL)
	{
		pEdit->Rect=Rect;//将创建的编辑框矩形置成子项矩形
		m_ControlDataList.GetItemText( i, j, asc, 255);
		pEdit->m_Text=asc;
		pEdit->Item.x=i;
		pEdit->Item.y=j;
		if(pEdit->Create(NULL,NULL,0,CRect(0,0,0,0),this)==TRUE)//用无模态对话框,是要在对话框外可响应
		{
			pEdit->ShowWindow(SW_SHOW);
		}
	}

	*pResult = 0;
}
LRESULT CImageCompress::OnSmallEditRecvMessage(WPARAM wParam, LPARAM lParam)
{
	CSmallEdit *pEdit=(CSmallEdit *)lParam;

	m_ControlDataList.SetItemText(pEdit->Item.x,pEdit->Item.y,(LPCTSTR)pEdit->m_Text);

	return 0;
}




*/
class CSmallEdit : public CDialog
{
// Construction
public:
	CSmallEdit(CWnd* pParent = NULL);   // standard constructor
	CWnd* lpParentWnd;
	CRect Rect;
	POINT Item;
	DWORD RemoveEditStyle,AddEditStyle;
	DWORD RemoveStyle,AddStyle;
// Dialog Data
	//{{AFX_DATA(CSmallEdit)
	enum { IDD = IDD_SMALL_EDIT_DIALOG };
	CString	m_Text;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSmallEdit)
	public:
	virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd/*, UINT nID, CCreateContext* pContext = NULL*/);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual void PostNcDestroy();
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CSmallEdit)
	afx_msg void OnClose();
	virtual BOOL OnInitDialog();
	afx_msg void OnKillFocus(CWnd* pNewWnd);
	afx_msg void OnKillfocusSmallEdit();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SMALLEDIT_H__941FC368_76F5_4C0F_A43D_8CE4FC690B76__INCLUDED_)

⌨️ 快捷键说明

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