Archive for November, 2008

How to prevent CDialog closing on pressing Escape key

November 19, 2008

MFC CDialog classes have a default behaviour of closing if the user presses Esc key anytime while the dialog has focus. To overcome this behaviour, the Esc key has to be trapped and disabled in the PreTranslateMessage event handler:

BOOL CMyDlg::PreTranslateMessage(MSG* pMsg)
{
// TODO: Add your specialized code here and/or call the base class
// disable closing by [...]

Posted in VC++ No Comments »

Automated member registration for phpBB

November 4, 2008

A lot of websites may require phpBB plugged-in as an add-on to the main site. In such a case if the main website already has a membership module in place, then it is desirable that when a member signups on the main website, he also becomes a member in phpBB.
There are 3 ways of doing [...]

Posted in Apache/PHP 17 Comments »