devxlogo

February 11, 2003

Disable the Alt+F4 Key Combination to Keep the Window from Closing

Assume you have an MFC application. The solution is to override the virtual function: virtual BOOL CWinApp::ProcessMessageFilter(int code, LPMSG lpMsg); The following code demonstrates: BOOL CMyProgramApp::ProcessMessageFilter(int code, LPMSG lpMsg){ if(WM_SYSKEYDOWN

Using the JEditorPane to Display HTML File

The JEditorPane provides a mechanism through which you can add support for custom text formats. A standard editor pane can understand plain text, HTML, and RTF. import javax.swing.*;import javax.swing.event.*;import java.awt.*;import

The Foundation VB Library

The Foundation library is intended to provide VB developers with convenience and simplicity of working with data available for their C++ colleagues from standard STL library. The author tried to