Solved

Press enter key on ComboBox and Change font in Status bar.

Posted on 2000-03-08
2
360 Views
Last Modified: 2013-12-03
Hi everyone,

 I have the question total two cases.
   1)How can i do for trapping keydown on ComboBox or ListBox ?
   2)How can i change font in status bar with my language from code which it's not change with string table?
   Who can help me ?
   
   Regards,
   Berm
0
Comment
Question by:Berm
2 Comments
 
LVL 4

Accepted Solution

by:
pagladasu earned 30 total points
ID: 2596475
Regarding the first part of your question, you can override the PreTranslateMessage() functions as follows:

BOOL CYourDialog::PreTranslateMessage(MSG* pMsg)
{
   // TODO: Add your specialized code here and/or call the base class
    HWND hwnd=GetDlgItem(IDC_LIST1)->GetSafeHwnd();
    if(pMsg->hwnd==hwnd && pMsg->message==WM_KEYDOWN &&             pMsg->wParam==13){
         MessageBox("Enter Key Pressed);
         return TRUE;
     }
     return CDialog::PreTranslateMessage(pMsg);
}

Rgarding the second part of your question take a look at this link:
http://codeguru.developer.com/statusbar/enhanced_status.shtml


thanks,
pagladasu
0
 

Author Comment

by:Berm
ID: 2599038
Oh! very good pagladasu,thank you very much for your recommendation.

   Regards,
   Berm  
0

Featured Post

ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Need a Shell script to start a service checking the port 6 50
tripleUp challenge 7 79
Not needed 13 113
Problem to App source 6 41
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question