|
You can get the state of each button and save in a vector or list or array and serialize it. For Example,
Use GetButtonCount(), to get the total number of buttons on the toolbar and then use GetState() for getting the state of each button and store in a vector and serialize it.
Don't forget to rate the replies if it helps you.
|
|
|
|
|
Hello ,
How to set the range of spin control to a 32 bit value ?
I am using ,
m_spin1.SetRange32(0,LIMIT(32));
where LIMIT is
#define LIMIT(x) (1<
|
|
|
|
|
dhawan_boss@yahoo.com wrote:
m_spin1.SetRange32(0,LIMIT(32));
where LIMIT is
#define LIMIT(x) (1<<x)-1< i="">
What? Use this instead:
m_spin1.SetRange32(0, INT_MAX); If you absolutely need more than that, you'll have to scale the range and position down. The most common is based on a 100% scale.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
In many classes i had see member functions related with Notification, What is it and what for is it used?
Thanks a lot.
|
|
|
|
|
|
How can I customize scrollbar?
Is there any OwnerDraw for CScrollBar?
- NS -
|
|
|
|
|
Hi,
See this screen-shot: http://www.baygenie.com/images/setup.png
I've seen this type of setup wizard a lot, but I don't know which software produces this.
Can anyone please tell me? Thank you!
Jason
|
|
|
|
|
Jason Liu wrote:
but I don't know which software produces this.
What about :-
INNO SETUP[^] and it's freeeeeeeeeeeeeeeeeeee....
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Alok, thank you for your quick reply!
Is this screen format specific to Inno Setup? Or is there some other program that will create the same screen?
Jason
|
|
|
|
|
Jason Liu wrote:
is there some other program that will create the same screen
yeap there are many.. But you create same with INNO tooo..
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Jason Liu wrote:
Is this screen format specific to Inno Setup? Or is there some other program that will create the same screen?
I believe the answer you are looking for is.... yes!
Try not! Do or... you know the rest. -Danny
|
|
|
|
|
|
I find that in some functions, the returned points to a string needn't be deleted, how to implement it? smart point?
|
|
|
|
|
Return an instance of a string class instead of a char *. This is what you should do in any case.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Without a string class, is there a way?
|
|
|
|
|
In general, it's up to the callee to ensure any newly-allocated memory which is returned by a function is properly deleted. In the case of strings, for modern applications, returning a std::string is the easiest way of ensuring no memory is leaked (or even prematurely freed).
If you're dealing with legacy code that returns a 'char *' or similar, and expects the caller to free memory (a la strdup()), then you could consider a smart pointer of some type - but be aware the default STL smart pointers (std::auto_ptr) uses 'delete' on any memory it sees. This is not necessarily the same as calling 'free()' on the returned object (or indeed delete[] for arrays).
Also be aware that smart pointers have a lot of their own issues - notably ownership. Boost gets around this by having shared and scoped pointers - if you have access to boost, then using a scoped_array might be appropriate, if the function you're calling allocates memory with new char[].
If not, you'll have to write your own smart pointer - which can be tricky to get right; but for very simple cases is only a few lines of code.
Matt Godbolt
Engineer, ProFactor Software
StyleManager project
|
|
|
|
|
I am not sure you needed this, but anyway...
followait wrote:
Without a string class, is there a way?
Yes there is.
Create your own structure:
struct MyString<br />
{<br />
char str[200];
};
Return this stucture from your function:
MyString DoSomething()<br />
{<br />
MyString str;<br />
strcpy(str.str,"Hello old man");<br />
return str;<br />
}
Now an object of MyString will be returned.
this is this.
|
|
|
|
|
Dear all,
I have an application written in VC++6.0. Now I want my application to have Windows XP look and feel. That means my Application (all windows and controls) will have skin like Windows XP event if it doesn't run on Windows XP. Does any one know any way or tool to do this.
Thank you very much
|
|
|
|
|
Yeah, buy a library to do it. That's about it. BCG have a free one as well, you could look at that.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Christian Graus wrote:
BCG have a free one as well
What's BCG?
|
|
|
|
|
|
Your suggestion is to buy BCG library, isn't it. I'm using BCGControlBar Library (v. 7.31) Professional Edition but my problem is I could not use this to apply to dialog controls to make them have Windows XP Look and Feel when I run my application under Windows 2000.
Do you know any other tool?
Thank you
|
|
|
|
|
There are numerous other libraries like it, such as Dundas. I suggest trying with google.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Dear Christan Graus,
what is Dundas?
|
|
|
|
|