Andreas Masur
July 27th, 2005, 02:16 PM
<h3>MFC FAQ sections</h3>
<a href="#mfc_general">General</a>
<a href="#mfc_doc_view">Doc/View</a>
<a href="#mfc_sdi">SDI</a>
<a href="#mfc_mdi">MDI</a>
<a href="#mfc_dialog">Dialog</a>
<a href="#mfc_application">Application</a>
<a href="#mfc_file_system">File System</a>
<a href="#mfc_thread">Threads</a>
<a href="#mfc_dll">DLL</a>
<a href="#mfc_debugging">Debugging</a>
<a href="#mfc_registry">Registry</a>
<a href="#mfc_string">String</a>
<a href="#mfc_printing">Printing</a>
<a href="#mfc_stl">STL</a>
<a href="#mfc_edit_control">Edit Control</a>
<a href="#mfc_listview_control">ListView Control</a>
<a href="#mfc_listbox_control">ListBox Control</a>
<a href="#mfc_tree_control">Tree Control</a>
<a href="#mfc_date_time">Date and Time</a>
<br><hr noshade size="4">
<a name="mfc_general"><h3>General</h3></a>
How to prevent a resizable window to be smaller than...? (http://www.codeguru.com/forum/showthread.php?t=318933)
How do I create full screen applications? (http://www.codeguru.com/forum/showthread.php?t=363365)
How to change the font of a control? (http://www.codeguru.com/forum/showthread.php?t=321408)
What is the difference between 'BOOL' and 'bool'? (http://www.codeguru.com/forum/showthread.php?t=332831)
How to change frame and caption window styles at run-time? (http://www.codeguru.com/forum/showthread.php?t=352963)
How to make a simple text editor? (http://www.codeguru.com/forum/showthread.php?t=375000)
How to make a simple Web Browser? (http://www.codeguru.com/forum/showthread.php?t=517582)
How to process command line arguments in a MFC application? (http://www.codeguru.com/forum/showthread.php?t=386406)
<br><a name="mfc_doc_view"><h3>Doc/View</h3></a>
How to obtain a pointer to various objects? (http://www.codeguru.com/forum/showthread.php?t=281430)
How to modify the default 'Open' dialog? (http://www.codeguru.com/forum/showthread.php?t=352966)
How to get the active document anywhere in my application? (http://www.codeguru.com/forum/showthread.php?t=473808)
<br><a name="mfc_sdi"><h3>SDI</h3></a>
How do I create transparent SDI views? (http://www.codeguru.com/forum/showthread.php?t=382686)
<br><a name="mfc_mdi"><h3>MDI</h3></a>
How to change the background of the MDI main frame? (http://www.codeguru.com/forum/showthread.php?t=319786)
<br><a name="mfc_dialog"><h3>Dialog</h3></a>
How to hide/show/maximize/minimize a dialog? (http://www.codeguru.com/forum/showthread.php?t=231032)
How to add a minimize/maximize button into your dialog? (http://www.codeguru.com/forum/showthread.php?t=231031)
How to enable/disable the 'Close' button of your dialog at run-time? (http://www.codeguru.com/forum/showthread.php?t=284001)
How to set/get the values of various controls? (http://www.codeguru.com/forum/showthread.php?t=231030)
How to start your dialog application in hidden mode? (http://www.codeguru.com/forum/showthread.php?t=231065)
How to set the dialog window always on top? (http://www.codeguru.com/forum/showthread.php?t=231066)
How to create a non-rectangular dialog box? (http://www.codeguru.com/forum/showthread.php?t=231070)
How to drag a dialog by grabbing any point? (http://www.codeguru.com/forum/showthread.php?t=231073)
How to disable/change the behaviour of the <...> key in a dialog? (http://www.codeguru.com/forum/showthread.php?t=231075)
How to enhance a dialog-based application with Menu, Toolbar...? (http://www.codeguru.com/forum/showthread.php?t=267664)
<br><a name="mfc_application"><h3>Application</h3></a>
How can I limit my application to one instance? (http://www.codeguru.com/forum/showthread.php?t=312467)
How to get the application name? (http://www.codeguru.com/forum/showthread.php?t=312468)
How to set the current working directory? (http://www.codeguru.com/forum/showthread.php?t=312469)
How to get the current working directory? (http://www.codeguru.com/forum/showthread.php?t=312470)
How to get the application directory? (http://www.codeguru.com/forum/showthread.php?t=312471)
How to retrieve the version information of my application? (http://www.codeguru.com/forum/showthread.php?t=318655)
How to get the system directory? (http://www.codeguru.com/forum/showthread.php?t=264335)
How to get the windows directory? (http://www.codeguru.com/forum/showthread.php?t=264336)
How to show a message box in ExitInstance of a dialog-based application? (http://www.codeguru.com/forum/showthread.php?t=499077)
<br><a name="mfc_file_system"><h3>File System</h3></a>
How to read a text file line by line? (http://www.codeguru.com/forum/showthread.php?t=439837)
How to search for files in a directory and subdirectories? (http://www.codeguru.com/forum/showthread.php?t=312461)
<br><a name="mfc_thread"><h3>Threads</h3></a>
Where can I find references on Multithreading? (http://www.codeguru.com/forum/showthread.php?t=354932)
How to create a worker thread? (http://www.codeguru.com/forum/showthread.php?t=312452)
How to end a thread? (http://www.codeguru.com/forum/showthread.php?t=305166)
How to use member functions as thread functions? (http://www.codeguru.com/forum/showthread.php?t=312453)
How to access UI elements from a thread in MFC? (http://www.codeguru.com/forum/showthread.php?t=312454)
<br><a name="mfc_dll"><h3>DLL</h3></a>
How to build a resource-only DLL? (http://www.codeguru.com/forum/showthread.php?t=231256)
<br><a name="mfc_debugging"><h3>Debugging</h3></a>
How to manage memory leaks? (http://www.codeguru.com/forum/showthread.php?t=312742)
How to use 'ASSERT' and deal with assertion failures? (http://www.codeguru.com/forum/showthread.php?t=315371)
<br><a name="mfc_registry"><h3>Registry</h3></a>
How can I access the registry? (http://www.codeguru.com/forum/showthread.php?t=350430)
How can I read data from the registry? (http://www.codeguru.com/forum/showthread.php?t=350431)
How can I write data to the registry? (http://www.codeguru.com/forum/showthread.php?t=350432)
How to store the application settings in registry? (http://www.codeguru.com/forum/showthread.php?t=388868)
<br><a name="mfc_string"><h3>String</h3></a>
How to use 'CString' in non-MFC applications? (http://www.codeguru.com/forum/showthread.php?t=231164)
How to assign or compare strings? (http://www.codeguru.com/forum/showthread.php?t=231162)
What is the difference between 'CString' and 'std::string'? (http://www.codeguru.com/forum/showthread.php?t=231161)
How to get the hexadecimal representation of a ... into a 'CString'? (http://www.codeguru.com/forum/showthread.php?t=231158)
How to convert between a 'CString' and a 'BSTR'? (http://www.codeguru.com/forum/showthread.php?t=231156)
How to convert between 'CString' and 'std::string'? (http://www.codeguru.com/forum/showthread.php?t=231155)
How to convert a 'char*' to 'CString'? (http://www.codeguru.com/forum/showthread.php?t=231154)
How to convert a 'CString' to a 'char*'? (http://www.codeguru.com/forum/showthread.php?t=231153)
How to convert a numeric type to a string? (http://www.codeguru.com/forum/showthread.php?t=231056)
How to convert a string into a numeric type? (http://www.codeguru.com/forum/showthread.php?t=231054)
What are the rules for BSTR allocation and deallocation? (http://www.codeguru.com/forum/showthread.php?t=364511)
<br><a name="mfc_printing"><h3>Printing</h3></a>
Why does printer not print bitmap? (http://www.codeguru.com/forum/showthread.php?t=234177)
<br><a name="mfc_stl"><h3>STL</h3></a>
How can I sort a 'CArray' (or 'CStringArray', 'CIntArray', etc.)? (http://www.codeguru.com/forum/showthread.php?t=231252)
<br><a name="mfc_edit_control"><h3>Edit Control</h3></a>
How to append text to an edit control? (http://www.codeguru.com/forum/showthread.php?t=318921)
How to know when text is pasted from clipboard to 'CEdit' control? (http://www.codeguru.com/forum/showthread.php?t=317399)
How to replace a line in a multi-line edit control? (http://www.codeguru.com/forum/showthread.php?t=352972)
How do I introduce insert/overwrite mode to 'CEdit' derived edit control? (http://www.codeguru.com/forum/showthread.php?t=380650)
<br><a name="mfc_listview_control"><h3>ListView Control</h3></a>
How to select a full row in a list control? (http://www.codeguru.com/forum/showthread.php?t=231217)
How to add a subitem in a list control? (http://www.codeguru.com/forum/showthread.php?t=231218)
How to change the colors in a list control? (http://www.codeguru.com/forum/showthread.php?t=231219)
How to get selected items in a list control? (http://www.codeguru.com/forum/showthread.php?t=231220)
How to use a context menu in a list control? (http://www.codeguru.com/forum/showthread.php?t=231221)
How to correctly delete items from a CListCtrl? (http://www.codeguru.com/forum/showthread.php?t=388818)
How CListCtrl notifies "checkbox status changed"? (http://www.codeguru.com/forum/showthread.php?t=475929)
<br><a name="mfc_listbox_control"><h3>ListBox Control</h3></a>
How CCheckListBox notifies "checkbox status changed"? (http://www.codeguru.com/forum/showthread.php?t=475925)
<br><a name="mfc_tree_control"><h3>Tree Control</h3></a>
How to disable an item? (http://www.codeguru.com/forum/showthread.php?t=231234)
How to detect which part of an item the user clicked on? (http://www.codeguru.com/forum/showthread.php?t=231232)
How to add icons to a tree control? (http://www.codeguru.com/forum/showthread.php?t=231230)
How to add checkboxes to a tree control? (http://www.codeguru.com/forum/showthread.php?t=231229)
How to expand/collapse a branch? (http://www.codeguru.com/forum/showthread.php?t=231228)
How to use 'SetItemData()' and 'GetItemData()'? (http://www.codeguru.com/forum/showthread.php?t=231227)
<br><a name="mfc_date_time"><h3>Date and Time</h3></a>
COleDateTime vs. CTime. Which one is better? (http://www.codeguru.com/forum/showthread.php?t=503587)
<br><br>
<a href="#mfc_general">General</a>
<a href="#mfc_doc_view">Doc/View</a>
<a href="#mfc_sdi">SDI</a>
<a href="#mfc_mdi">MDI</a>
<a href="#mfc_dialog">Dialog</a>
<a href="#mfc_application">Application</a>
<a href="#mfc_file_system">File System</a>
<a href="#mfc_thread">Threads</a>
<a href="#mfc_dll">DLL</a>
<a href="#mfc_debugging">Debugging</a>
<a href="#mfc_registry">Registry</a>
<a href="#mfc_string">String</a>
<a href="#mfc_printing">Printing</a>
<a href="#mfc_stl">STL</a>
<a href="#mfc_edit_control">Edit Control</a>
<a href="#mfc_listview_control">ListView Control</a>
<a href="#mfc_listbox_control">ListBox Control</a>
<a href="#mfc_tree_control">Tree Control</a>
<a href="#mfc_date_time">Date and Time</a>
<br><hr noshade size="4">
<a name="mfc_general"><h3>General</h3></a>
How to prevent a resizable window to be smaller than...? (http://www.codeguru.com/forum/showthread.php?t=318933)
How do I create full screen applications? (http://www.codeguru.com/forum/showthread.php?t=363365)
How to change the font of a control? (http://www.codeguru.com/forum/showthread.php?t=321408)
What is the difference between 'BOOL' and 'bool'? (http://www.codeguru.com/forum/showthread.php?t=332831)
How to change frame and caption window styles at run-time? (http://www.codeguru.com/forum/showthread.php?t=352963)
How to make a simple text editor? (http://www.codeguru.com/forum/showthread.php?t=375000)
How to make a simple Web Browser? (http://www.codeguru.com/forum/showthread.php?t=517582)
How to process command line arguments in a MFC application? (http://www.codeguru.com/forum/showthread.php?t=386406)
<br><a name="mfc_doc_view"><h3>Doc/View</h3></a>
How to obtain a pointer to various objects? (http://www.codeguru.com/forum/showthread.php?t=281430)
How to modify the default 'Open' dialog? (http://www.codeguru.com/forum/showthread.php?t=352966)
How to get the active document anywhere in my application? (http://www.codeguru.com/forum/showthread.php?t=473808)
<br><a name="mfc_sdi"><h3>SDI</h3></a>
How do I create transparent SDI views? (http://www.codeguru.com/forum/showthread.php?t=382686)
<br><a name="mfc_mdi"><h3>MDI</h3></a>
How to change the background of the MDI main frame? (http://www.codeguru.com/forum/showthread.php?t=319786)
<br><a name="mfc_dialog"><h3>Dialog</h3></a>
How to hide/show/maximize/minimize a dialog? (http://www.codeguru.com/forum/showthread.php?t=231032)
How to add a minimize/maximize button into your dialog? (http://www.codeguru.com/forum/showthread.php?t=231031)
How to enable/disable the 'Close' button of your dialog at run-time? (http://www.codeguru.com/forum/showthread.php?t=284001)
How to set/get the values of various controls? (http://www.codeguru.com/forum/showthread.php?t=231030)
How to start your dialog application in hidden mode? (http://www.codeguru.com/forum/showthread.php?t=231065)
How to set the dialog window always on top? (http://www.codeguru.com/forum/showthread.php?t=231066)
How to create a non-rectangular dialog box? (http://www.codeguru.com/forum/showthread.php?t=231070)
How to drag a dialog by grabbing any point? (http://www.codeguru.com/forum/showthread.php?t=231073)
How to disable/change the behaviour of the <...> key in a dialog? (http://www.codeguru.com/forum/showthread.php?t=231075)
How to enhance a dialog-based application with Menu, Toolbar...? (http://www.codeguru.com/forum/showthread.php?t=267664)
<br><a name="mfc_application"><h3>Application</h3></a>
How can I limit my application to one instance? (http://www.codeguru.com/forum/showthread.php?t=312467)
How to get the application name? (http://www.codeguru.com/forum/showthread.php?t=312468)
How to set the current working directory? (http://www.codeguru.com/forum/showthread.php?t=312469)
How to get the current working directory? (http://www.codeguru.com/forum/showthread.php?t=312470)
How to get the application directory? (http://www.codeguru.com/forum/showthread.php?t=312471)
How to retrieve the version information of my application? (http://www.codeguru.com/forum/showthread.php?t=318655)
How to get the system directory? (http://www.codeguru.com/forum/showthread.php?t=264335)
How to get the windows directory? (http://www.codeguru.com/forum/showthread.php?t=264336)
How to show a message box in ExitInstance of a dialog-based application? (http://www.codeguru.com/forum/showthread.php?t=499077)
<br><a name="mfc_file_system"><h3>File System</h3></a>
How to read a text file line by line? (http://www.codeguru.com/forum/showthread.php?t=439837)
How to search for files in a directory and subdirectories? (http://www.codeguru.com/forum/showthread.php?t=312461)
<br><a name="mfc_thread"><h3>Threads</h3></a>
Where can I find references on Multithreading? (http://www.codeguru.com/forum/showthread.php?t=354932)
How to create a worker thread? (http://www.codeguru.com/forum/showthread.php?t=312452)
How to end a thread? (http://www.codeguru.com/forum/showthread.php?t=305166)
How to use member functions as thread functions? (http://www.codeguru.com/forum/showthread.php?t=312453)
How to access UI elements from a thread in MFC? (http://www.codeguru.com/forum/showthread.php?t=312454)
<br><a name="mfc_dll"><h3>DLL</h3></a>
How to build a resource-only DLL? (http://www.codeguru.com/forum/showthread.php?t=231256)
<br><a name="mfc_debugging"><h3>Debugging</h3></a>
How to manage memory leaks? (http://www.codeguru.com/forum/showthread.php?t=312742)
How to use 'ASSERT' and deal with assertion failures? (http://www.codeguru.com/forum/showthread.php?t=315371)
<br><a name="mfc_registry"><h3>Registry</h3></a>
How can I access the registry? (http://www.codeguru.com/forum/showthread.php?t=350430)
How can I read data from the registry? (http://www.codeguru.com/forum/showthread.php?t=350431)
How can I write data to the registry? (http://www.codeguru.com/forum/showthread.php?t=350432)
How to store the application settings in registry? (http://www.codeguru.com/forum/showthread.php?t=388868)
<br><a name="mfc_string"><h3>String</h3></a>
How to use 'CString' in non-MFC applications? (http://www.codeguru.com/forum/showthread.php?t=231164)
How to assign or compare strings? (http://www.codeguru.com/forum/showthread.php?t=231162)
What is the difference between 'CString' and 'std::string'? (http://www.codeguru.com/forum/showthread.php?t=231161)
How to get the hexadecimal representation of a ... into a 'CString'? (http://www.codeguru.com/forum/showthread.php?t=231158)
How to convert between a 'CString' and a 'BSTR'? (http://www.codeguru.com/forum/showthread.php?t=231156)
How to convert between 'CString' and 'std::string'? (http://www.codeguru.com/forum/showthread.php?t=231155)
How to convert a 'char*' to 'CString'? (http://www.codeguru.com/forum/showthread.php?t=231154)
How to convert a 'CString' to a 'char*'? (http://www.codeguru.com/forum/showthread.php?t=231153)
How to convert a numeric type to a string? (http://www.codeguru.com/forum/showthread.php?t=231056)
How to convert a string into a numeric type? (http://www.codeguru.com/forum/showthread.php?t=231054)
What are the rules for BSTR allocation and deallocation? (http://www.codeguru.com/forum/showthread.php?t=364511)
<br><a name="mfc_printing"><h3>Printing</h3></a>
Why does printer not print bitmap? (http://www.codeguru.com/forum/showthread.php?t=234177)
<br><a name="mfc_stl"><h3>STL</h3></a>
How can I sort a 'CArray' (or 'CStringArray', 'CIntArray', etc.)? (http://www.codeguru.com/forum/showthread.php?t=231252)
<br><a name="mfc_edit_control"><h3>Edit Control</h3></a>
How to append text to an edit control? (http://www.codeguru.com/forum/showthread.php?t=318921)
How to know when text is pasted from clipboard to 'CEdit' control? (http://www.codeguru.com/forum/showthread.php?t=317399)
How to replace a line in a multi-line edit control? (http://www.codeguru.com/forum/showthread.php?t=352972)
How do I introduce insert/overwrite mode to 'CEdit' derived edit control? (http://www.codeguru.com/forum/showthread.php?t=380650)
<br><a name="mfc_listview_control"><h3>ListView Control</h3></a>
How to select a full row in a list control? (http://www.codeguru.com/forum/showthread.php?t=231217)
How to add a subitem in a list control? (http://www.codeguru.com/forum/showthread.php?t=231218)
How to change the colors in a list control? (http://www.codeguru.com/forum/showthread.php?t=231219)
How to get selected items in a list control? (http://www.codeguru.com/forum/showthread.php?t=231220)
How to use a context menu in a list control? (http://www.codeguru.com/forum/showthread.php?t=231221)
How to correctly delete items from a CListCtrl? (http://www.codeguru.com/forum/showthread.php?t=388818)
How CListCtrl notifies "checkbox status changed"? (http://www.codeguru.com/forum/showthread.php?t=475929)
<br><a name="mfc_listbox_control"><h3>ListBox Control</h3></a>
How CCheckListBox notifies "checkbox status changed"? (http://www.codeguru.com/forum/showthread.php?t=475925)
<br><a name="mfc_tree_control"><h3>Tree Control</h3></a>
How to disable an item? (http://www.codeguru.com/forum/showthread.php?t=231234)
How to detect which part of an item the user clicked on? (http://www.codeguru.com/forum/showthread.php?t=231232)
How to add icons to a tree control? (http://www.codeguru.com/forum/showthread.php?t=231230)
How to add checkboxes to a tree control? (http://www.codeguru.com/forum/showthread.php?t=231229)
How to expand/collapse a branch? (http://www.codeguru.com/forum/showthread.php?t=231228)
How to use 'SetItemData()' and 'GetItemData()'? (http://www.codeguru.com/forum/showthread.php?t=231227)
<br><a name="mfc_date_time"><h3>Date and Time</h3></a>
COleDateTime vs. CTime. Which one is better? (http://www.codeguru.com/forum/showthread.php?t=503587)
<br><br>