|
Why 'CHotKeyCtrl' does not support ModWin key (it's one with Microsoft logo on it)???
What is the alternative?
Thanks!
|
|
|
|
|
i have made a small application which shows the files and folders in a particular designator. the files and folders are shown in a list box. and the designators are shown in a combo box.
i need to know how to copy a file from the list box to another location. if yes what needs to be done.
chandru080
|
|
|
|
|
I'm not certain what "designator" mean, but you can always use ShFileOperation with the FO_COPY flag set in the structure to copy files around.
There's an article on ShFileOperation here on CP.
|
|
|
|
|
Chandrasekharanp wrote: i need to know how to copy a file from the list box to another location.
The file isn't "in" the listbox. Just the name is in the listbox. What are "designators". If you want quicker help, you're going to have to start using common references.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
what i meant to say is the directories avialbale in the system are displayed in the combo box. (for ex C and D). now when i click on either one of them the folders and the files will appear on the directories. i need to know how to copy this files and folders to different loaction.
|
|
|
|
|
copyfile
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Chandrasekharanp wrote: ...a particular designator.
Qualify this a bit like, "a particular drive designator (e.g., C: )."
Chandrasekharanp wrote: i need to know how to copy a file from the list box to another location.
This is a bit ambiguous. Are you wanting to copy the file itself from one drive/folder to another, or are you wanting to copy an item from the listbox to some other control?
"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
|
|
|
|
|
guess i have specifially mentioned about copying files and folders to another location or rather as per question to another drive.
|
|
|
|
|
So can't you just use CopyFile() or SHFileOperation() ?
"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
|
|
|
|
|
Do you want to drag/drop files or copy files to other location?
|
|
|
|
|
is it possible to do it both the ways?? drag and drop as well as copying it??
|
|
|
|
|
Yeah it possible for example to Explorer or other controls on your program like listbox.
|
|
|
|
|
|
|
Alok give you a good link but if you are new to drag drop (I suggest before use for files see simple drags like drag a item of a list to other list) codeproject has articles about drag files.;)
|
|
|
|
|
Hamid. wrote: Yeah it possible for example to Explorer or other controls on your program like listbox.
yes.. but i havn't tried.. have you???
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Yeah for drag images of explorer to listctrls,I tried I think its easy for you each control has a option "Accept file" that you must active for control and then use of WM_DROP for actions on the ListCtrl it has a event for it that you can drag a file or files on the loop to it also you can set image when you are draging (I didnt try it)
|
|
|
|
|
I want to load an image to a control by downloading it at runtime. Can some body please tell me how to load the image at run time. (i need it for all types of images).
Thanks
Kishore
|
|
|
|
|
What image? From where?
"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
|
|
|
|
|
i want to load a bitmap image from a specified location, at run time.
For example: i want to load the image from the file "bitmap1.bmp" saved on desktop to a control on the UI.
Kishore
|
|
|
|
|
Ok, so what's the problem? What code do you have so far?
"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
|
|
|
|
|
I have no idea how to load the images from a file at run time. please give some sample code.
Kishore
|
|
|
|
|
Y K Kishore Kumar wrote: please give some sample code.
See here.
"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
|
|
|
|
|
Y K Kishore Kumar wrote: please give some sample code.
google is your friend .. dude. !
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
to load the bitmap file use something like :
HBITMAP hBitmap = (HBITMAP)::LoadImage(0, lpszFileName, IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE);
(edited to add more text.)
|
|
|
|