|
Please search it on google or MSDN .
============
Einstein
Seeing is believing.
|
|
|
|
|
For use it you must use of SendMessage with handle of your control.
|
|
|
|
|
case WM_COMMAND:
if(LOWORD(wParam) == IDC_CHECKBOX1)
{
LRESULT ret = ::SendMessage((HWND)lParam, BM_GETCHECK, 0, 0);
if (BST_CHECKED == ret)
{
}
else if (BST_INDETERMINATE == ret)
{
}
else
{
}
}
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
|
You could at least summarise the problem, so that people will know if their skills are good enough to spend their valuable time helping you instead of swearing at each other in the soapbox.
I look at these forums in gaps of a few minutes while some large compilations happen - I'm not going to start following links off site in case I may be able to help. And I'm sure that's true for a lot of the more regular helpers.
We're nice - but you need to help us to help you.
Iain.
|
|
|
|
|
The only thing I do not understand: What is wrong with swearing at each other in the soapbox?
Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all. Douglas Adams, "Dirk Gently's Holistic Detective Agency"
|
|
|
|
|
jhwurmbach wrote: What is wrong with swearing at each other in the soapbox?
The lid of the soapbox is broken, so falling into the box hurts!
Maxwell Chen
|
|
|
|
|
jhwurmbach wrote: What is wrong with swearing at each other in the soapbox?
Nothing at all. That's why time away from it has to be justified!
(OK, I lurk in the lounge, but stil...)
Iain.
|
|
|
|
|
Consider the following code:
XYZ* pXYZ = new XYZ();
void* pvoid = pXYZ;
delete pvoid;
my question is whether the XYZ object will be properly deleted thru the pvoid pointer WITHOUT typecasting? If the answer is no, then how does the 'free' delete using void pointers without knowing the amount of blocks that are to be freed?
werwr
|
|
|
|
|
Member 3100624 wrote: my question is whether the XYZ object will be properly deleted thru the pvoid pointer WITHOUT typecasting? If the answer is no, then how does the 'free' delete using void pointers without knowing the amount of blocks that are to be freed?
Well the pointer will be deleted but not properly. The reason being that deleting a void pointer won't call that pointer's destructor function which will result in leaks if you have nested objects which in turn allocate memory.
Always pair "new" and "delete". Don't try to "new" and then use "free". "new" calls the constructor and "delete" calls the destructor. This allows all nested objects(which relies on the container class's destructor) to free themselves properly.
Nibu thomas
Microsoft MVP for VC++
Code must be written to be read, not by the compiler, but by another human being.
Programming Blog: http:\\nibuthomas.wordpress.com
|
|
|
|
|
|
Iain Clarke wrote: Which you may want to change! I'm guessing changing /'s to \'s will help.
Worked for me, but anyway changed as you said, thanks!
Nibu thomas
Microsoft MVP for VC++
Code must be written to be read, not by the compiler, but by another human being.
Programming Blog: http://nibuthomas.wordpress.com
|
|
|
|
|
It's better now. Maybe it's a firefox thing? IExplore was being friendler about the /\'s?
Iain.
|
|
|
|
|
Hi All..Thanks for your replay..
i have the total file length like this only .i wanna create the serial no this total length of the file how its possible ..
Lfile.Write("",Lfile.GetLength());
Lfile is nothing but object of CFile.This Lfile contains some list of datas.
Thanks!!
raju.k
|
|
|
|
|
Do you want serial for files like (1) (2),...?
|
|
|
|
|
hi hamid...thanks for ur replay
like this only..
1.
2.
3.
4.
etc
Thanks
raju.k
|
|
|
|
|
Why have you created a new thread for asking something that you have asked in one of your earlier posts? There are some people trying to help you there and so I advice you to be patient and wait for someone to answer your question.
Don't expect that making a repost of the your questions by creating a new thread will get you answers quickly. If people have not been able to help you in the original thread, then its unlikely that they will answer here.
And seriously, though you have asked the question twice, i am still not able to figure out what you exactly want.
Regards,
Vijay.
|
|
|
|
|
vijay7173 wrote: And seriously, though you have asked the question twice, i am still not able to figure out what you exactly want.
Me too!
Maxwell Chen
|
|
|
|
|
Maxwell Chen wrote: Me too!
well, I read your replies to the original post and I should say that you tried your best to help him.
Regards,
Vijay.
|
|
|
|
|
hi vijay and all ..i read ur replay and i understood ..in feature i follow surely..i am new in this filed like VC++ ,code project also...
my question is ..
how to create serial no in a file ?
the output of file like this only..
1.
2.
3.
Thanks
raju.k
|
|
|
|
|
raju.k wrote: how to create serial no in a file ?
Several ways exist. One such way is:
FILE *pFile = fopen(..., "w");
fprintf(pFile, "1.\n");
fprintf(pFile, "%d.\n", 2);
int x = 3;
fprintf(pFile, "%d.\n", x);
fclose(pFile);
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi,
I have a treecontrol containing files and folders as it items.Now i have added drag and drop support to and from explorer to my tree control.Everything is working fine but,when i drag a item from tree control i have created a drag image and assigned it to a pointer variable of CImageList class and using it i have dragged the image during drag.It works well inside the view but whrn the cursor leaves the the view it is getting struct at the border of the view.How can i move the image on to the explorer.I have registered my view as a droptarget.
Thanks
|
|
|
|
|
I think codeproject has an example about drag to Explorer did you see it?
|
|
|
|
|
I am able to drag but image is getting struck at the end of the view.I have reffered Micheal dunn's example.
Thanks
modified on Monday, January 28, 2008 7:14:26 AM
|
|
|
|
|
Hello everyone,
Just want to check whether my understanding is correct,
Both (1) and (2) only covers Windows C++ platform.
1. If there is uncaught exception, destructor is not ensured to be called for active object;
2. All the resources (handles, memory, etc.) for current process will be released when uncaught exception causing process to terminate.
thanks in advance,
George
|
|
|
|