|
snir_ya wrote: "Best" as the most "lean and mean".
"Lean and mean" code as in development/maintenance overhead or runtime performance? Never mind I have lost interest now since it has taken you at a minimum three posts to explain your request.
led mike
|
|
|
|
|
Intresring - i've followed each and every commandment stated in Chris Maunder's "How to get an answer to your question" and yet i'm being bullyied by a clown. Cheers mate. Chris - please revoke Mike's code project ribon.
|
|
|
|
|
snir_ya wrote: ntresring - i've followed each and every commandment stated in Chris Maunder's "How to get an answer to your question"
Perhaps you missed point 2.
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.
[my articles]
|
|
|
|
|
snir_ya wrote: i've followed each and every commandment stated in Chris Maunder's "How to get an answer to your question"
Really you consider your original post to be "specific"? In that case you might want to consider this[^].
led mike
|
|
|
|
|
In the pink, today?
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.
[my articles]
|
|
|
|
|
|
snir_ya wrote: ...modal child window...
Could you be a tad less discrete, or perhaps provide an example of what you are after?
"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
|
|
|
|
|
modal like a modal dialog? If so, that means the user
must dismiss the window before (s)he can do anything else.
To do that,
1) disable other windows
2) create the window
3) run a message loop until the modal window is closed/dismissed
4) enable other windows
5) destroy the modal window
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
I would swap (4) with (5), but maybe I'm wrong.
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.
[my articles]
|
|
|
|
|
Either way...whichever way is most pleasing to the user.
All the repaints resulting in the destruction and re-enabling
will determine that I suppose
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Thank you so much Mark.
You're answer is prudent and accurate.
I must say that I have begun to doubt my coherency during this thread.
There's an obvious correlation between one's willingness to help and his understanding of the question.
|
|
|
|
|
Hi guys
¿Do you know a way to show a long text (CString) in a CStatic justified or left aligned?
Thanks in forwarding.
Dr.Pî
|
|
|
|
|
Text is left justified by default. Perhaps I'm misunderstanding.
"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
|
|
|
|
|
Sorry, I was talking about a CMyStatic where your own paints the text,bitmaps,etc...
Dr.Pi
|
|
|
|
|
the famous CMyStatic , how did I forget about?
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.
[my articles]
|
|
|
|
|
Are you using TextOut() ?
"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
|
|
|
|
|
|
And what is the value of the second argument?
"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
|
|
|
|
|
The problem is that I have a CString too long for the width of the control (then I have to show as multiline). Then, I don't know how to manage this.
|
|
|
|
|
If this is a CStatic control, why aren't you using SetWindowText() , rather than rendering the text yourself with TextOut() ?
"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
|
|
|
|
|
Cause in addition to the text I have graphics in the same CStatic derived class.
SetWindowText() don't have any control about in which position inside the control you write your text.
Imagine a INFO panel where there is a border, some graphics and a multiline text.
Anyway don't worry, I've found a simple way.
Dr.Pi
|
|
|
|
|
I suppose.
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.
[my articles]
|
|
|
|
|
hello all
i made small simple application (exe) using MFC in VS 2005 pro
now want to give it to my friends to run it on their PC where VS
is not installed.
but only the EXE itself is not running and asks for some DLLs
1- how can it be done .. any idea ???
i tried on mirosoft website and found this:
http://msdn2.microsoft.com/en-us/library/ms235317(VS.80).aspx
...
http://msdn2.microsoft.com/en-us/library/ms235291(VS.80).aspx
2- my prob can be sloved if anybody please tell me .. how to make this mylibrary.dll in the above example when i have the myapplication.exe as my project is an MFC executable !
take a look at the discussion here ...
http://forums.microsoft.com/msdn/showpost.aspx?siteid=1&postid=2745356&sb=0&d=1&at=7&ft=11&tf=0&pageid=1[^]
but here also the same mylibrary.dll is refrenced ...
3-is it necessary to make the project with MFC shared dll as project type
then what about the exe ... will it be there along with the dll ?
|
|
|
|
|
you need to build your EXE with "static linking"
|
|
|
|
|
Thanks a lot Chris ... it solved my problem
but now i am just wondering if just statically linking is all what is needed to run it on other PCs
what is the role of redistributable "vcredist.exe" !
|
|
|
|