106) 12/14/2003 131992131992 131992.html">HOWTO: How to Create a Property Sheet That Has Scrolling Tabs in MFC (131992) - This article explains how to create a property sheet (tabbed dialog box) that uses a scrolling-tabs style instead of the default stacked-tabs style.
107) 12/14/2003 138414138414 138414.html">PRB: FromIDispatch Returns NULL for OLE Control (138414) - Calling CCmdTarget::FromIDispatch() inside a member function of a class derived from COleControl or attempting to call FromIDispatch() passing an IDispatch pointer belonging to an OLE Control, will always return NULL.
108) 12/14/2003 130827130827 130827.html">FIX: MFC Reports Memory Leaks When cout and cin Are Used (130827) - An application that statically links to MFC and uses one of the C++ I/O functions (cout, cin, cerr, or clog) generates memory leak messages when it exits from the program. The messages look similar to this one: Detected memory leaks! Dumping objects...
109) 12/14/2003 141039141039 141039.html">HOWTO: How to Hide the Apply Button in CPropertySheet (141039) - A modal CPropertySheet will automatically create an Apply button. To hide this button, you need to use different methods for different versions of MFC. In Visual C++ 2.2 and earlier (MFC 3.2 and earlier), you can derive a class from CPropertySheet,...
110) 12/14/2003 130719130719 130719.html">FIX: "Unable to Create File Buffer" 32-Bit ODBC Error (130719) - After a long period of successful operation, an application generates the following ODBC error when that application uses the MFC database classes such that the 32-bit ODBC cursor library: General error: Unable to create file buffer...
111) 12/14/2003 134679134679 134679.html">FIX: Loss of Decimal Digits with MFC Database Classes (134679) - When you add or update a record that includes a numeric or decimal field (ODBC SQL data types SQL_DECIMAL and SQL_NUMERIC), all the digits to the right of the decimal point are lost.
112) 12/14/2003 130591130591 130591.html">INFO: CPropertyPage::CancelToClose() Documented Incorrectly (130591) - The documentation for the CancelToClose member function of the CPropertyPage class states that this function changes the text of the Cancel button to read Close. This is incorrect. The implementation of the CPropertyPage::CancelToClose() function...
113) 12/14/2003 137139137139 137139.html">HOWTO: Optimize the Reactivation of In-Place Active Servers (137139) - When an OLE container embeds an in-place active capable server, the deactivation/reactivation process may be considered too long. One way to optimize the process is to hide the server rather than deactivate it. Simply hiding the server will enable a...
114) 12/14/2003 133716133716 133716.html">HOWTO: How to Detect Mouse Clicks on Client Area of MDI Frame Windows (133716) - You can detect when a user clicks the mouse while the pointer is over the client area of your main MDI frame window (the area of the client not covered by any open MDI child windows). To do so, you must first subclass the MDIClient so you can...
115) 12/14/2003 126897126897 126897.html">HOWTO: How to Change Default Printer Settings in an MFC Application (126897) - To change the default printer settings in an MFC application, you must retrieve the system default settings in a CWinApp derived object and modify those defaults before a print job is invoked.
116) 12/14/2003 129649129649 129649.html">PRB: GetActiveView Returns NULL for an MDI Frame Window (129649) - The GetActiveView() function returns the active view (if any) attached to a frame window (CFrameWnd). This function returns NULL when called for an MDI main frame window (CMDIFrameWnd).
117) 12/14/2003 134421134421 134421.html">HOWTO: How to Use CBitmapButton to Resize a Bitmap to Fit a Button (134421) - You can override the default behavior of CBitmapButton so the bitmap sizes to fit the button. How CBitmapButtons behave during initialization depends on which function is used to load the bitmaps. Function Behavior When used AutoLoad() button sizes to...
118) 12/14/2003 133311133311 133311.html">FIX: Errors Occur When SQL Server Binary Field Over 64K (133311) - When you try to store more than 64K of data in a binary field using the SQL Server ODBC 2.0 driver version 2.00.1912, data is truncated. The following error may also occur with the 16-bit version of the driver: Incorrect syntax near 'NULLNULL'....
119) 12/14/2003 133275133275 133275.html">HOWTO: Print from a Class Other Than CView (133275) - The standard method to support printing capability in an MFC application is to override the OnDraw(CDC* pDC) member function of the CView class that provides the pointer to the device context (pDC). If the application does not possess a CView class...
120) 12/14/2003 126751126751 126751.html">FIX: Scribble File Extension Conflicts with Screen Savers (126751) - Creating or activating embedded or linked OLE objects-based files saved with the MFC server sample "Scribble" fails in unexpected ways. Two common scenarios are: When you attempt to insert an object into an OLE container using the Create from File...