Click here to Skip to main content
15,917,565 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MEMdc not working with SetWindowOrg? Pin
Ed Gadziemski4-Jun-02 3:50
professionalEd Gadziemski4-Jun-02 3:50 
QuestionHow do i make a fully-qualified PIDL out of a single-level PIDL? Pin
redeemer3-Jun-02 13:24
redeemer3-Jun-02 13:24 
QuestionSpin Control ?? Pin
BlackDogEngineering3-Jun-02 13:16
BlackDogEngineering3-Jun-02 13:16 
AnswerRe: Spin Control ?? Pin
aldeba3-Jun-02 14:38
aldeba3-Jun-02 14:38 
GeneralChanging Treeview TVS_INFOTIP timeouts Pin
Hydra3-Jun-02 12:19
Hydra3-Jun-02 12:19 
GeneralDebugging causing exceptions Pin
moredip3-Jun-02 12:14
moredip3-Jun-02 12:14 
GeneralRe: Debugging causing exceptions Pin
Alexandru Savescu4-Jun-02 0:53
Alexandru Savescu4-Jun-02 0:53 
GeneralComboBox & autocompleting with visibled droplist & error in Win98 Pin
Wizard_013-Jun-02 11:55
Wizard_013-Jun-02 11:55 
Hi
I found code on codeproject "Implementing an autocompleting Combobox By Chris Maunder".I wanted to have droplist when users write text in combobox. Iam working in Win2K Prof and here is OK but in Win98 is some problem when you write e.g. "App". When you push letter "A" droplist is showed but wenn you write 2. letter ... and after you click outside its seleted first item which has first letter "A" and has smallest index. If you hide droplist each oven press and show each odd press its OK but is absurdity to do this in release version Wink | ;)
I think that when is droplist visibled and you call SelectString etc. is not applied..Frown | :(

void CMyComboBox::OnEditupdate()

{
if (!m_bAutoComplete)
return;

CString str;
GetWindowText(str);
int nLength = str.GetLength();
ShowDropDown();
DWORD dwCurSel = GetEditSel();
WORD dStart = LOWORD(dwCurSel);
WORD dEnd = HIWORD(dwCurSel);
int found = SelectString(-1, str);
if (found == CB_ERR)
{
SetWindowText(m_strPrev); // select last valid string
SetEditSel(nLength, -1);
return;
}
else {
m_strPrev = str;
GetParent()->SendMessage(WM_COMMAND, MAKEWPARAM(GetDlgCtrlID(), CBN_SELCHANGE), (LPARAM)m_hWnd);
}
if (dEnd < nLength && dwCurSel != CB_ERR)
SetEditSel(dStart, dEnd);
else
SetEditSel(nLength, -1);
}

I dont how to catch it Frown | :(
Could you help me ?
Thanx

LiborB.
GeneralPointer and Arrays Pin
RaphaelBr3-Jun-02 11:33
RaphaelBr3-Jun-02 11:33 
GeneralRe: Pointer and Arrays Pin
Abin3-Jun-02 14:32
Abin3-Jun-02 14:32 
GeneralRe: Pointer and Arrays Pin
Rama Krishna Vavilala3-Jun-02 15:57
Rama Krishna Vavilala3-Jun-02 15:57 
QuestionHowto change screen resolution? Pin
Joshua Nussbaum3-Jun-02 11:20
Joshua Nussbaum3-Jun-02 11:20 
AnswerRe: Howto change screen resolution? Pin
Ravi Bhavnani3-Jun-02 11:25
professionalRavi Bhavnani3-Jun-02 11:25 
AnswerRe: Howto change screen resolution? Pin
Tomasz Sowinski3-Jun-02 11:36
Tomasz Sowinski3-Jun-02 11:36 
AnswerRe: Howto change screen resolution? Pin
Ed Gadziemski3-Jun-02 11:52
professionalEd Gadziemski3-Jun-02 11:52 
GeneralFix it please Pin
Jon Sagara3-Jun-02 11:04
Jon Sagara3-Jun-02 11:04 
GeneralRe: Fix it please Pin
Steve L.3-Jun-02 11:15
Steve L.3-Jun-02 11:15 
GeneralRe: Fix it please Pin
Ed Gadziemski3-Jun-02 11:54
professionalEd Gadziemski3-Jun-02 11:54 
GeneralRe: #include questions Pin
Joaquín M López Muñoz3-Jun-02 11:00
Joaquín M López Muñoz3-Jun-02 11:00 
Generaljavascript ... Pin
craigk3-Jun-02 9:38
craigk3-Jun-02 9:38 
GeneralRe: javascript ... Pin
Joaquín M López Muñoz3-Jun-02 9:55
Joaquín M López Muñoz3-Jun-02 9:55 
GeneralRe: javascript ... Pin
craigk3-Jun-02 11:51
craigk3-Jun-02 11:51 
GeneralRe: javascript ... Pin
Joaquín M López Muñoz3-Jun-02 12:08
Joaquín M López Muñoz3-Jun-02 12:08 
GeneralRe: javascript ... Pin
craigk4-Jun-02 6:56
craigk4-Jun-02 6:56 
GeneralInternet Explorer List Control Pin
Le centriste3-Jun-02 9:21
Le centriste3-Jun-02 9:21 

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.