[rst-commit] r176 - in /redwax-signtext-windows/trunk/Redwax SignText/Redwax SignText (MFC): Redwax SignText (MFC)Dlg.cpp Redwax SignText (MFC)Dlg.h SignPage.cpp SignPage.h

rst-commit at redwax.eu rst-commit at redwax.eu
Sat Jul 6 18:58:55 CEST 2024


Author: minfrin at redwax.eu
Date: Sat Jul  6 18:58:54 2024
New Revision: 176

Log:
Ignore the enter key.

Modified:
    redwax-signtext-windows/trunk/Redwax SignText/Redwax SignText (MFC)/Redwax SignText (MFC)Dlg.cpp
    redwax-signtext-windows/trunk/Redwax SignText/Redwax SignText (MFC)/Redwax SignText (MFC)Dlg.h
    redwax-signtext-windows/trunk/Redwax SignText/Redwax SignText (MFC)/SignPage.cpp
    redwax-signtext-windows/trunk/Redwax SignText/Redwax SignText (MFC)/SignPage.h

Modified: redwax-signtext-windows/trunk/Redwax SignText/Redwax SignText (MFC)/Redwax SignText (MFC)Dlg.cpp
==============================================================================
--- redwax-signtext-windows/trunk/Redwax SignText/Redwax SignText (MFC)/Redwax SignText (MFC)Dlg.cpp	(original)
+++ redwax-signtext-windows/trunk/Redwax SignText/Redwax SignText (MFC)/Redwax SignText (MFC)Dlg.cpp	Sat Jul  6 18:58:54 2024
@@ -138,6 +138,7 @@
 	ON_BN_CLICKED(IDCANCEL, &CRedwaxSignTextMFCDlg::OnBnClickedCancel)
 	ON_WM_CLOSE()
 	ON_WM_ENTERIDLE()
+	ON_COMMAND(IDOK, &CRedwaxSignTextMFCDlg::OnIdok)
 END_MESSAGE_MAP()
 
 
@@ -747,3 +748,9 @@
 
 }
 
+
+
+void CRedwaxSignTextMFCDlg::OnIdok()
+{
+	/* ignore the ok button */
+}

Modified: redwax-signtext-windows/trunk/Redwax SignText/Redwax SignText (MFC)/Redwax SignText (MFC)Dlg.h
==============================================================================
--- redwax-signtext-windows/trunk/Redwax SignText/Redwax SignText (MFC)/Redwax SignText (MFC)Dlg.h	(original)
+++ redwax-signtext-windows/trunk/Redwax SignText/Redwax SignText (MFC)/Redwax SignText (MFC)Dlg.h	Sat Jul  6 18:58:54 2024
@@ -95,4 +95,5 @@
 	afx_msg void OnClose();
 	afx_msg void OnBnClickedSign();
 	afx_msg void OnBnClickedCancel();
+	afx_msg void OnIdok();
 };

Modified: redwax-signtext-windows/trunk/Redwax SignText/Redwax SignText (MFC)/SignPage.cpp
==============================================================================
--- redwax-signtext-windows/trunk/Redwax SignText/Redwax SignText (MFC)/SignPage.cpp	(original)
+++ redwax-signtext-windows/trunk/Redwax SignText/Redwax SignText (MFC)/SignPage.cpp	Sat Jul  6 18:58:54 2024
@@ -54,6 +54,7 @@
 	ON_WM_SYSCOMMAND()
 	ON_WM_PAINT()
 	ON_CBN_SELCHANGE(IDC_CERTIFICATEBOX, &SignPage::OnCbnSelchangeCertificatebox)
+	ON_COMMAND(IDOK, &SignPage::OnIdok)
 END_MESSAGE_MAP()
 
 
@@ -63,3 +64,9 @@
 {
 	::PostMessage(instance->signtext->hwnd, WM_CRYPTO_SELECTED, 0, 0);
 }
+
+
+void SignPage::OnIdok()
+{
+	/* ignore the enter button */
+}

Modified: redwax-signtext-windows/trunk/Redwax SignText/Redwax SignText (MFC)/SignPage.h
==============================================================================
--- redwax-signtext-windows/trunk/Redwax SignText/Redwax SignText (MFC)/SignPage.h	(original)
+++ redwax-signtext-windows/trunk/Redwax SignText/Redwax SignText (MFC)/SignPage.h	Sat Jul  6 18:58:54 2024
@@ -49,4 +49,5 @@
 public:
 	afx_msg void OnCbenInsertitemCertificatebox(NMHDR* pNMHDR, LRESULT* pResult);
 	afx_msg void OnCbnSelchangeCertificatebox();
+	afx_msg void OnIdok();
 };



More information about the rst-commit mailing list