Click here to Skip to main content
       

C / C++ / MFC

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page  Show 
GeneralRe: Treeview After Select Eventmemberjeron17 Jan '13 - 5:08 
TVN_SELCHANGED[^]
Questionhow to hide a column of a listctrlmembercherry7297 Jan '13 - 0:55 
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.
AnswerRe: how to hide a column of a listctrlprotectorPete O'Hanlon7 Jan '13 - 1:16 
You should be able to get what you want from this[^] sample.

*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington

"Mind bleach! Send me mind bleach!" - Nagy Vilmos

CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

QuestionCreating Non-Rectangular FormsmemberLuca D'Amico6 Jan '13 - 11:38 
Hello,
I'd like to create a Non-Rectangular Form based on an image.
 
In short: I need to do this http://www.codeguru.com/csharp/csharp/cs_misc/designtechniques/article.php/c10083/Creating-NonRectangular-Forms.htm[^]
but in C++ (not c#)
 
I hope that somebody can point me to the right direction.
 
Thanks Smile | :)
SuggestionRe: Creating Non-Rectangular FormsmemberDavidCrow6 Jan '13 - 17:25 
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


AnswerRe: Creating Non-Rectangular Formsmember«_Superman_»6 Jan '13 - 17:56 
The basics of this is to create a region of whatever shape you want.
There are several region function available in the Windows API - Region Functions[^]
 
Here are some good article on CP about region creation -
Simple way to create non-rectangular shaped dialogs[^]
CreateRegionFromFile[^]
Transparent digital clock[^]
Burn the Edges of Your Windows to Give Them Character[^]
«_Superman 
I love work. It gives me something to do between weekends.


Microsoft MVP (Visual C++) (October 2009 - September 2013)

Polymorphism in C

AnswerRe: Creating Non-Rectangular FormsmvpRichard MacCutchan6 Jan '13 - 22:13 
Take a look at http://www.flipcode.com/archives/Win32_Window_Skinning.shtml[^], it explains exactly how to do it.
One of these days I'm going to think of a really clever signature.

GeneralRe: Creating Non-Rectangular FormsmemberLuca D'Amico7 Jan '13 - 13:05 
Thanks a lot mates Smile | :)
Questionstd::vector problemmemberSuper Lloyd6 Jan '13 - 1:21 
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.

AnswerRe: std::vector problemmvpCPallini6 Jan '13 - 7:14 
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 General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   


Advertise | Privacy | Mobile
Web03 | 2.6.130523.1 | Last Updated 23 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid