|
radhika28 wrote: some dilaogs will open
Are those dialogs shown as modal?
- NS -
|
|
|
|
|
|
Once we have discussed something like this, right?
The same can be used here too... Try this[^]
- NS -
|
|
|
|
|
ya that is true but,I had another problem i.e when i opened a dilaog from one of the views and opened a dilaog from the tray menu option with out closing the first one.So,i will have two modal dilaogs opened.Now when i close one window,i am able to access the main window even though one modal dialog is opened,which is a odd behavior.So,i want to get the handle of the child window,which remained when i close one of the window's and disable the main window untill the child window is closed.Is it correct or there is any other option.
Thanks
|
|
|
|
|
Is it good to show two modal dialogs at the same time? From my point of view, I dont like it... anyway I am not sure about your requirements. So I think your idea of disabling the main window is not bad.
Then you will get the window handle from dialog object if it is set as global or member object.
- NS -
|
|
|
|
|
|
Welcome
Take care of that point, Roger Broomfield said, if you dont need to show two dialogs at the same time.
- NS -
|
|
|
|
|
In my opinion your problem isn't in the main window. When you display a Modal Dialog from the main window, it will automatically apply the WS_DISABLED style to the main window (check it out using the Spy++ tool), so what you propose really won't make any difference. Your problem is in the handler for the tray menu, where you are allowing the selecting of the menu option to open another modal dialog even though the main window is disabled. Your tray menu handler should process WM_INITMENU and check whether or not the main window is disabled and enable menu options accordingly.
|
|
|
|
|
can anyone help me regarding developing the registry cleaner software for window xp i am exploring on Regclean code by Chakrapani Ramachandran but it's not working well.
|
|
|
|
|
niki dutta wrote: i am exploring on Regclean code by Chakrapani Ramachandran but it's not working well.
whats the problem in that!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|
|
please you give some idea to develope registry cleaner software for window xp
and i just hook on working the regclean of Chakrapani Ramachandran after the successful execution of the program it prompts only"fail to read file" so let me what type of i need to give with command prompt where i am executing the exe file
|
|
|
|
|
When you double click on a file in the explorer window, it will run the default application for that file type. For example clicking on a .jpeg file might open up photoshop.
How do I get access to this information? Ideally I want some function like DoDefaultAction(filename). Does such a function exist in the windows API?
|
|
|
|
|
\\HKEY_CLASSES_ROOT\.jpg
Default (REG_SZ) = "ACDSee 9.0.jpg"
Maxwell Chen
|
|
|
|
|
Look in the registry under HKEY_CLASSES_ROOT
|
|
|
|
|
Thanks for the information. I can see there is some information about the file types there but I am not sure how you get from there to running the correct application with the file. For example I set up PNG files to be displayed with PSP.exe, but in the registry I get these entries for .PNG:
[default] REG_SZ pngfile
[Content Type] REG_SZ image/png
[PerceivedType] REG_SZ image
Do I perhaps have to cross-reference this data somehow with some data elsewhere in the registry?
|
|
|
|
|
I had written an article about lookup in the registry for icons. Maybe there are some interesting lines of code for you: http://www.codeproject.com/file/remoteicons.asp
Greetings from Germany
|
|
|
|
|
Another possibility is to go to your explorer, Extras, Folder Options, File Types and add the extension you want searching the software you want to use to open it.
Another thing is if you want to automate it when you run the install.exe. Then you should go through registry entries as the others already answered you.
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
|
|
|
|
|
A Noteworthy Programmer wrote: Ideally I want some function like DoDefaultAction(filename).
ShellExecute() doesn't work for you?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hey, thats exactly what I need! I tried getting the information form the registry but its not as straightforward as you might imagine. I managed to get it to work for some file types but not all.
Thanks!
|
|
|
|
|
A Noteworthy Programmer wrote: I tried getting the information form the registry but its not as straightforward as you might imagine.
I would have just used FindExecutable() or AssocQueryString() .
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hello everyone,
I find that when using Debug build, we do not need to set linker --> input --> Advapi32.lib, but when using Release build, we need to set linker --> input --> Advapi32.lib. Or else, there will be error message, unresolved symbol RegSetValueEx.
I am using Visual Studio 2005.
thanks in advance,
George
|
|
|
|
|
George_George wrote: I am using Visual Studio 2005.
is there is any problem!!!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|
|
Thanks Alok,
I do not know why we need to add input for Advapi32.lib if we make a release build, and we do not need to import Advapi32.lib for debug build?
I think import library dependencies should be consistent for both debug and release version.
regards,
George
|
|
|
|
|
George_George wrote: I think import library dependencies should be consistent for both debug and release version.
That's true, so what is your question?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi David,
I do not know why we need to add input for Advapi32.lib if we make a release build, and we do not need to import Advapi32.lib for debug build?
If we need an import library, I think both debug and release version need the import library file. why only release version needs this file?
regards,
George
|
|
|
|