|
|
|
|
|
| | Total Hits: 1 | Today: 0 | Author: H. Tony | Rating:  |
| |  This is based on this article where I extended the code provided by Zhi-Xin Ye in the post to create a CheckListBox that supports ReadOnly unlike CheckedListBox control which can only be disabled.... |
| | Total Hits: 1 | Today: 0 | Author: Nishant Sivakumar | Rating:  |
| |  I was working on a project where I needed to have a list-box that would show tool tips for items that will not fit within the width of the list-box. Initially I thought there would be a .NET BCL class that would have this facility. I've had forgettable experiences in the past where I'd waste my time writing something that was already available. But this time I found nothing that met my requirements. So I wrote my own list box class derived from the .NET System.Windows.Forms.ListBox class and cal... |
| | Total Hits: 0 | Today: 0 | Author: Anneke Sicherer-Roetman | Rating:  |
| |  1. Include CBitmapPickerCombo.cpp and CBitmapPickerCombo.h in your project 2. In the resource editor create a regular combobox with at least the following styles: DropList, OwnerDraw Variable, Has Strings 3. Create a control member variable for the combobox in VC's classwizard 4. Replace CComboBox with CBitmapPickerCombo in your dialog's .h file 5. In OnInitDialog use the AddBitmap or InsertBitmap member functions to add CBitmaps (and optional strings) to the combobox... |
| | Total Hits: 97 | Today: 0 | Author: PravinSingh | Rating:  |
| |  While creating a List Control using CListCtrl class, we need to specify the column width for all the columns in the very beginning, when we have little idea about the width required by the actual text that is going to come in the columns. So we leave it to the user to adjust the widths to see the entire text. This little enhancement over the CListCtrl class makes the column widths auto adjusting to keep the entire text of all the columns visible.... |
| | Total Hits: 9 | Today: 0 | Author: charles henington | Rating:  |
| |  Disabling Close Button (X in top right corner of ControlBox)... |
| | Total Hits: 3 | Today: 0 | Author: pravk | | Rating:  |
| |  There are times when you need to provide an user interface which is capable of taking input both in freeform (name for eg) and in restricted for like (combobox, for eg. Sex). This control solves this in a easy way.... |
| | Total Hits: 0 | Today: 0 | Author: ran wainstein | Rating:  |
| |  I've needed a simple listbox with tool tip support for my project, i couldn't find a listbox derived class that will do job. Salman A Khilji offers tool tip support in his article "List Box with ToolTips", but he his offering a multi-line tool tip which display's a pre-defined string as set in the dialog function. Also, the tips are always shown in the upper right corner.... |
| | Total Hits: 0 | Today: 0 | Author: Harry J. Devine | Rating:  |
| |  I had a desire/requirement on a recent project to have a CCheckListbox class that allowed for more than one checkbox in front of the string. The 3-state style set by the CCheckListbox simply didn't do what I wanted or needed. I had a list of people who could fall into 2 different categories at the same time. The 3-state style told me that this person fell into one category, but I had to just know WHICH one.... |
| | Total Hits: 0 | Today: 0 | Author: Ali Rafiee | Rating:  |
| |  OLE has made Drag and Drop a piece of cake. It allows two unrelated applications to exchange data in a format that they can both understand, with the help of clipboard formats. Using OLE for drag and drop is a relatively simple task to accomplish. Using MFC, there really isn't much to do but create the appropriate objects and call their appropriate methods. There are three MFC classes that are involved in a Drag and Drop operation. These classes are COleDataSource, COleDropSource, and COleDropTa... |
| | Total Hits: 0 | Today: 0 | Author: Gobinath.K.R | Rating:  |
| |  A DriveBox control enables a user to select a valid disk drive at run time. This control can be used to display a list of all the valid drives in a user's system. You can create dialog boxes that enable the user to open a file from a list of files on a disk in any available drive. This control is very similar to DriveListBox Control which we are very familiar.... |
| | Total Hits: 0 | Today: 0 | Author: Barretto VN | Rating:  |
| |  I developed this project as a learning experience after seeing such a GUI on some FTP Shareware Programs; the Icons and File Types unfortunately have been hardcoded in the project, unlike the ones available on Windows Explorer. The Icons are a part of the project and not picked up from the Windows Operating System. This project uses a ListView to display all the drives (including CD Drive) on the Computer System... |
| | Total Hits: 0 | Today: 0 | Author: Larry1024 | Rating:  |
| |  This presents a windows form application with two listboxes. Items from the left listbox (listBox1) can be dragged to the right listbox (listBox2). Items in the right listBox2 can be rearranged or removed. Drag and Drop events are trapped and reported in a third listbox and informational label. DragDrop events are heavily instrumented and reported.... |
| | Total Hits: 0 | Today: 0 | Author: Senkwe Chanda | Rating:  |
| |  Hi there, I've been waiting for ages and ages for someone to kindly post the code for an owner drawn ComboBox but alas, to no avail. That's right, I'm your average, lowly leech and I've been stealing code off CodeProject for a long time now. Well looks like this time I actually had to go write something on my own. My guess is it was too simple a problem for most of you to bother with. But please do keep writing articles for relative beginners because most of us have to start with the simple thin... |
| | Total Hits: 0 | Today: 0 | Author: Paul Vickery | Rating:  |
| |  This article is a companion article to my article Dynamically re-creating a combo box. Similarly to the combo box, I frequently find myself needing to switch a list box to or from sorted, or to or from multi select. As with the combo box, changing these styles after creation is something that a listbox does not support. The function presented here will recreate the list box so that style changes take effect. The function will retain all list items, with item data, and the currently selected item... |
| | Total Hits: 0 | Today: 0 | Author: Paul Vickery | Rating:  |
| |  Something which I frequently find myself needing to do is to switch a combo box to or from sorted. This is one reason (though not the main reason) I came up with my Dynamically Switchable Control. However, changing these styles after creation is something that combo-box does not support. This function presented here will recreate the combo box so that style changes take effect. The function will retain all list items, with item data, and the currently selected, or entered, text.... |
| | Total Hits: 0 | Today: 0 | Author: Joseph M. Newcomer | Rating:  |
| |  One of the most common questions I hear from programmers who have moved from console-type applications to the GUI world is "How do I use printf to do debug output?" In my first Windows app, a decade ago, I asked myself the same question, and came up with this answer. What I'm showing in this essay and the accompanying code download is the result of a decade of maturing the world's greatest (at least IMNSHO) printf-equivalent. I refer to this in my accompanying essay on the Graphical Developer En... |
| | Total Hits: 0 | Today: 0 | Author: Yildirim Kocdag | Rating:  |
| |  Parent-child ComboBoxes is one of the classical problems in most projects. A brief overview of this problem is:
1. There are two combos. 2. One of them is the parent and the other is the child combo. 3. After the parent one is fired (selected value changed), the child combo should use the selected value of the parent to fill its datasource.... |
| | Total Hits: 0 | Today: 0 | Author: Ashok Jaiswal | Rating:  |
| |  This is a simple sub classed control from CComboBox that allows you to apply skin to the combobox and its droplist. The skins used can be a pixel wide (for the background and corners of the droplist) to keep the control light.... |
| | Total Hits: 0 | Today: 0 | Author: Kirk Stowell | Rating:  |
| |  This control easily gives your application the Flat Look that is seen in the Microsoft office products. To use the control, simply add the files CCJFlatComboBox.cpp and CCJFlatComboBox.h to your project. You can use Class Wizard to add the CCJFlatComboBox member variables ( you most likely will have to rebuild the .clw file associated with your project ), or just replace any instance of CComboBox , with CCJFlatComboBox .... |
| | Total Hits: 0 | Today: 0 | Author: Bahrudin Hrnjica | Rating:  |
| |  This article describes how you can implement a combo box with various popup controls, including a dialog containing any kind of control. The article also shows the implementation of a combo box with the CListCtrl control, MFCGrid control, and a combo box with a popup dialog. As we already know, the combo box control contains two controls inside. The edit control which you can type text into, and a list box control containing string items which you can choose to appear in the edit area of the com... |
|
|
|
|
|
|
|
|
|
|
|
|
|