|
I think the standard list control does not have such a feature, you have to do it yourself with owner drawn items and handling clicks in the list.
Sidenote: Why are you combining the normal styles with an extended style here:
Member 4709444 wrote: listCtrl.SetExtendedStyle(listCtrl.GetStyle()|LVS_EX_CHECKBOXES);
? Isn't that suposed to be GetExtendedStyle() instead of GetStyle() in there?
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <
|
|
|
|
|
Member 4709444 wrote: Is there any way to do it?
I used XListCtrl for this.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Thanks for the help.
As I am very unexperinced with this, CListCtrl looks like an overkill to me.
Is there any easier way? I only need checkboxes, not animated lists
Thanks,
Moritz
|
|
|
|
|
Member 4709444 wrote: CListCtrl looks like an overkill to me.
Then why would you ask how to use checkboxes with it?
Member 4709444 wrote: I only need checkboxes, not animated lists
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Ahhh, sorry.
I meant, XListCtrl looks like an overkill to me.
X and C are so close together.
I understand how to use the CListCtrl.
The only thing I want additionally are checkboxes in more columns.
Thanks,
Moritz
|
|
|
|
|
Member 4709444 wrote: The only thing I want additionally are checkboxes in more columns.
And you can either do all of it yourself (which is not a trivial exercise), or you can use the control that Hans has already put together.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Thanks for the help.
As CListCtrl looks to complx for me for my small app, i decided to do all the click capturing manually and just to draw different background colors in stead of checkboxes.
There I only included this project for the colors: Adding color to Listview with customdraw[^]
Thanks again,
Moritz
|
|
|
|
|
Member 4709444 wrote: As CListCtrl looks to complx for me for my small app...
How can a list control be too complex here...
Member 4709444 wrote: There I only included this project for the colors: Adding color to Listview with customdraw[^]
...but not here? I'm not convinced you know what it is that you do want.
The XListCtrl link I provided you required you to: 1) add two files to your project, 2) replace CListCtrl with XListCtrl , and 3) call the control's SetCheckbox() method for those columns you want to contain a checkbox. It does not get any simpler.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
I would like some example code in visual c++ for reading a access file . Pass a file name and receive the data back.
An example would work really well.
thanks.
Merlin Vilhauer
merlin Vilhauer
|
|
|
|
|
|
I will be given a char *text="cat sad cattle saddle"
I need to check if my char *pattern="ca" match any of the text
there are rules like "." matches any character
[rt] and as long as it match one of the character in the []...
this is crazy, anyone can sugguest a function in c++ that will do the job?
|
|
|
|
|
ayeosq wrote: ...anyone can sugguest a function in c++ that will do the job?
The string class has many methods. Have you looked? The CRT has functions like strstr() that might also interest you.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Your idea seems to be basic regular expressions evaluation system.Read this article how to build your own regex parser.
Life is a stage and we are all actors!
|
|
|
|
|
hi
I need the help for , How to connect the sql server using MFC
Thanks !
~~~~~~~~Raju~~~~~~~~~~~~~
|
|
|
|
|
Using CDatabase and CRecordSet is possible solution but there is some other ways too.There is plenty of samples at codeproject how to use these classes just see here and and here.
Life is a stage and we are all actors!
|
|
|
|
|
Well, you could start by researching ODBC, ADO, CDatabase , and CRecordset . That should be enough to then generate some specific questions.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
#include <stdio.h>
#include <stdlib.h>
#include <dos.h>
#include <conio.h>
main( )
{
float octave[7]={130.81,146.83,164.81,174.61,196.220,246.94};
int adn;
while( !kbhit( ) )
{
adn = random( 7 );
sound( octave[ adn ] * 10 );
delay( 190 );
nosound( );
}
}
|
|
|
|
|
Are we supposed to guess what the linker error is?
LNK2019 is a self-explanatory error message.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Could you please:
1) Format the code properly and use the code block tags
2) Describe what the problem is
3) Give the exact error message
|
|
|
|
|
It looks like you missed to link with a library [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
I think the library path set in the IDE is not correct.
Величие не Бога может быть недооценена.
|
|
|
|
|
|
|
|
I've got quite a few ActiveX Controls that have been ported to VS2008 from VS 6 and have been tasked with implementing multi-lingual support, specifically Shift-Jis. In the past we had a separate build machine, project and resource files on a Japanese version of Server 2000 and VS 6.0 that we used to build our Shift-Jis versions. While I could go and set this up I was thinking that there has to be an easier way to accomplish this. Does anyone have any pointers or links to lead me in the right direction. It's been a rather fruitless search so far but I have the nagging feeling that I'm not looking for the right things or with the right terms.
|
|
|
|