Solved

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

Posted on 2000-03-08
2
364 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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 …
In this post we will learn different types of Android Layout and some basics of an Android App.
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.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

690 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