UP and DOWN keyboard event in MFC Application(Very Urgent)
-
HI All, Im new to MFC.I have done a Dialoged based GUI(Im using Bitmap Buttons).I need to use UP and DOWN keyboard event for that buttons.Help me.Very Urgent......... Thanks & Regards Anitha :)
-
HI All, Im new to MFC.I have done a Dialoged based GUI(Im using Bitmap Buttons).I need to use UP and DOWN keyboard event for that buttons.Help me.Very Urgent......... Thanks & Regards Anitha :)
Is it for selection change? Please explain your purpose
-
HI All, Im new to MFC.I have done a Dialoged based GUI(Im using Bitmap Buttons).I need to use UP and DOWN keyboard event for that buttons.Help me.Very Urgent......... Thanks & Regards Anitha :)
I have started working on this issue. Once I get an acknowlegement for the amount transferred by you I will send you the code. Don't be surprised if it contains some bugs as it is being done on an URGENT basis. You must be having a class derived from CBitmapButton or CButton (or in whatever way you show bitmap on the button). Why don't you handle it there?
Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_
-
Is it for selection change? Please explain your purpose
yes, i need for selection change.
-
I have started working on this issue. Once I get an acknowlegement for the amount transferred by you I will send you the code. Don't be surprised if it contains some bugs as it is being done on an URGENT basis. You must be having a class derived from CBitmapButton or CButton (or in whatever way you show bitmap on the button). Why don't you handle it there?
Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_
Im using 5 bitmap buttons and I need the UP and DOWN keyboard event for selection process.
-
HI All, Im new to MFC.I have done a Dialoged based GUI(Im using Bitmap Buttons).I need to use UP and DOWN keyboard event for that buttons.Help me.Very Urgent......... Thanks & Regards Anitha :)
AnithaSubramani wrote:
Very Urgent.........
Of course. :-D BTW this may help [^]. :)
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] -
yes, i need for selection change.
is it just for selection process, No need to up and down key event.Do u want to do somthing when it selected?
-
HI All, Im new to MFC.I have done a Dialoged based GUI(Im using Bitmap Buttons).I need to use UP and DOWN keyboard event for that buttons.Help me.Very Urgent......... Thanks & Regards Anitha :)
Perhaps you need to override
PreTranslateMessage()
like:BOOL CMyDialog::PreTranslateMessage(MSG* pMsg)
{
if (WM_KEYDOWN == pMsg->message)
{
if (VK_UP == pMsg->wParam)
TRACE("You pressed the UP arrow.\n");
else if (VK_DOWN == pMsg->wParam)
TRACE("You pressed the DOWN arrow.\n");
}
else if (WM_KEYUP == pMsg->message)
{
if (VK_UP == pMsg->wParam)
TRACE("You released the UP arrow.\n");
else if (VK_DOWN == pMsg->wParam)
TRACE("You released the DOWN arrow.\n");
}return CDialog::PreTranslateMessage(pMsg);
}
"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 All, Im new to MFC.I have done a Dialoged based GUI(Im using Bitmap Buttons).I need to use UP and DOWN keyboard event for that buttons.Help me.Very Urgent......... Thanks & Regards Anitha :)
How can one be new to MFC and have a very urgent question? :)
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
HI All, Im new to MFC.I have done a Dialoged based GUI(Im using Bitmap Buttons).I need to use UP and DOWN keyboard event for that buttons.Help me.Very Urgent......... Thanks & Regards Anitha :)
A word of advice: don't use the word "urgent" when posting! If anything it results in slower responses or anger directed towards you.
Steve