Solved

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

Posted on 2000-03-08
2
362 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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…

735 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