|
|
yea..its working fine here..?wen i give Esc button that dialog box was dissappered ....
|
|
|
|
|
please read and understand the question before replying
|
|
|
|
|
Chandrasekharanp wrote: how do i stop the dialog from closing when u hit the escape button?
It depends heavily on how far are you from my computer.
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
that was a good PJ. but the context was different guru...
|
|
|
|
|
You can override Oncancel for Esc and OnOk for Enter.
|
|
|
|
|
i want to build a project to intercept all the communication data between any program and the CDROM.
But i have no idea for that? Any advice will be appreciated.
Regards.
|
|
|
|
|
Normally, you would write a filter driver and insert it into the storage stack. However, lots of CD burning programs circumvent that stack so that it is impossible to write a "catch ALL communication" program unless you can control the user software that will access the CD. If you can control that software, then you can tailor a solution to that specific software. You can't write a generic solution.
Judy
|
|
|
|
|
Thanks for your reply.But what's "control the user software" mean? Here,i want to intercept all the communication between a specified program and the CDROM. For example,the program would send several bytes to the CD to get back some useful information(especially for DeviceIoControl).
Is this aim reachable?
Regards.
|
|
|
|
|
I meant controlling WHAT software the user could use to write the CD. As I said, not all CD-burning software does things the "correct" way - some of them circumvent the device storage stack. If you have a specific program (and only that program) that you want to intercept, you may be able to write a filter to intercept all communications. It will depend on how that specific software does its communication and which communications you are interested in.
What you're attempting is sometimes possible and sometimes impossible - it all depends on how the specific software is written. You're going to need to get some tools for monitoring user mode <-> kernel mode communications to determine if it's even doable.
Judy
|
|
|
|
|
Here,the program i want to monitor is not a CD burner,but only a normal program reading data from CD. In fact,the program send some control command to the CD,then CD return some sensitive data stored in its nonvolatile memory.
|
|
|
|
|
Search the internet for software to monitor IRPs.
Judy
|
|
|
|
|
Hi,
How can I run application in hidden mode?
I try this:-
ShellExecute(NULL,_T("open"),szAppPath,_T(""),_T(""),SW_HIDE);
|
|
|
|
|
|
You can run your program and sends wm_hide to that program with ShowWindow.
|
|
|
|
|
Hi,
When im double clicking the dialog box, it does not got coding part.
It shows thenclass wizard.
I already have class for that,then why it shows the class wizard. And also if we click on the button,then it will go to code part of the button.But in my case it goes to class wizard or it shows on error as "Cannot add new member"
Whats the problem in my code??
And also in my dialog i add combo box, but in run time when i drop cursor, it does not drop down, it just look as like in static. I cann to view the data in combo box..Whats the problem? i add data for combo box in coding by using AddString.
Anu
|
|
|
|
|
for first problem,I have no idea.
but for the second one,when you drop the combo box control from the controls panel you should assume that the combo box will drop down.So,you should drop a big enough area for it,of course it will looks the same as you did(you said),but it will drop down when you click it down arrow.
Regards.
|
|
|
|
|
Anu_Bala wrote: When im double clicking the dialog box, it does not got coding part.
It shows thenclass wizard.
Try deleting the .clw file and then press Ctrl + W to recreate a class wizard file!
Anu_Bala wrote: And also in my dialog i add combo box, but in run time when i drop cursor, it does not drop down, it just look as like in static. I cann to view the data in combo box..Whats the problem? i add data for combo box in coding by using AddString.
In the dialog designer window click on the "combo drop down arrow", you should see that the handle for resizing is now shown at the top and bottom of the combo, so now drag the bottom one down. This will be the dropdown list size of your combo!
Nibu thomas
Microsoft MVP for VC++
Code must be written to be read, not by the compiler, but by another human being.
Programming Blog: http://nibuthomas.wordpress.com
|
|
|
|
|
not use COM, how to get the the picture in the Microsoft Office(doc, ppt,xls)? thank a lots!!!
|
|
|
|
|
dezhou wrote: how to get the the picture...
What picture?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi,
I created a dialog based application. The contains customized treeview control. I am displaying a popup menu by right clicking on the menu item.
I want to check / uncheck the menu item. I used
CheckMenuItem() method. But it is not working .
Anybody know the reason?
All kinds of suggestions are welcome.
|
|
|
|
|
Seehere[^] for the reason and how to resolve it.
-Saurabh
|
|
|
|
|
thanks for the reply
In the given link , they are dealing with COMMAND UI event handler.
I did the Check / uncheck operations in COMMAND event handler only.
any other solution?
|
|
|
|
|
Member 4063274 wrote: I did the Check / uncheck operations in COMMAND event handler only.
any other solution?
You should use CCmdUI object and it's method called SetCheck to set a check mark for a menu item instead of calling the API.
Nibu thomas
Microsoft MVP for VC++
Code must be written to be read, not by the compiler, but by another human being.
Programming Blog: http://nibuthomas.wordpress.com
|
|
|
|
|
I tried that method also. but no use.
After calling SetCheck() any refreshment function need to be called?
|
|
|
|