Click here to Skip to main content
15,919,028 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Timer Callback Pin
Phil Speller6-Aug-03 1:53
Phil Speller6-Aug-03 1:53 
GeneralRe: Timer Callback Pin
LittleYellowBird6-Aug-03 2:09
LittleYellowBird6-Aug-03 2:09 
GeneralRe: Timer Callback Pin
LittleYellowBird6-Aug-03 2:12
LittleYellowBird6-Aug-03 2:12 
GeneralRe: Timer Callback Pin
Ryan Binns6-Aug-03 2:19
Ryan Binns6-Aug-03 2:19 
GeneralRe: Timer Callback Pin
Phil Speller6-Aug-03 3:04
Phil Speller6-Aug-03 3:04 
GeneralRe: Timer Callback Pin
Vitali Halershtein6-Aug-03 2:49
Vitali Halershtein6-Aug-03 2:49 
GeneralRe: Timer Callback Pin
Ryan Binns6-Aug-03 4:19
Ryan Binns6-Aug-03 4:19 
GeneralReselect on combo box OnDropdown Pin
paulccc5-Aug-03 23:58
paulccc5-Aug-03 23:58 
Hi everyone,

Having a nightmare problem - hoping someone can help!

When I catch OnDropdown for a combo box and try programmatically selecting an item different than the current selection the control reselects a different item!

I have a list box, let's say it's got these items:

_________________
| Paul Maddox
| Paul Mdx
| Paul
|_________________

If "Paul Mdx" was selected last time, when I open the dropdown I want it to select "Paul".

So, I've hooked the OnDropdownMyCombo function and done:

m_combo.SetCurSel(m_combo.FindExactMatch(-1,"Paul"));

After the selection I do GetCurSel and GetLBText to double-check the correct selection is made, which it is.

However, the control will show "Paul Maddox" as being selected in the dropped down list, BUT "Paul" shown in the edit box.

If anyone has come across this or has any suggestions, I'm more than open to hear them!

Many thanks,
Paul.
GeneralRe: Reselect on combo box OnDropdown Pin
HPSI6-Aug-03 2:44
HPSI6-Aug-03 2:44 
QuestionPrinting How? Pin
wow99995-Aug-03 23:42
wow99995-Aug-03 23:42 
AnswerRe: Printing How? Pin
HPSI6-Aug-03 2:21
HPSI6-Aug-03 2:21 
Generalvfw depression Pin
mr pier5-Aug-03 23:37
mr pier5-Aug-03 23:37 
GeneralRe: vfw depression Pin
HPSI6-Aug-03 1:48
HPSI6-Aug-03 1:48 
GeneralRe: vfw depression Pin
Anonymous8-Aug-03 8:52
Anonymous8-Aug-03 8:52 
GeneralWebbrowser::Newwindow() Problem!! Pin
xxhimanshu5-Aug-03 23:22
xxhimanshu5-Aug-03 23:22 
Generalopening documents Pin
BoudewijnEctor5-Aug-03 23:14
BoudewijnEctor5-Aug-03 23:14 
GeneralRe: opening documents Pin
HPSI5-Aug-03 23:29
HPSI5-Aug-03 23:29 
QuestionopenDirectory dialog? Pin
BoudewijnEctor5-Aug-03 23:10
BoudewijnEctor5-Aug-03 23:10 
AnswerRe: openDirectory dialog? Pin
Toni785-Aug-03 23:17
Toni785-Aug-03 23:17 
GeneralRe: openDirectory dialog? Pin
BoudewijnEctor5-Aug-03 23:58
BoudewijnEctor5-Aug-03 23:58 
GeneralRe: openDirectory dialog? Pin
David Crow6-Aug-03 5:23
David Crow6-Aug-03 5:23 
AnswerRe: openDirectory dialog? Pin
Chao Zuo5-Aug-03 23:39
Chao Zuo5-Aug-03 23:39 
GeneralLog Window Pin
SLiDeR5-Aug-03 22:38
SLiDeR5-Aug-03 22:38 
GeneralRe: Log Window Pin
Chao Zuo5-Aug-03 23:04
Chao Zuo5-Aug-03 23:04 
GeneralRe: Log Window Pin
SLiDeR5-Aug-03 23:15
SLiDeR5-Aug-03 23:15 

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.