|
Simply moving the mouse should not change the focus state of the dialog and/or edit box currently being edited.
Me think you have a bad design (as other wrote), at least the way you update your values.
This signature was proudly tested on animals.
|
|
|
|
|
You might want to rethink this. It is an unusual approach and will be misunderstood by users. Having the mouse cursor disappear or become unresponsive will be interpreted by many users as a program hang. Some will respond by bringing up task manager to kill your program. Others will reboot their computer to get things working again. Neither is a good thing. (Yesterday I was trying to help a user who is using some buggy, no longer supported legacy software. He would have done ;exactly this ;with no hesitation.)
Perhaps you could validate the data at some point and notify the user if it is invalid. You could even set focus back to the offending control.
|
|
|
|
|
I am trying to change the working directory of a MFC application after
the application execution begins.
Chdir or setcurrentdirectory doesnot work for a MFC application.
Can anyone suggest how i can do this?
|
|
|
|
|
SetCurrentDirectory works in MFC.
Check if your path is valid.
Also you could use GetLastError after the failure of the function.
If the path is OK then some relevant code snippet about your problem could also help us to find the problem.
Regards,
|
|
|
|
|
|
Hi all,
I have a binary image (white objects and black background). I want to find the nearest white pixel for every black pixel of the image. How can implement it in c++.
Thanks in advance,
Franckesh
|
|
|
|
|
And what is your doubt 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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
One possibility:
Making desired black pixel as center of your search and then exploring the pixels around, if not found increasing in 1 your search radius and try again, when you have a hit in white, getting its coordinates and making the modul of the vector from point A to B to get the distance.
But by all means:
Starting code and reading this[^]
Regards.
--------
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?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
i have dialog based application in which i add menu form menu resource now i want to set font name and background colour of menu items but it never get reflected.please anyone tell me how to change the font name and background colour of menu in dialog based application in vc++,mfc
|
|
|
|
|
|
Hi All,
I have an application that is loading a iso file. iso file has many packages to complete the application but it takes time to open an application because everytime it load all packages. So I want to take snapshot like thing So that i can resume the application from where I left it before.
Is there any mechanism to do so?
|
|
|
|
|
An application may save its state in order to continue his work at next startup. Have a look at the Memento design pattern [^] (also have a look at the beautiful Memento film ).
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
[My articles]
|
|
|
|
|
Hello Friends....
What is the Empty Class size.
this is a interview question...
Best Regard's
Mathy's
|
|
|
|
|
|
[personal rant]
I think just a dumb interviewer may ask such a question.
[/personal rant]
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
[My articles]
|
|
|
|
|
I was thinking the same thing - that is a seriously assinine question. Just what does that test? Your knowledge of damned near useless trivia?
L u n a t i c F r i n g e
|
|
|
|
|
LunaticFringe wrote: I was thinking the same thing - that is a seriously assinine question. Just what does that test? Your knowledge of damned near useless trivia?
Well, you expressed better than me my feelings.
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
[My articles]
|
|
|
|
|
Hunh. That's odd - usually, I only open my mouth to change feet.
L u n a t i c F r i n g e
|
|
|
|
|
See here.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Hello Friends
In Mfc what is the differents between post message and send message....
explain post message and send message....Plz
Best Regard's
Mathy's
|
|
|
|
|
The SendMessage call doesn't return until the target window has handled the message you've sent it.
The PostMessage call puts the message in the thread's message queue and returns immediately, before the message has been handled.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
CodeProject MVP for 2010 - who'd'a thunk it!
|
|
|
|
|
where is to be used....... in MFc
Best Regard's
Mathy's
|
|
|
|
|
What do you mean by that exactly?
SendMessage and PostMessage can be used in MFC, but generally you'll use an MFC class's methods to hide those calls.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
CodeProject MVP for 2010 - who'd'a thunk it!
|
|
|
|
|
mathy wrote: In Mfc what is the differents between post message and send message....
While SendMessage() and PostMessage() can be used within MFC code, they are not related. They are from the Windows SDK.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Another interview question? Don't accept an offer from that place!
|
|
|
|