|
i have to use tree controls. pls explain me how to use this
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
|
thats ok i have to create wundows style explorer mfc application using tree list control. i need some idea for this. pls help me with a sample code
-- modified at 0:45 Monday 2nd April, 2007
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
By default you can create one sample application by clicking few clicks. I think it is easy and you already know about this. why you are still searching againg again? what exactly you need.
To develop explorer style app just do these steps.
-------------------------------------------------
Open Visual Studio . VC++ environment(It can be 6.0/7.x, I am telling steps in 7.x)
1) create new project.
2) Select project type is MFC application
3) Select over view -> nothing to select.
Application type -> Single Document.
Project Style -> Windows Explorer.
4) Click Finish button.
Here you will get One Tree View control. and One list view control in your project.
You can get what exactly you need. It is easy to use for you. Check MSDN for that. MSDN can be used by any one in online. ;P enjoy.
Nice talking to you. If you judge people, you have no time to love them. -- Mother Teresa
|
|
|
|
|
hmm but i am using dilaogs not document. if i clicked a button it will show the tree control dialog. is there any way to do this in document
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
Which part is giving you trouble? Creating windows? Sending messages to a control to get it to
do what you want?
Mark
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
see i am using a tree control with three items
browse
card
password.
if we select the child browse the folders and files in usb drive should be displayed similar to the one in windows explorer. my trouble is i cant display the files. how to do this
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
The FindFirstFile, FindNextFile. FindClose APIs can help you get the file names (if you don't
have them already).
Then you need to create a node/item for each file in the tree control (or listview control like
the right-hand window in Windows Explorer.
Mark
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
Give code snippet for dynamic tab control?
|
|
|
|
|
Give me some money before...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
|
For free? Maybe for a tab control, but a DYNAMIC tab control...that will cost you.
Umm, what's a dynamic tab control?
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
that means,tab and dialog or propertysheet will increase at run time based on input.
|
|
|
|
|
prathuraj wrote: tab and dialog or propertysheet will increase
will increase or created at runtime!
|
|
|
|
|
prathuraj wrote: tab and dialog or propertysheet will increase
if you want to increase then you have to look at api like SetWindowPos and MoveWindow and if you want to create same at runtime look at CTabCtrl::Create!
|
|
|
|
|
Tab Control Reference[^]
What are you having problems with?
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
prathuraj wrote:
i want free service
have a look at
CTabCtrl::Create
|
|
|
|
|
CPallini wrote: Give me some money before...
how much ???...
|
|
|
|
|
|
CPallini wrote: PS: I'm lazy too, but not THAT LAZY!
he he he!
|
|
|
|
|
Hi all,
I want to enumerate all the users in the domain from my service. I tried
using NetUserEnum and NetQueryDisplayInformation functions but it fails
with access denied. When i run the functions from the console application, it
works fine but from my service (which runs under local system account) it
fails......How do i get around this???.....Is there some other way of
enumerating users of a domain from the service???
kunal
|
|
|
|
|
ku19832001 wrote: but from my service (which runs under local system account) it
fails......
Then run your service from an account with sufficient access rights
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
I didnt get it...i thought local system account is the most powerful account with all the rights.....I guess only problem is that only authenticated users are allowed to query the domain but in this local system is not a authenticated user.....Is there some other way of enumeration??
|
|
|
|
|
If it's a security issue then it should fail regardless of what method you use to enumerate.
I would first verify that security is the problem - a breakpoint and check the error code should
do it.
The LocalSystem account may have high priveledges on the local computer but not on the network.
Actually, I'm pretty sure you can't access the network with that account anymore (I may be
confusing it with another account).
It's recommended these days to use specific accounts to run services under which have just the
needed access rights and no more.
Mark
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
As i said in previous post...i checked the return code and it said....access denied..so i know the problem now...since local system is not authenticated to query the domain, the api will fail...
According to what you are saying, i need to add an (fake) account to the network and then run the service under that fake account to query the domain....this really doesnt look that great idea because then what i means 1) i am adding a non existent user in the network 2) all machines on the domain where my service is running will need to have that account in local machines (which can be a big risk)
So is there some other way of doing it??
kunal
|
|
|
|