|
I read the article of Michael Dunn drag drop beteen yor program and explorer.
It works for List control.Now i want for tree control, how can i register tree control as a drop target,
Plz Hel me out?
|
|
|
|
|
Getting the drag/drop notifications works the same way as with a list control.
|
|
|
|
|
Can u show me some code......
I tried to register through m_droptarget.Register();
When it enter in to Register funtcion returns FALSE.
Plz Help me out Regarding this drag and drop am trying from three days no one replies ohter than you....
Plz help me.....
|
|
|
|
|
I am told that there is a better way to accomplish this task, but using bitwise operators to eliminate the need for the 3rd variable.
void switch_digits(short *numberOne, short *numberTwo)<br />
{<br />
short tempSwitch;<br />
<br />
tempSwitch = *numberOne;<br />
*numberOne = *numberTwo;<br />
*numberTwo = tempSwitch;<br />
}
How is it done?
|
|
|
|
|
a = a^b;
b = a^b;
a = a^b;
and I wouldn't do this unless there was a very good reason to
|
|
|
|
|
|
|
Hi all,
I have developed a windows service which runs executable files received from
some remote machine. Now i dont want to give my service all the rights so i
decided to run the service in "NT AUTHORITY\\LocalService" Account... but
when i do that i am unable to create any files or destroy any files in the
system
Now i want mmy service to have capability of creating new files but it shud
not be able to destroy any pre-exisiting files....also if possible i want to
restrict this file creation to only one particulat folder....meaning for e.g
if i have a folder called p2p then any excutable ran frm my service shud be
able to create files in that folder only and not in any other folder like
program files etc.
How do i achieve the above thing
thanks
kunal
|
|
|
|
|
I have project on hand where i have to lock all the exes on the client machine except the one exe that is to be retieved from the server database.This exe will be unlocked for a particular duration of time after that it has to be locked depending on its time duration.
|
|
|
|
|
dhawi wrote: This exe will be unlocked for a particular duration of time after that it has to be locked depending on its time duration.
Interesting, but what did you have for breakfast? do you want?
led mike
|
|
|
|
|
Hello everyone!
OK, I have a dialog with many checkboxes, buttons, radios, listboxes, edits, and all that stuff... Each item is an option for the saved file that the program generates... Is there an easy way to add an event handler for the form itself so that on every change the Saved variable gets set to 0? Thanks!
Windows Calculator told me I will die at 28.
|
|
|
|
|
I do not if it standard or not, but what I do is generate a checksum of all the controls on the dialog and then I check that checksum in the idle handler. If the checksum changes then I know that the user has made a change. If the checksum reverts back to the saved value then I know that the user undid the changes.
You may be right I may be crazy -- Billy Joel --
Within you lies the power for good, use it!!!
|
|
|
|
|
Interesting approach...! I have done something similar before so I though I would ask to be sure: Do you really generate a checksum, or do you do something like associate a particuar value to each control (like a bit-value that can be combined) and then check the value that way (that is what I did).
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
Erm... Explain to the noob how to do it, please?
Windows Calculator told me I will die at 28.
|
|
|
|
|
If the form has only a radio buttons or checkboxes then I will use a bitmask, but if there are edit controls or combo boxes then I will use a CRC-32 checksum. It also depends on the number of controls on the form, with only a couple controls it is hardly worth the extra effort required.
You may be right I may be crazy -- Billy Joel --
Within you lies the power for good, use it!!!
|
|
|
|
|
|
I based my code on this[^] article.
You may be right I may be crazy -- Billy Joel --
Within you lies the power for good, use it!!!
|
|
|
|
|
|
Exodus 20:7
You iterate over all the controls, adding their values to the checksum. For buttons you would use GetCheck(), for edit controls use GetWindowText() etc.
You may be right I may be crazy -- Billy Joel --
Within you lies the power for good, use it!!!
|
|
|
|
|
PJ Arends wrote: Exodus 20:7
*Googles* ... LOL
But yeah, that's what I wanted, thanks very much!
Windows Calculator told me I will die at 28.
|
|
|
|
|
Hello,
I'm using a NTGraph in my program, so I want to change it's size I mean the NTGraph frame size.
How can I do than in real time(using code)?
Here is an article of the NTGraph: NTGraph[^]
SnaidiS(Semion)
|
|
|
|
|
please I need the anster,can anyone help me?
SnaidiS(Semion)
|
|
|
|
|
|
Hi, I need to do some image processing with bitmaps. Predominantly 2 things: Read the bitmap and get the color value for all the pixels and their positions(and write another bitmap) but I'm not allowed to use any image libraries. Any suggestions please. It's quite important, and thanks in advance.
|
|
|
|
|
What about using the standard Win32 API functions for loading images into memory (a bitmap structure), and then directly examing the memory of the structure?
A simple MSDN search will help you there.
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|