Click here to Skip to main content
15,902,635 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: QUESTION about bitwise shift operations Pin
va_dev22-Oct-03 19:55
va_dev22-Oct-03 19:55 
GeneralRe: QUESTION about bitwise shift operations Pin
David Crow23-Oct-03 3:15
David Crow23-Oct-03 3:15 
GeneralRe: QUESTION about bitwise shift operations Pin
va_dev23-Oct-03 4:53
va_dev23-Oct-03 4:53 
GeneralRe: QUESTION about bitwise shift operations Pin
David Crow23-Oct-03 6:49
David Crow23-Oct-03 6:49 
Generalapply local-time-zone/dst on a DBTIMESTAMP variable Pin
ohadp22-Oct-03 5:35
ohadp22-Oct-03 5:35 
GeneralUse of the Keyboard's events Pin
DiakRufus22-Oct-03 4:54
DiakRufus22-Oct-03 4:54 
GeneralRe: Use of the Keyboard's events Pin
G. Steudtel22-Oct-03 5:22
G. Steudtel22-Oct-03 5:22 
QuestionHow do you remove focus from a listbox manually? Pin
Kelly R22-Oct-03 4:31
sussKelly R22-Oct-03 4:31 
Hello,

This is my problem:
I have a list box which is used to select a certain item via double-click. This item can then be placed on a map. The problem is, while placing the item, the mousewheel has functionality within the program other than scrolling the list box. I need this mousewheel functionality to work, but once the item in the list box is selected, the focus stays on the list box and the mousewheel will only scroll the list and not do what I want it to do within the main program window.

If I could just move the focus from the list box to some other button, or remove it entirely, (without actually clicking on another list or button) the problem should be solved.

I have tried:
SendMessage(list_box,LBN_KILLFOCUS,0,0);
SendMessage(list_box,WM_KILLFOCUS,0,0);

where list_box is the handle of my list box, but, both of those KILLFOCUS messages are returns rather than messages that can be sent to the handle and processed.

I just need some way to get the focus off of the darned list box...

Thanks for your help,
Kelly
AnswerRe: How do you remove focus from a listbox manually? Pin
includeh1022-Oct-03 4:42
includeh1022-Oct-03 4:42 
AnswerRe: How do you remove focus from a listbox manually? Pin
G. Steudtel22-Oct-03 5:08
G. Steudtel22-Oct-03 5:08 
GeneralRe: How do you remove focus from a listbox manually? Pin
Kelly R22-Oct-03 5:17
sussKelly R22-Oct-03 5:17 
AnswerRe: How do you remove focus from a listbox manually? Pin
David Crow22-Oct-03 5:13
David Crow22-Oct-03 5:13 
GeneralRe: How do you remove focus from a listbox manually? Pin
Kelly R22-Oct-03 5:31
sussKelly R22-Oct-03 5:31 
GeneralRe: How do you remove focus from a listbox manually? Pin
includeh1022-Oct-03 8:28
includeh1022-Oct-03 8:28 
GeneralRe: How do you remove focus from a listbox manually? Pin
David Crow22-Oct-03 8:55
David Crow22-Oct-03 8:55 
Generala simple Q about command.com Pin
includeh1022-Oct-03 4:26
includeh1022-Oct-03 4:26 
GeneralRe: a simple Q about command.com Pin
Kelly R22-Oct-03 5:04
sussKelly R22-Oct-03 5:04 
GeneralRe: a simple Q about command.com Pin
Kelly R22-Oct-03 5:09
sussKelly R22-Oct-03 5:09 
GeneralRe: a simple Q about command.com Pin
David Crow22-Oct-03 5:30
David Crow22-Oct-03 5:30 
GeneralRe: a simple Q about command.com Pin
Steve S22-Oct-03 6:01
Steve S22-Oct-03 6:01 
GeneralGetModuleFileName returning blank! Pin
ns22-Oct-03 3:59
ns22-Oct-03 3:59 
GeneralRe: GetModuleFileName returning blank! Pin
jhwurmbach22-Oct-03 4:16
jhwurmbach22-Oct-03 4:16 
Generalthanks., got it! Pin
ns22-Oct-03 4:37
ns22-Oct-03 4:37 
GeneralRe: GetModuleFileName returning blank! Pin
Moonspellwizard22-Oct-03 21:09
Moonspellwizard22-Oct-03 21:09 
GeneralApplication to control another Windows App Pin
Member 18130722-Oct-03 2:36
Member 18130722-Oct-03 2:36 

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.