<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Hab Problem mit ner Input Maske]]></title><description><![CDATA[<p>Kann ich diese Classe ins WinApi Uebernehmen ?</p>
<p>NewMaskEdit.h</p>
<pre><code class="language-cpp">[code]
#pragma once

class NewMaskEdit : public CEdit
{
public:
	NewMaskEdit();
	virtual ~NewMaskEdit();

	void	SetWindowText(LPCTSTR lpszString);

	void	setText(LPCTSTR pszText);
	CString	getText();

	void	setMask(LPCTSTR pszMask, char cPlaceHolder = '_');
	CString	getMask();

	//{{AFX_VIRTUAL(NewMaskEdit)
	//}}AFX_VIRTUAL

protected:

	char	m_cPlaceHolder;

	CString m_strMaskText;

	CString m_strSaveText;

	bool	m_bLastKeyWasDelete;
	bool	m_bLastKeyWasBackspace;

	bool	isMaskChar(int nPos);

	int		gotoNextEntryChar(int nPos);

	bool	getReplacementChar(int nPos, char cWant, char&amp; cGet);

	//{{AFX_MSG(NewMaskEdit)
	afx_msg void OnUpdate();
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
};
[/code]
</code></pre>
<p>ADD: Jochen Kalmbach: Code entfernt, da die Quelle Unklar ist und möglicherweise Copyright-Verletzungen nicht ausgeschlossen sind... auch ist der Code für die Frage unerheblich</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/168972/hab-problem-mit-ner-input-maske</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Jul 2026 08:31:15 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/168972.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 30 Dec 2006 16:00:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Hab Problem mit ner Input Maske on Sat, 30 Dec 2006 17:36:24 GMT]]></title><description><![CDATA[<p>Kann ich diese Classe ins WinApi Uebernehmen ?</p>
<p>NewMaskEdit.h</p>
<pre><code class="language-cpp">[code]
#pragma once

class NewMaskEdit : public CEdit
{
public:
	NewMaskEdit();
	virtual ~NewMaskEdit();

	void	SetWindowText(LPCTSTR lpszString);

	void	setText(LPCTSTR pszText);
	CString	getText();

	void	setMask(LPCTSTR pszMask, char cPlaceHolder = '_');
	CString	getMask();

	//{{AFX_VIRTUAL(NewMaskEdit)
	//}}AFX_VIRTUAL

protected:

	char	m_cPlaceHolder;

	CString m_strMaskText;

	CString m_strSaveText;

	bool	m_bLastKeyWasDelete;
	bool	m_bLastKeyWasBackspace;

	bool	isMaskChar(int nPos);

	int		gotoNextEntryChar(int nPos);

	bool	getReplacementChar(int nPos, char cWant, char&amp; cGet);

	//{{AFX_MSG(NewMaskEdit)
	afx_msg void OnUpdate();
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
};
[/code]
</code></pre>
<p>ADD: Jochen Kalmbach: Code entfernt, da die Quelle Unklar ist und möglicherweise Copyright-Verletzungen nicht ausgeschlossen sind... auch ist der Code für die Frage unerheblich</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1199945</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1199945</guid><dc:creator><![CDATA[Ascharan]]></dc:creator><pubDate>Sat, 30 Dec 2006 17:36:24 GMT</pubDate></item><item><title><![CDATA[Reply to Hab Problem mit ner Input Maske on Sat, 30 Dec 2006 17:31:56 GMT]]></title><description><![CDATA[<p>Definitiv nicht!</p>
<p>Die Klasse NewMaskEdit wird von der Klasse CEdit abgeleitet, welche fester Bestandteil der MFC ist. Außerdem verwendest du die Klasse CString, die ebenfalls zur MFC gehört.</p>
<p>Du musst also sehr viele Änderungen am Code vornehmen, wenn du diese Klasse für die WinAPI nutzen möchtest.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1199989</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1199989</guid><dc:creator><![CDATA[DrakoXP]]></dc:creator><pubDate>Sat, 30 Dec 2006 17:31:56 GMT</pubDate></item><item><title><![CDATA[Reply to Hab Problem mit ner Input Maske on Sat, 30 Dec 2006 17:39:12 GMT]]></title><description><![CDATA[<p>ok dann such ich nach weiteren moeglichkeiten und vergess diese classe thx</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1199991</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1199991</guid><dc:creator><![CDATA[Ascharan]]></dc:creator><pubDate>Sat, 30 Dec 2006 17:39:12 GMT</pubDate></item></channel></rss>