|
Maybe you used of a service is install in your computer and not other computers?
|
|
|
|
|
I tried function keybd_event() to simulate ALT key stroke.
It works Ok in Windows XP but I need it use also in Win95
(that's why I am using keaybd_event instead of SendInput)
But it doesn't works (it works fain for normal keys but not for ALT)
I was using VK_LMENU and VK_MENU
Actualy I need too simulate ALT+F and such abbreviation key.
Does enyone know how - or other way to simulate key strokes?
thank you
viliam
|
|
|
|
|
You can try using PostMessage() and post keyboard events to the active window (you may get it with GetActiveWindow() ).
Please go through this article[^] also. I haven't gone through it completely to see if the author is using SendInput or keybd_event but I think it can be of some use to you.
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
I created a tree control which displays the files and folders similar to the explorer.when i want to display a single folder i gave the path to that folder so that it has been displayed in the treecontrol.My question is can we display the required folder without giving the path for it i.e,the application should only search where the folder exists in various drives.
Thanks.
|
|
|
|
|
radhika28 wrote: I created a tree control which displays the files and folders similar to the explorer.when i want to display a single folder i gave the path to that folder so that it has been displayed in the treecontrol.My question is can we display the required folder without giving the path for it i.e,the application should only search where the folder exists in various drives.
Please rephrase your question.
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
I have created an sdi application using form view.In that i have placed a tree control.I have added code so that the tree control displays files and folders similar to the explorer tree.If we want a particular folder to be displayed if we give the path in the code i.e,"F:\\My Favourites\\",we get that folder displayed.Now i want to make my application for the usage in the other systems also.But My favourites folder will be placed in other computers as for the wish of the user.So i want to add code such that My Favourites folder should be displayed in the tree control irrespective of giving the path to display that folder.
Thanks.
|
|
|
|
|
When you do not know where the folder is, may be for the first time you could ask the user to browse for that particular folder. Then store this path in your applications information settings file (if you are using one) or in the registry. The next time, you could lookup this information and load the folder. In case of a failure event later (The folder may not exist because the user removed/renamed/moved it), again ask the user to browse for the folder.
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
Hi,
I think that SHGetSpecialFolderLocation, SHGetSpecialFolderPath are function you're looking for. By specifying CSILD of requested folder (CSIDL for "My Favourites" is CSIDL_FAVORITES) you can obtain full path to its location on the disk.
Regards
|
|
|
|
|
I thought "My Favourites", what that person gave was an example
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
As Galatei told, you can use SHGetSpecialFolderPath if it is a special folder whose path is what you need. If it is "My Favourites", then check the following code sample.
char szPath[255];
if(SUCCEEDED(SHGetSpecialFolderPath(NULL,szPath,CSIDL_FAVORITES, 0)))
MessageBox(szPath);
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
Thanks both for ur reply's.for example if i have My Favourites folder in F Drive,then what should be done to display only the My Favourites folder without the Drive name to be displayed in the Tree control i.e,I want to display the one and only My Favourites folder.
Thanks.
|
|
|
|
|
I'm afraid that it completely depends on your implementation.
Regards
|
|
|
|
|
radhika28 wrote: My Favourites folder in F Drive,then what should be done to display only the My Favourites folder without the Drive name
You don't want us to help you parse your string
Both std::string as well as CString help you by that.
"We trained hard, but it seemed that every time we were beginning to form up into teams we would be reorganised. I was to learn later in life that we tend to meet any new situation by reorganising: and a wonderful method it can be for creating the illusion of progress, while producing confusion, inefficiency and demoralisation."
-- Caius Petronius, Roman Consul, 66 A.D.
|
|
|
|
|
PathFindFileName() will help you parse it
Mark
|
|
|
|
|
I have a question about right mouse click popup menu in IE.
I try write a program that add a new item into popup menu's items(I want program popup menu).but i don't know any thing about this .
please help me .
computer
|
|
|
|
|
m_mor wrote: but i don't know any thing about this .
Atleast tell me what are you using? HTML?
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
this program is a section of another progeram that writen with c++.net .
computer
|
|
|
|
|
m_mor wrote: writen with c++.net
Huh? But how are you capturing right click event within IE? You have written a COM addin or something? Or is that you are yet to do it?
2+2=5, for very large values of 2/font>
|
|
|
|
|
Do You want to create popup menu in ur application?
The secret of life is not enjoyment
but education through experience.
- Swami Vivekananda.
|
|
|
|
|
Hello comunity,
is there any way to check the codepage from an html file?
regards
break;
|
|
|
|
|
Hi,
It depends on the way you want to do it.
If you want to check it as a file, then you could create simple parser looking for meta tags and codepage param.
Regards
|
|
|
|
|
Hello,
its a html file, i download the file content and i use a litle funcion and search for "charset=" inside of content!
I have think there is more useful funktion for this..?
regards
break;
|
|
|
|
|
I m working in Image processing in VC++6.00,i want to ask that in Dialog based application in Vc++ is it possible to display image and if possible then how ?
Plz help me
|
|
|
|
|
Please have a look at This article[^]
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
This one, generally rules in simplicity.
|
|
|
|