Solved

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

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Delphi 2010 Export to pdf 2 250
Web browser fonts have gone wild. 8 107
Tab names are off by one 5 49
while loop over for loop 7 79
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…

705 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