Click here to Skip to main content
15,899,634 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Hide a window, on loosing mouse attention! Pin
Naveen3-Sep-07 20:52
Naveen3-Sep-07 20:52 
GeneralRe: Hide a window, on loosing mouse attention! Pin
Hamed Musavi3-Sep-07 21:37
Hamed Musavi3-Sep-07 21:37 
GeneralRe: Hide a window, on loosing mouse attention! Pin
Naveen3-Sep-07 21:40
Naveen3-Sep-07 21:40 
GeneralRe: Hide a window, on loosing mouse attention! Pin
Hamed Musavi3-Sep-07 21:43
Hamed Musavi3-Sep-07 21:43 
AnswerRe: Hide a window, on loosing mouse attention! Pin
Llasus3-Sep-07 21:05
Llasus3-Sep-07 21:05 
GeneralRe: Hide a window, on loosing mouse attention! Pin
Hamed Musavi3-Sep-07 21:41
Hamed Musavi3-Sep-07 21:41 
AnswerRe: Hide a window, on loosing mouse attention! Pin
Nishad S3-Sep-07 21:57
Nishad S3-Sep-07 21:57 
GeneralRe: Hide a window, on loosing mouse attention! Pin
Hamed Musavi3-Sep-07 22:41
Hamed Musavi3-Sep-07 22:41 
NS17 wrote:
a menu similar to standard menu,


It's in fact an addition to an EditBox to simulate autocomplete. The real data will be fetched using a query and the list should be filled with the result of the query. Unfortunately all auto complete controls here have a predefined list of texts and find a text that start with exact same prefixes. But I can't add all say 200,000 records in an OnInit().Big Grin | :-D Further than that it's not an interesting search.

I'm designing a live search box(like the one in Vista). A menu-like control that pops, shows a list of items, does not interfere with user typing text, and shows a different set of items on each change event in the edit control, it also has the ability to have a number (PK of the record in my project) assigned to each normal text.

I am not yet managing keyboard, but you are right. However if I need anything more than the following, I would be very happy to hear?

Something like:
BOOL CHToolMenu::PreTranslateMessage(MSG* pMsg) 
{
  if(pMsg->message == WM_KEYDOWN)
  {
    // HandleKey(pMsg->wParam);
  }

  return CWnd::PreTranslateMessage(pMsg);
}


Thank you so much. Your help is appreciated.

// "Life is very short and is very fragile also." Yanni
while (I'm_alive)
{
cout<<"I love programming.";
}

GeneralRe: Hide a window, on loosing mouse attention! Pin
Nishad S3-Sep-07 23:01
Nishad S3-Sep-07 23:01 
GeneralRe: Hide a window, on loosing mouse attention! Pin
Hamed Musavi3-Sep-07 23:46
Hamed Musavi3-Sep-07 23:46 
GeneralRe: Hide a window, on loosing mouse attention! Pin
Nishad S4-Sep-07 2:23
Nishad S4-Sep-07 2:23 
GeneralRe: Hide a window, on loosing mouse attention! Pin
Hamed Musavi4-Sep-07 5:03
Hamed Musavi4-Sep-07 5:03 
GeneralRe: Hide a window, on loosing mouse attention! Pin
Hamed Musavi3-Sep-07 22:45
Hamed Musavi3-Sep-07 22:45 
GeneralRe: Hide a window, on loosing mouse attention! Pin
chandu0043-Sep-07 23:14
chandu0043-Sep-07 23:14 
GeneralRe: Hide a window, on loosing mouse attention! Pin
Hamed Musavi3-Sep-07 23:40
Hamed Musavi3-Sep-07 23:40 
GeneralRe: Hide a window, on loosing mouse attention! Pin
chandu0043-Sep-07 23:56
chandu0043-Sep-07 23:56 
QuestionStatic linking and dlls Pin
vikramlinux3-Sep-07 19:12
vikramlinux3-Sep-07 19:12 
AnswerRe: Static linking and dlls Pin
Cedric Moonen3-Sep-07 20:06
Cedric Moonen3-Sep-07 20:06 
GeneralRe: Static linking and dlls Pin
Nishad S3-Sep-07 22:03
Nishad S3-Sep-07 22:03 
QuestionDisable Task Manager for ALL users? Pin
amirreza yazdanshenas3-Sep-07 18:39
amirreza yazdanshenas3-Sep-07 18:39 
AnswerRe: Disable Task Manager for ALL users? Pin
Anurag Gandhi3-Sep-07 19:14
professionalAnurag Gandhi3-Sep-07 19:14 
GeneralRe: Disable Task Manager for ALL users? Pin
Stephen Hewitt3-Sep-07 19:50
Stephen Hewitt3-Sep-07 19:50 
GeneralRe: Disable Task Manager for ALL users? Pin
amirreza yazdanshenas3-Sep-07 22:22
amirreza yazdanshenas3-Sep-07 22:22 
GeneralRe: Disable Task Manager for ALL users? Pin
Stephen Hewitt3-Sep-07 22:29
Stephen Hewitt3-Sep-07 22:29 
Questionmsvcrt.dll Pin
vikramlinux3-Sep-07 18:29
vikramlinux3-Sep-07 18:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.