C / C++ / MFC
|
|
 |
|

|
Hi,I want to hide a column of my listctrl,and In my program never show,like delete,but It should not be delete,how to do with it,I set it's column width 0,but when I drag the column,It will show.
|
|
|
|

|
You should be able to get what you want from this[^] sample.
|
|
|
|
|

|
Luca D'Amico wrote: I hope that somebody can point me to the right direction. The only thing I can think of is this.
"One man's wage rise is another man's price increase." - Harold Wilson
"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
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
|

|
Thanks a lot mates
|
|
|
|

|
I have a function which return an std::vector<T>
it is quite big and moved around a lot and kept for a long time, so I put it into a
std::shared_ptr<std::vector<T>>
Now I need to access the vector as an array
with
std::vector<T> a;
I can write
T* pa = &a[0];
But this doesn't work with a std::shared_ptr<std::vector<T>>
What can I do?
Remark
Why don't I just pass it by reference around?
Well, it is created in a function, and then it is captured by a lambda that is spawn regularly into a task (i.e. in another thread) which would be the only reference left.
And I want to avoid copying the vector (it is big) and destructing when it goes out of scope, I want to create it only once and reuse it / keep it alive!...
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station....
_________________________________________________________
My programs never have bugs, they just develop random features.
|
|
|
|

|
Super Lloyd wrote: Now I need to access the vector as an array What's wrong with it?
e.g.
shared_prt<vector<int>> p(new vector<int>{1,2,3,4});
cout << (*p)[2] << endl;
Veni, vidi, vici.
|
|
|
|
 |
|
|
General
News
Suggestion
Question
Bug
Answer
Joke
Rant
Admin