can you please be more specific, I'm not sure how you mean to implement this.
aafcls
Posts
-
default buttons -
default buttonsHello, I have a dialog with an OK and Cancel button, for example. Until a certain event takes place, the OK button is disabled, and the Cancel button is default (ie: has the thicker black outline). When the event takes place, and the OK button becomes enabled, I want it so that the OK button instantly becomes the only default button. With what keywords can I accomplish this? Thanks ;)
-
sorting a listoh I actually did use InsertItem() when you say to cast lParam1 and lParam2 to where I must have pointed with SetItemData, do I set them to the same pointer value? what makes param1 and param2 unique?
-
sorting a listI am very sorry I do not understand. I do not make use of SetItemData(). All I have is my list control where I have a few InsertColumn()s and SetItemText() accordingly. When you tell me to cast these as pointers int CALLBACK CompareFunction(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort) ...pointing to what exactly?
-
sorting a listare you referring to the
CompareFunction
in the article you sent? in that case, would I have to make use of "GetItemText" to fill in the "items" in CompareFunction? i'm just not sure how to implement this with a list of unknown quantity of items.. -
sorting a listare there any available comparison functions just for a simple list control for a clicked-on header, to be passed to SortItem?
-
sorting a listokay but what action item will take care of the header clicking functionality, because from there I can call sorting method.
-
sorting a listHello, I have a list control item with a given amount of columns and respective headers. I would now like to add some sorting functionality, where, upon clicking the header of the respective column, it sorts alphabetically. Are there any functions to accomplish this?
-
code formatting style [modified]Hello, This may seem like a simple question, but in Visual Studio is it possible to set coding style, specifically: I like to write like this:
method { for { statement } }
but Visual Studio auto formats it like this (and I hate it!):method { for { statement } }
How can I set it my way? -- modified at 10:21 Thursday 13th July, 2006 -
invisible buttonHello, I want to change the visibility of a push button, such that given a certain condition, the button is not visible at all (I don't mean just greyed out, I mean completely gone). What method do I use to control this? Thank you.
-
[Message Deleted][Message Deleted]
-
new dialog on button clickjust to clarify, is this assuming I have created a class for the new dialog as well? and then you are saying to double click on the button in the old dialog and declare an instance of the new dialog? I think I am creating too many classes, so please just clarify for me where and for what I am creating the classes, thanks!
-
new dialog on button clickHello, If someone can simply break down the steps, as I think I'm missing something... My application is a dialog box, with a few buttons. On the button click, I want to launch a new dialog box which I have created in Resources. I have also added classes for it, so it has a cpp and h file. Now, how do I simply link the button to the dialog box, such that it will simply launch? Thank you. ;)
-
button alignment and movementHello, I am having some trouble controlling where my buttons in my dialog go when I resize the window. I want a certain group of buttons towards the right of the dialog to sort of move right when the dialog is expanded, however, I can't figure out how this is done in the properties. Can anyone point me in the right direction? Thanks! ;)
-
multiple selections in List View (LVS)Thanks, this works. However, instead of selecting each item by index number, is there a way to "select all"? (instead of having to do individual
SetItemState
) -
multiple selections in List View (LVS)Mike, where the FAQ says: Here is how to select an item whose index is nItemToSelect:
// MFC: wndYourList.SetItemState ( nItemToSelect, LVIS_SELECTED, LVIS_SELECTED );
does "index" refer to an actual number? for example, if I have 2 items in my list, would the first item be index "0", then index "1"? any others have alternative suggestions? (sorry, I am a novice) -
multiple selections in List View (LVS)Hello! This is my first post on the Code Project, maybe you can help me. In my dialog box I have a list view and a check box. If the check box is unselected, the user should be able to select any list item they wish. However, if the check box is selected, and there are only two list items, I want both list items automatically selected as it is a requirement of my application (right now, the user has to Shift select both list items before proceeding, and I want to remove this ambiguity by having both required list items selected for them). However if there are more than two items in the list, there should be no automatic highlighting. That said, I'm not sure how to go about this in Visual C++ .NET. Any suggestions? Thank you. :)