|
don't you have a design issue in your GUI ?!
you could always use another event to set the OK button as the default one once the other button was clicked...
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|
|
not sure i understand what you mean?
Interface basics click here :
http://www.codeproject.com/com/COMBasics.asp
don't forget to vote
|
|
|
|
|
YaronNir wrote: My desire is when i stand on a certain button in the child dialog, and that button has the focus,
pressing enter will cause the button to be clicked (such as pressing space bar does)
What about PreTranslateMessage() ?
where you can look for the message "key pressed" and check if it is the 'enter' key. Then GetFocus() to get the current Button and then....;)
Is it clear?
Russell
|
|
|
|
|
Create the dialog in the modeless form rather than the modal dialog. I think this is what you are using;
(Do not forget to change the style of the dialog to child.)
Once you create the dialog in the modeless form you can get the events of the enter key on the buttons of the dialog.
Does this solve your problem or are there some other issues to be met.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
well,
the main dialog is indeed opened as modal, the child dialog are created using create method.
i will try to change the main dialog to be opened as modeless
thanks
Yaron
Interface basics click here :
http://www.codeproject.com/com/COMBasics.asp
don't forget to vote
|
|
|
|
|
Don't create the main dialog as modal Keep the child dialog as modal
I tried the same and after creating the child dialog as modless i was able to get the code called when the focus was on the button and the enter key was pressed.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
can u send me a code sample?
not sure i understand what you mean
thanks
Interface basics click here :
http://www.codeproject.com/com/COMBasics.asp
don't forget to vote
|
|
|
|
|
well , it didn't work.....using a modeless main dialog didn't solve the problem...
Interface basics click here :
http://www.codeproject.com/com/COMBasics.asp
don't forget to vote
|
|
|
|
|
Hi YaronNir
I was not able to compile your code b'coz I am using an older version of .NET (2003)
However I went through your code and found the line underneath that would be the cause.
Try replacing
pdlg->Create(IDD_DIALOG1);
with
pdlg->Create(IDD_DIALOG1,this);
Does this solve your problem...
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
I've already used the 'this' parameter of the create...didn't work
thanks
Yaron
Interface basics click here :
http://www.codeproject.com/com/COMBasics.asp
don't forget to vote
|
|
|
|
|
Hi,
I am using following code in VC++ application to read the file.
System::IO::FileStream* fsFileContennt = new System::IO::FileStream(dlgUploadFile->get_FileName (),System::IO::FileMode::Open,System::IO::FileAccess::Read);
BinaryReader* brFileContent = new BinaryReader(fsFileContennt); System::String *str = brFileContent ->ToString ();
Actually i want to send( brFileContent) this data to ActiveX control(VC++) and display in Text box (Since file contains parameters). I am using BSTR* type variable to receive this *str variables.
Now how can i get my data in ActiveX control(VC++)?... Will it work out else provide me alternate solution..
Thanks in Advance.
|
|
|
|
|
sivaprakashshanmugam wrote: System::IO::FileStream* fsFileContennt = new System::IO::FileStream(dlgUploadFile->get_FileName (),System::IO::FileMode::Open,System::IO::FileAccess::Read);
BinaryReader* brFileContent = new BinaryReader(fsFileContennt); System::String *str = brFileContent ->ToString ();
Is it really in C++ or some other Language ??
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
|
again question Managed C++ in here
whitesky
|
|
|
|
|
sivaprakashshanmugam wrote: I am using following code in VC++ application to read the file.
Buddy post your problem in this forum :- C++/CLI[^], this is unmanaged c++ forum!
"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
|
|
|
|
|
I Have an MFC Program in C++.How to run it as an Service.
Is there any possibility to use that as service thru JAVA.
|
|
|
|
|
wrote: I Have an MFC Program in C++.How to run it as an Service.
Is it ATL service.exe ?
if so then use executable /Service option.
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
See here and here.
"The largest fire starts but with the smallest spark." - David Crow
|
|
|
|
|
Suganya.D wrote:
I Have an MFC Program in C++.How to run it as an Service.
http://codeproject.com/system/xyntservice.asp[^]
Suganya.D wrote: Is there any possibility to use that as service thru JAVA.
If JAVA support Sending and receiving Window Messsage, then your task faily very easy and fast
"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
|
|
|
|
|
Hi
I want an Operating System hook. Like, when deleting a file OS generates a message for confirmation. I want to trap the event before OS capture the event. Can any one help me in this matter? Any source C++ or vc++ or Api / article?
Thanks in advance.
Samiran Patra (patrasamiran@rediffmail.com)
Samiran Patra
|
|
|
|
|
Are you looking for the ICopyHook interface?
"The largest fire starts but with the smallest spark." - David Crow
|
|
|
|
|
Thanks for your response. ICopyHook works for folder, not for file. I want the same functionality for fle, what ICopyHook does for folders. Please guide me.
Thanks and regards
Samiran
Samiran Patra
|
|
|
|
|
cnez wrote: ICopyHook works for folder, not for file.
My bad. Sorry for the confusion.
"The largest fire starts but with the smallest spark." - David Crow
|
|
|
|
|
Not actually ICopyHook. I am looking for a system/interface which perform the same functionality for file, what ICopyHook does for folder.
Samiran
|
|
|
|
|
I think what you are looking for is ShellExtension rather than a HOOK.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
-- modified at 10:43 Monday 22nd May, 2006
|
|
|
|