|
Hi everybody!
In a project I am working on I have a modal dialog and I would like to show an other modeless dialog by clicking on a button.
The modeless dialog is created before the DoModal is called, and therefore after clicking on the button (only ShowWindow(SW_SHOW) ) the modeless dialog it will appear, but I can't click on it, because it has no focus.
Have anybody an idea how can be solved this problem?
Thanks in forward.
|
|
|
|
|
potyex wrote: The modeless dialog is created before the DoModal is called, and therefore after clicking on the button (only ShowWindow(SW_SHOW) ) the modeless dialog it will appear, but I can't click on it, because it has no focus.
that is the behavior of Modal Dialog, the user cannot interact with other windows until the dialog box is closed, then you have to go for Modeless dialog instead.
|
|
|
|
|
Why not create and show the modeless dialog after the button is clicked?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Because is too late to create after button click. I have to communicate with that dialog, it is alive (but not visible) durring the project run.
|
|
|
|
|
How can I have my application always in top
|
|
|
|
|
what about,
SetWindowPos(hWndApplication, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
modified on Tuesday, March 4, 2008 6:59 AM
|
|
|
|
|
Or create window with WS_EX_TOPMOST extended style.
You can change position after window is created only using Rajkumar'a approach.
JohnCz
MS C++ MVP
|
|
|
|
|
HI,
Iam a VC++ programmer having 3 years experiance.
Few of my friends telling that no new Project or Product starting using VC++, only maintenace products need VC++.
I want to know is there good future to vc++ ? or shall i need to migrate to .Net Technologies.
I hope there must be experianced People in this group please advice me.
|
|
|
|
|
Krishnatv wrote: Few of my friends telling that no new Project or Product starting using VC++, only maintenace products need VC++.
IMHO the above is wrong. Anyway .NET (and Java ) probably will grow their market share. You may have a look at recruiter agency websites (like Jobserve) to get a rough idea of C++ (against .NET languages) opportunities.
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
|
|
|
|
|
Krishnatv wrote: Few of my friends telling that no new Project or Product starting using VC++, only maintenace products need VC++.
That sends a clear message about your friends.
Krishnatv wrote: I want to know is there good future to vc++ ?
Yes.
Krishnatv wrote: shall i need to migrate to .Net Technologies.
That entirely depends on your personal interests.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Thanks for your replies.
Iam intrested in VC++ and COM.
We are doing a product Using MFC and COM.
My Company dealing many projects in C# and Asp .
Presently one of our onsite Coordinator Also telling that there is lots of opportunities in .Net than VC++.
Our Product didnt get any strong Client to get good Revenue.
But All these .NET Projects are from good Clients.
All these issues, make me to think.
Bye,
Krishna.
|
|
|
|
|
Hi Krishna,
It is not a wrong thing if someone tells you that there are more opportunities with .NET than with MFC. But I won't agree if someone says MFC or Visual C++ has no future. I would suggest you to give .NET a try too. If that interests you, you could then easily decide which way to go. .NET have more opportunities, but to my mind, Visual C++ is more interesting. I think it is too personal and must be left to the individual to decide. Good luck.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Krishnatv wrote: Using MFC and COM.
I will pray for your soul....
_________________________
Asu no koto o ieba, tenjo de nezumi ga warau.
Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)
|
|
|
|
|
The future of any programming languge is in the hands of developers like you. Keep using it and proving that you can produce great software with it in an economical time frame and it will continue to be valued and supported.
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|
|
Stop worrying so much about which tool is going to be around longer, or has more followers, and focus more on what tool best solves the problem. Until you have laid out the problem in detail, you have no way of knowing which tool is best for the job.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Small business applications and in-house binary tools will most probably be dominated by .NET technologies as they generally require rapid development. However most major commercial applications will continue to be developed in C++ for the next several years.
Both C++ and MFC have a very secure future at least for the next 4-5 years in my opinion.
Best Wishes,
-Randor (David Delaune)
|
|
|
|
|
I don't agree completely. Rapid development has become a major requirement. I think that most commercial applications, included big ones, will be developed using .NET languages. Anyway, that doesn't mean C++ will be abandoned.
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
|
|
|
|
|
CPallini wrote: I think that most commercial applications, included big ones, will be developed using .NET languages. Anyway, that doesn't mean C++ will be abandoned.
Very well said.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
CPallini wrote: Rapid development has become a major requirement
and everyone forgets, Rapid development does not preclude C++. C++ is the language, that is all, its an ANSI standard published a little more often than once a decade when there are not too many disagreements on direction. If you want to know rapid development, try Ultimate++.
_________________________
Asu no koto o ieba, tenjo de nezumi ga warau.
Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)
|
|
|
|
|
CPallini wrote: I think that most commercial applications, included big ones, will be developed using .NET languages.
And how many big commercial applications you know that are being developed with .NET?
|
|
|
|
|
Nemanja Trifunovic wrote: And how many big commercial applications you know that are being developed with .NET?
I am sure that Age Of Empires III wasn't.
Maxwell Chen
|
|
|
|
|
25.
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
|
|
|
|
|
|
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Krishnatv wrote: Few of my friends telling that no new Project or Product starting using VC++, only maintenace products need VC++.
your friends have obviously no knowledge of the real life ! getting out of school right ?
take many good application around the world:
- Apache HTTPd server
- MS Office
- Notepad++
etc...
what language are they written in ? C/C++ *sadly*
|
|
|
|