Solved

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Best tools for Backup and restore of Wordpress site 6 55
Prevent this page from creating additional dialogs. 3 408
move a line in eclipse 3 81
Path of Workbook 3 61
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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…

920 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now